Update NDK to r27c #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build-docker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build docker image | |
run: docker build . -t vcpkg-build | |
- name: Save docker image | |
run: | | |
docker save -o vcpkg-build.tar vcpkg-build | |
zstd vcpkg-build.tar | |
- name: Upload docker image | |
uses: actions/upload-artifact@v4 | |
with: | |
path: vcpkg-build.tar.zst | |
name: vcpkg-build.tar.zst | |
compression-level: 0 | |
download: | |
needs: build-docker | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
arch: [arm64, x64] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download All Artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
pattern: vcpkg-build.tar.zst | |
- name: Load image | |
run: | | |
zstd -d vcpkg-build.tar.zst/vcpkg-build.tar.zst | |
docker load --input vcpkg-build.tar.zst/vcpkg-build.tar | |
- name: Build ${{ matrix.arch }} libraries | |
run: docker run -v $(pwd)/project:/project -t vcpkg-build vcpkg install --triplet ${{ matrix.arch }}-android-dynamic | |
- name: Archive libraries | |
run: tar -c --zstd -f ${{ matrix.arch }}-android-dynamic.tar.zst -C project/vcpkg_installed/ ${{ matrix.arch }}-android-dynamic | |
- name: Upload libraries | |
uses: actions/upload-artifact@v4 | |
with: | |
path: ${{ matrix.arch }}-android-dynamic.tar.zst | |
name: ${{ matrix.arch }}-android-dynamic.tar.zst | |
compression-level: 1 |