-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(ci): GitHub workflow to build for Intel-based Macs
- Loading branch information
1 parent
4603718
commit 8d7979d
Showing
2 changed files
with
30 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
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,28 @@ | ||
name: MacOS amd64 (Intel) | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-12 | ||
steps: | ||
- name: Install SWIG and CMake | ||
run: | | ||
brew install swig | ||
brew install cmake | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
- name: Validate Gradle Wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
- name: Build | ||
run: ./gradlew native_macosx_amd64_clang | ||
- name: Check results | ||
run: ls -l build/natives/macosx_amd64_clang |