Skip to content

Commit

Permalink
MacOS ARM 64 build (#40)
Browse files Browse the repository at this point in the history
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
  • Loading branch information
geofjamg authored Jun 28, 2024
1 parent 4639a05 commit 09b6204
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ jobs:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
container: ${{ matrix.config.container }}
env:
MACOSX_DEPLOYMENT_TARGET: "11.0" # to get MacOS >= 11 compatibility
strategy:
matrix:
config:
Expand All @@ -15,18 +17,28 @@ jobs:
os: ubuntu-20.04,
container: 'quay.io/pypa/manylinux2014_x86_64',
artifact_name: libmath.so,
upload_name: libmath.so,
artifact_path: linux_64
}
- {
name: macos,
os: macos-11,
artifact_name: libmath.dylib,
upload_name: libmath.dylib,
artifact_path: osx_64
}
- {
name: macos_arm64,
os: macos-14, # minimal version to get an ARM64 runner
artifact_name: libmath.dylib,
upload_name: libmath_arm64.dylib,
artifact_path: osx_arm64
}
- {
name: windows,
os: windows-2019,
artifact_name: math.dll,
upload_name: math.dll,
artifact_path: windows_64
}

Expand Down Expand Up @@ -64,7 +76,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.config.artifact_name }}
name: ${{ matrix.config.upload_name }}
path: ${{ runner.workspace }}/powsybl-math-native/target/classes/natives/${{ matrix.config.artifact_path }}/${{ matrix.config.artifact_name }}

package:
Expand All @@ -88,6 +100,12 @@ jobs:
name: libmath.dylib
path: target/classes/natives/osx_64/

- name: Download MacOS ARM64 library
uses: actions/download-artifact@v3
with:
name: libmath_arm64.dylib
path: target/classes/natives/osx_arm64/

- name: Download Windows library
uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit 09b6204

Please # to comment.