Skip to content

Commit

Permalink
macos updates
Browse files Browse the repository at this point in the history
  • Loading branch information
skottmckay committed Jun 12, 2024
1 parent 8a2955c commit 265b7c9
Showing 1 changed file with 14 additions and 19 deletions.
33 changes: 14 additions & 19 deletions .github/workflows/android-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,38 +35,33 @@ jobs:
echo "ANDROID_NDK_LATEST_HOME=$ANDROID_NDK_LATEST_HOME"
ls -l $ANDROID_HOME/ndk
- name: Install jq
run: |
sudo apt-get install jq
# - name: Install jq
# run: |
# sudo apt-get install jq

# - uses: actions/setup-dotnet@v4
# with:
# dotnet-version: '8.0.x'

- uses: actions/setup-dotnet@v4
- name: Checkout OnnxRuntime GenAI repo
uses: actions/checkout@v4
with:
dotnet-version: '8.0.x'
submodules: true

- name: Get the Latest OnnxRuntime Nightly Version
run: |
ORT_NIGHTLY_VERSION=$(curl -s "${{ env.ORT_NIGHTLY_REST_API }}" | jq -r '.value[0].versions[0].normalizedVersion')
echo "$ORT_NIGHTLY_VERSION"
echo "ORT_NIGHTLY_VERSION=$ORT_NIGHTLY_VERSION" >> $GITHUB_ENV
- name: Download ONNX Runtime Nightly
run: |
dotnet new console
dotnet add package ${{ env.ORT_PACKAGE_NAME }} --version ${{ env.ORT_NIGHTLY_VERSION }} --source ${{ env.ORT_NIGHTLY_SOURCE }} --package-directory .
dotnet build
continue-on-error: true

- name: list files
shell: bash
- name: Download OnnxRuntime Nightly
run: |
ls -l
ls -R ${{ env.ORT_PACKAGE_NAME }}
continue-on-error: true
nuget install ${{ env.ORT_PACKAGE_NAME }} -version ${{ env.ORT_NIGHTLY_VERSION }} -x
# unzip microsoft.ml.onnxruntime/${{ env.ORT_NIGHTLY_VERSION }}/runtimes/android/native/onnxruntime.aar -d ort
- name: Extract ONNX Runtime AAR
run: |
set -e -x
unzip microsoft.ml.onnxruntime/${{ env.ORT_NIGHTLY_VERSION }}/runtimes/android/native/onnxruntime.aar -d ort
unzip ${{ env.ORT_PACKAGE_NAME }}/runtimes/android/native/onnxruntime.aar -d ort
ls -lR ort
- name: Create Android build
Expand Down

0 comments on commit 265b7c9

Please sign in to comment.