-
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: MacOS builds and GitHub actions (#19)
* add MacOS aarch64 target (Apple Silicon) * build(ci): GitHub workflows to build for MacOS (both Intel and Apple Silicon) * build: remove 32-bit artifacts * build(ci): remove currently broken Jenkinsfile (replaced by GitHub action) * doc: update the README --------- Co-authored-by: Adam Sotona <asotona@openjdk.org>
- Loading branch information
1 parent
2691be1
commit 85b1a57
Showing
9 changed files
with
162 additions
and
136 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,34 @@ | ||
name: MacOS aarch64 (M1) | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-14 | ||
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_aarch64_clang | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: macosx-aarch64-artifacts | ||
path: | | ||
build/natives/*/*.so | ||
build/natives/*/*.dll | ||
build/natives/*/*.dylib |
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,35 @@ | ||
# This workflow builds and tests the project on a MacOS amd64 machine (Intel Mac). | ||
name: MacOS amd64 | ||
|
||
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: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: macosx-amd64-artifacts | ||
path: | | ||
build/natives/*/*.so | ||
build/natives/*/*.dll | ||
build/natives/*/*.dylib |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
version=1.0.3-SNAPSHOT | ||
version=1.0.4-SNAPSHOT |
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,24 @@ | ||
# Copyright 2015, alex at staticlibs.net | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
cmake_minimum_required ( VERSION 2.8.12 ) | ||
|
||
# default to Debug | ||
set ( CMAKE_BUILD_TYPE "Debug" CACHE STRING "Default build type" ) | ||
|
||
set ( CMAKE_SYSTEM_NAME Darwin ) | ||
set ( CMAKE_SYSTEM_ARCH aarch64) | ||
|
||
set ( CMAKE_C_COMPILER clang ) | ||
set ( CMAKE_CXX_COMPILER clang++ ) |