forked from rockdaboot/libpsl
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.19 KB
/
unit-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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
meson-test:
name: Meson Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
max-parallel: 3
matrix:
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
steps:
- name: Check out
uses: actions/checkout@v4
with:
submodules: true
- name: Install dependencies
run: pip install --pre meson ninja
- name: Configure
run: meson setup builddir
- name: Build
run: ninja -C builddir
- name: Test
run: meson test -C builddir --print-errorlogs