From f17e2a95c8b380e2279648d4e89e188adefb0cac Mon Sep 17 00:00:00 2001 From: Akuli Date: Wed, 8 Jan 2025 22:57:18 +0200 Subject: [PATCH] Revert "TEMPORARY DEBUG" This reverts commit a4b7cb81ae3f4be58cb900f73be0ab549a480f67. --- .github/workflows/macos.yml | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index c367e1c3..ba08e897 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -5,9 +5,42 @@ on: pull_request: jobs: + test: + runs-on: macos-latest + timeout-minutes: 5 + 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@14 + + - 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 timeout-minutes: 5 steps: - - run: | - env | grep ARCH + - uses: actions/checkout@v3 + - run: brew install bash diffutils llvm@14 + - run: ./doctest.sh + + compare-compilers: + runs-on: macos-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@v3 + - run: brew install bash diffutils llvm@14 + - run: ./compare_compilers.sh