Skip to content

Commit

Permalink
arm64 native build (#151)
Browse files Browse the repository at this point in the history
* arm64 native build

* only some tests
  • Loading branch information
mwestphal authored Feb 19, 2024
1 parent e12fd55 commit f1f2d58
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .github/actions/f3d-superbuild/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,17 @@ runs:
ctest -R f3d-exec-TestOCCT$ -VV
ctest -R f3d-exec-TestUSD$ -VV
# on macOS arm64, grid rendering has some issues,
# test only some tests that do not uses grid.
# https://github.com/f3d-app/f3d/issues/1276
- name: Test package EGL
if: env.CMAKE_OSX_ARCHITECTURES == 'arm64'
working-directory: ${{github.workspace}}/build
shell: bash
run: |
ctest -R f3d-exec-exists$ -VV
ctest -R f3d-exec-TestThumbnail$ -VV
- name: Upload Tests Artifact
if: failure()
uses: actions/upload-artifact@v4
Expand Down
30 changes: 27 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ jobs:
matrix:
raytracing_label: [raytracing, no-raytracing]
cpu: [x86_64]
include:
- cpu: arm64
raytracing_label: no-raytracing

runs-on: macos-latest

Expand All @@ -93,6 +90,33 @@ jobs:
f3d_version: origin/master
raytracing_label: ${{matrix.raytracing_label}}

macos_arm:
strategy:
fail-fast: false
matrix:
raytracing_label: [no-raytracing]
cpu: [arm64]

runs-on: macos-14

env:
CMAKE_OSX_ARCHITECTURES: ${{matrix.cpu}}

steps:

- name: Checkout
uses: actions/checkout@v4
with:
path: 'source'
submodules: true
lfs: true

- name: Build and package F3D
uses: ./source/.github/actions/f3d-superbuild/
with:
f3d_version: origin/master
raytracing_label: ${{matrix.raytracing_label}}

python_wheels:
strategy:
fail-fast: false
Expand Down

0 comments on commit f1f2d58

Please sign in to comment.