Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI #74

Merged
merged 2 commits into from
Feb 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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