Skip to content

Commit

Permalink
Add GH action runner for testing (#232)
Browse files Browse the repository at this point in the history
* Add GH action runner

* Install autotools etc

* Add matrix for libidn, libidn2, libicu
  • Loading branch information
rockdaboot authored Feb 4, 2024
1 parent ba4c49a commit 1c71410
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: libpsl

on:
push:
branches: [main]
pull_request:
branches: ["**"]

jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: true
max-parallel: 3
matrix:
runtime: ["libidn", "libidn2", "libicu"]
steps:
- name: Check out
uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get install -y autopoint autoconf automake gtk-doc-tools libidn2-dev libunistring-dev libicu-dev libidn-dev
- name: Test with ${{matrix.runtime}}
run: |
./autogen.sh
CFLAGS="-O0 -Wall -Wextra" ./configure --enable-runtime=${{matrix.runtime}}
make check

0 comments on commit 1c71410

Please sign in to comment.