Skip to content

Allow building from tarball without Python #56

Allow building from tarball without Python

Allow building from tarball without Python #56

Workflow file for this run

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: Install libunistring (macOS)
if: runner.os == 'macOS'
run: brew install libunistring
- name: Set Homebrew paths (macOS)
if: runner.os == 'macOS'
run: |
echo "PKG_CONFIG_PATH=$(brew --prefix)/lib/pkgconfig:$PKG_CONFIG_PATH" >> $GITHUB_ENV
echo "LIBRARY_PATH=$(brew --prefix)/lib:$LIBRARY_PATH" >> $GITHUB_ENV
echo "CPATH=$(brew --prefix)/include:$CPATH" >> $GITHUB_ENV
- name: Configure
run: meson setup builddir
- name: Build
run: ninja -C builddir
- name: Test
run: meson test -C builddir --print-errorlogs