-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests and release job for macOS (#4)
* Add tests and release job for macos * Fix gcc installation * Remove sanitizers on macos
- Loading branch information
1 parent
2e6da67
commit 8be5de2
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
on: | ||
release: | ||
types: [published] | ||
permissions: | ||
contents: write | ||
jobs: | ||
upload: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Pull submodules | ||
run: git submodule update --init --recursive | ||
- name: Set up Homebrew | ||
uses: Homebrew/actions/setup-homebrew@master | ||
- name: Install dependencies | ||
run: | | ||
brew install meson ninja gcc@13 | ||
- name: Build | ||
run: | | ||
CXX=g++-13 meson setup build --debug --warnlevel 3 --werror -Dcpp_debugstl=true | ||
ninja -C build | ||
- name: Test | ||
run: | | ||
ninja -C build test | ||
- name: Upload to release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
mv build/oicompare oicompare-arm64 | ||
gh release upload ${{ github.event.release.tag_name }} oicompare-arm64 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: test-macos | ||
run-name: Run tests on ARM macOS | ||
on: | ||
push: | ||
branches: ['master'] | ||
pull_request: | ||
jobs: | ||
test: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Pull submodules | ||
run: git submodule update --init --recursive | ||
- name: Set up Homebrew | ||
uses: Homebrew/actions/setup-homebrew@master | ||
- name: Install dependencies | ||
run: | | ||
brew install meson ninja gcc@13 | ||
- name: Build | ||
run: | | ||
CXX=g++-13 meson setup build --debug --warnlevel 3 --werror -Dcpp_debugstl=true | ||
ninja -C build | ||
- name: Test | ||
run: | | ||
ninja -C build test |
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