Skip to content

Commit

Permalink
.github/workflows/macos-ort.yml: update onnx and ort; use macos-14 im…
Browse files Browse the repository at this point in the history
…age; use mcpu=apple-a14
  • Loading branch information
WolframRhodium committed Sep 7, 2024
1 parent 0e75073 commit 1a1b290
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/macos-ort.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
build-macos:
runs-on: macos-latest
runs-on: macos-14

defaults:
run:
Expand Down Expand Up @@ -62,14 +62,15 @@ jobs:
uses: actions/cache@v4
with:
path: vsort/onnx/install
key: ${{ runner.os }}-vsort-onnx-v1
key: ${{ runner.os }}-vsort-onnx-v2

- name: Checkout onnx
if: steps.cache-onnx.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: onnx/onnx
ref: b86cc54efce19530fb953e4b21f57e6b3888534c
# follows onnx in https://github.com/microsoft/onnxruntime/tree/main/cmake/external
ref: 595228d99e3977ac27cb79d5963adda262af99ad
fetch-depth: 1
path: vsort/onnx

Expand Down Expand Up @@ -102,14 +103,14 @@ jobs:
- name: Setup ONNX Runtime
run: |
curl -L -o ort.tgz https://github.com/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-osx-arm64-1.17.1.tgz
curl -L -o ort.tgz https://github.com/microsoft/onnxruntime/releases/download/v1.19.2/onnxruntime-osx-arm64-1.19.2.tgz
tar -xf ort.tgz
mv onnxruntime-* onnxruntime
- name: Configure
run: cmake -S . -B build -G Ninja -LA
-D CMAKE_BUILD_TYPE=Release
-D CMAKE_CXX_FLAGS="-Wall -ffast-math -march=armv8-a"
-D CMAKE_CXX_FLAGS="-Wall -ffast-math -mcpu=apple-a14"
-D VAPOURSYNTH_INCLUDE_DIRECTORY="`pwd`/vapoursynth/include"
-D ONNX_RUNTIME_API_DIRECTORY=onnxruntime/include
-D ONNX_RUNTIME_LIB_DIRECTORY=onnxruntime/lib
Expand All @@ -133,7 +134,7 @@ jobs:
run: git describe --tags --long

- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: vsort-macos-arm64
path: vsort/artifact

0 comments on commit 1a1b290

Please sign in to comment.