mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 16:57:16 +01:00
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
name: Run tests
|
|
on:
|
|
push:
|
|
pull_request:
|
|
schedule:
|
|
- cron: '3 20 * * SUN'
|
|
jobs:
|
|
test-autoconf:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest]
|
|
cc: [gcc, clang]
|
|
posix: ['', -D_POSIX_C_SOURCE=200112L]
|
|
name: Autotools build on ${{matrix.os}} using ${{matrix.cc}} ${{matrix.posix}}
|
|
runs-on: ${{ matrix.os }}
|
|
env:
|
|
CC: ${{ matrix.cc }}
|
|
VERBOSE: 1
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: true
|
|
- run: sudo apt install libipc-run3-perl
|
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
|
- run: brew install autoconf automake libtool
|
|
if: ${{ matrix.os == 'macos-latest' }}
|
|
- run: ./bootstrap
|
|
- run: ./configure
|
|
env:
|
|
CFLAGS: -std=c99 -Wall -Wextra -Werror -Wno-unused-function -Wno-unused-parameter ${{ matrix.posix }}
|
|
- run: make
|
|
- run: make check
|
|
|
|
test-cmake:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
name: CMake build on ${{matrix.os}}
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: true
|
|
- run: cmake -DBUILD_TESTING=ON -V .
|
|
- run: cmake --build .
|
|
- run: ctest -V .
|