More work on self hosted compiler #157
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
# Testing all levels because there was a bug that only happened with -O1. (#224) | |
opt-level: ['-O0', '-O1', '-O2', '-O3'] | |
steps: | |
- uses: actions/checkout@v3 | |
- run: brew install bash diffutils llvm@13 | |
- run: make | |
- run: ./runtests.sh --verbose --jou-flags "${{ matrix.opt-level }}" | |
- run: ./runtests.sh --verbose --jou-flags "${{ matrix.opt-level }} --verbose" | |
- run: make clean | |
- name: Check that "make clean" deleted all files not committed to Git | |
shell: bash | |
run: | | |
if [ "$(git status --porcelain --ignored)" != "" ]; then | |
git status --ignored | |
exit 1 | |
fi | |
doctest: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: brew install bash diffutils llvm@13 | |
- run: make | |
- run: ./doctest.sh | |
compare-compilers: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: brew install bash diffutils llvm@13 | |
- run: ./compare_compilers.sh --fix | |
- run: git diff --exit-code |