Skip to content

Commit 9020102

Browse files
author
Colin Davidson
committed
Switch to calling an action for PR tests
1 parent 8b3beaa commit 9020102

File tree

4 files changed

+460
-409
lines changed

4 files changed

+460
-409
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: build_pr_host_x86_64
2+
description: Build pr host x86_64
3+
4+
inputs:
5+
cache_seed: false
6+
7+
runs:
8+
using: "composite"
9+
steps:
10+
- name: remove any old dirs
11+
shell: bash
12+
run:
13+
rm -rf build build_offline
14+
- name: build host x86_64 online release
15+
uses: ./.github/actions/do_build_ock
16+
with:
17+
build_type: Release
18+
offline_kernel_tests: ${{ inputs.cache_seed && 'OFF' || 'ON' }}
19+
- name: build host x86_64 offline release
20+
uses: ./.github/actions/do_build_ock
21+
with:
22+
build_type: Release
23+
extra_flags: -DCA_RUNTIME_COMPILER_ENABLED=OFF -DCA_EXTERNAL_CLC=${{ github.workspace }}/build/bin/clc
24+
build_dir: build_offline
25+
build_targets: UnitCL
26+
assemble_spirv_ll_lit_test_offline: ON
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Run ock tests for PR style testing
2+
on:
3+
pull_request:
4+
paths:
5+
- '.github/workflows/pr_tests_cache.yml'
6+
7+
concurrency:
8+
group: pr-test-cache-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
9+
cancel-in-progress: true
10+
11+
env:
12+
llvm_previous: "18"
13+
14+
jobs:
15+
ubuntu_22_llvm_prev_jobs:
16+
runs-on: ubuntu-22.04
17+
container:
18+
image: ghcr.io/uxlfoundation/ock_ubuntu_22.04-x86-64:latest
19+
volumes:
20+
- ${{github.workspace}}:${{github.workspace}}
21+
steps:
22+
- name: Checkout repo
23+
uses: actions/checkout@v4
24+
25+
# installs tools, ninja, installs llvm and sets up sccahe
26+
- name: setup-ubuntu
27+
uses: ./.github/actions/setup_build
28+
with:
29+
llvm_version: ${{ env.llvm_previous }}
30+
llvm_build_type: RelAssert
31+
save: true
32+
- name: seed host_x86_64
33+
uses: ./.github/actions/do_build_pr/run_host_x86_64
34+
with:
35+
cache_seed: true
36+
37+

0 commit comments

Comments
 (0)