Skip to content

Commit

Permalink
Merge pull request #74 from hv15/hans-macos-ci-update-1
Browse files Browse the repository at this point in the history
Update CI
  • Loading branch information
sbscholz authored Feb 26, 2023
2 parents 2335be1 + bc41e96 commit a9a7a69
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
# action listing, all jobs run in parallel
jobs:
build_linux:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- name: Get HEAD and submodules
uses: actions/checkout@v2
Expand All @@ -25,7 +25,7 @@ jobs:
submodules: 'recursive'
- name: Install sac2c-basic
run: |
wget ${BASE_URL}/Ubl18/sac2c-basic.deb
wget ${BASE_URL}/Ubl20/sac2c-basic.deb
sudo apt install ./sac2c-basic.deb
sac2c -V
- name: Create build dir
Expand All @@ -47,7 +47,7 @@ jobs:
fi
${GITHUB_WORKSPACE}/ci/fail-on-warning.sh build.log
build_mac:
runs-on: macos-11
runs-on: macos-12
steps:
- name: Get HEAD and submodules
uses: actions/checkout@v2
Expand All @@ -58,15 +58,15 @@ jobs:
submodules: 'recursive'
- name: Install sac2c-basic
run: |
wget ${BASE_URL}/MacOS/sac2c-basic.pkg
wget ${BASE_URL}/MacOS_x86/sac2c-basic.pkg
sudo installer -pkg ./sac2c-basic.pkg -target /
sac2c -V
- name: Set XCode version
run: |
# this ensures we are using the same Xcode version that we compiled sac2c against
sudo xcode-select -switch "/Applications/Xcode_12.5.app"
sudo xcode-select -switch "/Applications/Xcode_13.4.app"
# we need to rewrite sysroot path to use specific Xcode version
sudo find /usr/local/share -type f -name 'sac2crc_*' -execdir sed -i.bak 's/Xcode\.app/Xcode_12\.5\.app/g' {} \;
sudo find /usr/local/share -type f -name 'sac2crc_*' -execdir sed -i.bak 's/Xcode\.app/Xcode_13\.4\.app/g' {} \;
- name: Create build dir
run: |
cmake -E make_directory ${{runner.workspace}}/build
Expand Down

0 comments on commit a9a7a69

Please sign in to comment.