MacOS support #26
Workflow file for this run
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 | |
steps: | |
- uses: actions/checkout@v3 | |
# TODO: document the commands to install the stuff | |
- run: brew install bash diffutils llvm@13 clang@13 | |
- run: | | |
((echo '#include <stdio.h>' && echo stdin && echo stdout && echo stderr) | /usr/local/opt/llvm/bin/clang-cpp-13) || true | |
- run: | | |
((echo '#include <stdio.h>' && echo stdin && echo stdout && echo stderr) | /opt/homebrew/Cellar/llvm/13/bin/clang-cpp-13) || true | |
- run: | | |
((echo '#include <stdio.h>' && echo stdin && echo stdout && echo stderr) | /opt/homebrew/Cellar/llvm/13.0.1/bin/clang-cpp-13) || true | |
- run: | | |
((echo '#include <stdio.h>' && echo stdin && echo stdout && echo stderr) | /opt/homebrew/opt/llvm/bin) || true | |
- run: which llvm-config || which llvm-config-13 | |
- run: llvm-config --bindir || llvm-config-13 --bindir | |
# - run: make | |
# - run: ./runtests.sh --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 | |
# compare-compilers: | |
# runs-on: macos-latest | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - run: brew install llvm@13 | |
# - run: ./compare_compilers.sh |