Skip to content

Commit

Permalink
Run build despite vcpkg failure to setup vcpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsenko committed Jun 13, 2022
1 parent 388eb8b commit 98d6e24
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ jobs:
shell: bash
run: echo "::set-output name=commit::$(git rev-parse HEAD)"

- name: Setup Android NDK
if: startsWith(matrix.preset, 'android-')
run: echo "ANDROID_NDK=$ANDROID_NDK_LATEST_HOME" >> $GITHUB_ENV

- name: Setup Vcpkg
if: contains(github.head_ref, 'release/') || steps.check-cache.outputs.cache-hit != 'true'
uses: friendlyanon/setup-vcpkg@v1
Expand All @@ -139,12 +143,8 @@ jobs:
cache-key: vcpkg-${{ matrix.preset }}-${{ hashFiles('./src/realm-core/tools/vcpkg/vcpkg.json') }}-${{ steps.vcpkg_cache_key.outputs.commit }}
cache-restore-keys: vcpkg-${{ matrix.preset }}-

- name: Setup Android NDK
if: startsWith(matrix.preset, 'android-')
run: echo "ANDROID_NDK=$ANDROID_NDK_LATEST_HOME" >> $GITHUB_ENV

- name: Build
if: ${{ contains(github.head_ref, 'release/') || steps.check-cache.outputs.cache-hit != 'true' }}
if: always() && ${{ contains(github.head_ref, 'release/') || steps.check-cache.outputs.cache-hit != 'true' }}
run: |
cmake --preset ${{ matrix.preset }}
cmake --build --preset ${{ matrix.build || matrix.preset }} --config Release
Expand Down

0 comments on commit 98d6e24

Please sign in to comment.