Skip to content

Bump actions/upload-artifact from 3.1.3 to 4.2.0 #107

Bump actions/upload-artifact from 3.1.3 to 4.2.0

Bump actions/upload-artifact from 3.1.3 to 4.2.0 #107

Workflow file for this run

name: cmake-android
on:
push:
branches: [ main ]
pull_request:
types: [ opened, synchronize ]
permissions:
contents: read
jobs:
android:
concurrency:
group: '${{ matrix.type }} ${{ matrix.cfg }} ${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
name: Android
runs-on: ubuntu-latest
strategy:
matrix:
type: [ BUILD_SHARED_LIBS=OFF, BUILD_SHARED_LIBS=ON ]
cfg: [ Debug, Release ]
steps:
- name: Harden Runner
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
with:
egress-policy: audit
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
- run: sudo apt update && sudo apt install libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev libc6-dev
- uses: humbletim/setup-vulkan-sdk@72eed4b9dbeac5de168f83da8e30b1d0f8ac7f14 # v1.2.0
with:
vulkan-query-version: latest
vulkan-components: Vulkan-Headers, Vulkan-Loader, Glslang
vulkan-use-cache: true
- run: |
cmake . -B build -D${{ matrix.type }} --install-prefix ${{ github.workspace }}/install -DCMAKE_INSTALL_DIR=${{ github.workspace }}/install -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE
cmake --build ${{ github.workspace }}/build --config ${{ matrix.cfg }}
cmake --install ${{ github.workspace }}/build --config ${{ matrix.cfg }}