Skip to content

Commit

Permalink
ci: Fix ANDROID_NDK path
Browse files Browse the repository at this point in the history
  • Loading branch information
bwrsandman committed Jul 26, 2022
1 parent 78c0868 commit 7fdbb60
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/ci-cross-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ jobs:

- name: Install EMSDK
run: |
git clone https://github.com/emscripten-core/emsdk /tmp/emsdk
pushd /tmp/emsdk
git clone https://github.com/emscripten-core/emsdk ${EMSDK}
pushd ${EMSDK}
./emsdk install latest
./emsdk activate latest
if: matrix.preset == 'emscripten-vcpkg'
Expand All @@ -64,32 +64,20 @@ jobs:
with:
configurePreset: '${{ matrix.preset }}'
configurePresetCmdString: "[`--preset`, `$[env.CONFIGURE_PRESET_NAME]`, `-DOPENBLACK_WARNINGS_AS_ERRORS=ON`]"
env:
EMSDK: '/tmp/emsdk'
CXX: ''
CC: ''

- name: Run CMake+vcpkg to build (Debug).
uses: lukka/run-cmake@v10
with:
configurePreset: '${{ matrix.preset }}'
configurePresetCmdString: "[`--preset`, `$[env.CONFIGURE_PRESET_NAME]`, `-DOPENBLACK_WARNINGS_AS_ERRORS=ON`]"
buildPreset: '${{ matrix.preset }}-debug'
env:
EMSDK: '/tmp/emsdk'
CXX: ''
CC: ''

- name: Run CMake+vcpkg to build (Release).
uses: lukka/run-cmake@v10
with:
configurePreset: '${{ matrix.preset }}'
configurePresetCmdString: "[`--preset`, `$[env.CONFIGURE_PRESET_NAME]`, `-DOPENBLACK_WARNINGS_AS_ERRORS=ON`]"
buildPreset: '${{ matrix.preset }}-release'
env:
EMSDK: '/tmp/emsdk'
CXX: ''
CC: ''

- uses: actions/upload-artifact@v3
with:
Expand All @@ -99,3 +87,5 @@ jobs:

env:
VCPKG_DEFAULT_TRIPLET: ${{ matrix.triplet }}
EMSDK: '/tmp/emsdk'
ANDROID_NDK_HOME: '/usr/local/lib/android/sdk/ndk/23.2.8568313'

0 comments on commit 7fdbb60

Please sign in to comment.