Skip to content

Commit

Permalink
fix macos compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtrujy committed Mar 31, 2024
1 parent 5f5a381 commit d47e996
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/compilation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,28 @@ jobs:
runs-on: ${{ matrix.os[0] }}
strategy:
matrix:
os: [[macos-latest, bash], [macOS-11, bash], [ubuntu-latest, bash], [windows-latest, msys2]]
os: [[macos-latest, bash], [ubuntu-latest, bash], [windows-latest, msys2]]
fail-fast: false
defaults:
run:
shell: ${{ matrix.os[1] }} {0}

steps:
- uses: actions/checkout@v4

- name: Install on Ubuntu
- name: Install Ubuntu packages
if: matrix.os[0] == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get -y install gettext texinfo bison flex libncurses5-dev libgmp3-dev libmpfr-dev libmpc-dev
sudo apt-get -y install texinfo bison flex gettext libgmp3-dev libmpfr-dev libmpc-dev
- name: Install on Mac
if: startsWith( matrix.os[0], 'macOS' )
- name: Install macOS packages
if: matrix.os[0] == 'macos-latest'
run: |
brew update
brew install gettext texinfo bison flex gnu-sed gsl gmp mpfr
- name: Install in MSYS2
brew install texinfo bison flex gnu-sed gsl gmp mpfr libmpc
- name: Install MSYS2 packages
if: matrix.os[0] == 'windows-latest'
uses: msys2/setup-msys2@v2
with:
Expand Down

0 comments on commit d47e996

Please sign in to comment.