Skip to content

Commit

Permalink
Fix CI on macOS
Browse files Browse the repository at this point in the history
Apple supplies version 2.3 (from 2006!!), which doesn't support `%empty`.
  • Loading branch information
ISSOtm committed Jan 23, 2021
1 parent 70bbb09 commit 6623b1d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/actions/install_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ case `echo $1 | cut -d '-' -f 1` in
sudo apt-get install -yq bison libpng-dev pkg-config
;;
macos)
brew install libpng pkg-config md5sha1sum
brew install bison libpng pkg-config md5sha1sum
# For the version check below exclusively, re-do this before building
export PATH="/usr/local/opt/bison/bin:$PATH"
;;
*)
echo "WARNING: Cannot install deps for OS '$1'"
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,18 @@ jobs:
shell: bash
run: |
./.github/actions/install_deps.sh ${{ matrix.os }}
# The `export` lines are to allow working on macOS...
# Apple's base version is severely outdated, not even supporting -Wall,
# but it overrides Homebrew's version nonetheless...
- name: Build & install using Make
run: |
export PATH="/usr/local/opt/bison/bin:$PATH"
make ${{ matrix.target }} -j Q= CC=${{ matrix.cc }}
sudo make install -j Q=
if: matrix.buildsys == 'make'
- name: Build & install using CMake
run: |
export PATH="/usr/local/opt/bison/bin:$PATH"
cmake -S . -B build -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=${{ matrix.cc }} ${{ matrix.cmakevars }}
cmake --build build
cp build/src/rgb{asm,link,fix,gfx} .
Expand Down

0 comments on commit 6623b1d

Please sign in to comment.