brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · c33c6b3 Raw
47 lines · yaml
1name: SPIR-V Tests2 3permissions:4  contents: read5 6on:7  pull_request:8    paths:9      - 'llvm/lib/Target/SPIRV/**'10      - 'llvm/test/CodeGen/SPIRV/**'11      - '.github/workflows/spirv-tests.yml'12 13concurrency:14  # Skip intermediate builds: always.15  # Cancel intermediate builds: only if it is a pull request build.16  group: ${{ github.workflow }}-${{ github.ref }}17  cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}18 19jobs:20  check_spirv:21    if: github.repository_owner == 'llvm'22    name: Test SPIR-V23    runs-on: ubuntu-24.0424    container:25      image: ghcr.io/llvm/ci-ubuntu-24.04:latest26    steps:27      - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.028      - name: Setup ccache29        uses: hendrikmuhs/ccache-action@5ebbd400eff9e74630f759d94ddd7b6c26299639 # v1.2.2030        with:31          max-size: 2G32          key: spirv-ubuntu-24.0433          variant: sccache34      - name: Build and Test35        run: |36          mkdir build37          cmake -GNinja \38            -S llvm \39            -B build \40            -DCMAKE_BUILD_TYPE=Release \41            -DLLVM_ENABLE_ASSERTIONS=ON \42            -DCMAKE_C_COMPILER_LAUNCHER=sccache \43            -DCMAKE_CXX_COMPILER_LAUNCHER=sccache \44            -DLLVM_TARGETS_TO_BUILD="SPIRV" \45            -DLLVM_INCLUDE_SPIRV_TOOLS_TESTS=ON46          ninja -C build check-llvm-codegen-spirv47