2021-12-13 17:24:25 -05:00
|
|
|
name: Test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-12-13 17:33:53 -05:00
|
|
|
branches: [master]
|
2021-12-13 17:24:25 -05:00
|
|
|
pull_request:
|
2021-12-13 17:33:53 -05:00
|
|
|
branches: [master]
|
2021-12-13 17:24:25 -05:00
|
|
|
|
|
|
|
jobs:
|
2021-12-14 17:20:48 -05:00
|
|
|
test:
|
2021-12-14 14:35:34 -05:00
|
|
|
runs-on: ubuntu-latest
|
2021-12-14 17:20:48 -05:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-12-14 18:03:51 -05:00
|
|
|
cc: ['gcc', 'clang', 'tcc']
|
2021-12-14 17:20:48 -05:00
|
|
|
assert: ['--enable-assert', '--disable-assert']
|
|
|
|
opt: ['', '-O0', '-O3']
|
|
|
|
werror:
|
|
|
|
- cflag: '-Werror'
|
|
|
|
mb2: '--disable-multiboot2'
|
|
|
|
- cflag: ''
|
|
|
|
mb2: '--enable-multiboot2'
|
2021-12-14 14:35:34 -05:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-12-14 18:03:51 -05:00
|
|
|
- name: dependencies
|
|
|
|
run: sudo apt install clang tcc
|
2021-12-14 14:35:34 -05:00
|
|
|
- name: autogen
|
|
|
|
run: ./autogen.sh
|
2021-12-14 14:36:53 -05:00
|
|
|
- name: configure
|
2021-12-14 18:03:51 -05:00
|
|
|
run: ./configure ${{matrix.assert}} ${{matrix.werror.mb2}} CC='${{matrix.cc}}' CFLAGS='${{matrix.werror.cflag}} ${{matrix.opt}}'
|
2021-12-14 17:10:28 -05:00
|
|
|
- name: make
|
|
|
|
run: make
|
|
|
|
- name: check
|
|
|
|
run: make check
|