1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2024-11-13 11:04:27 -05:00
libkernaux/.github/workflows/test.yml

33 lines
828 B
YAML

name: Test
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
cc: ['gcc', 'clang', 'tcc']
assert: ['--enable-assert', '--disable-assert']
opt: ['', '-O0', '-O3']
werror:
- cflag: '-Werror'
mb2: '--disable-multiboot2'
- cflag: ''
mb2: '--enable-multiboot2'
steps:
- uses: actions/checkout@v2
- name: dependencies
run: sudo apt install clang tcc
- name: autogen
run: ./autogen.sh
- name: configure
run: ./configure ${{matrix.assert}} ${{matrix.werror.mb2}} CC='${{matrix.cc}}' CFLAGS='${{matrix.werror.cflag}} ${{matrix.opt}}'
- name: make
run: make
- name: check
run: make check