MacOS support #32
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 | |
# TODO: automagically search for llvm in these weird places | |
- run: brew install bash diffutils llvm@13 | |
- run: echo /usr/local/opt/llvm@13/bin >> $GITHUB_PATH | |
# TODO: do we need the next two lines? | |
- run: LDFLAGS=-L/usr/local/opt/llvm@13/lib >> $GITHUB_ENV | |
- run: CPPFLAGS=-I/usr/local/opt/llvm@13/include >> $GITHUB_ENV | |
- 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 |