Skip to content

Commit 5b1bdc4

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

File tree

4 files changed

+462
-409
lines changed

4 files changed

+462
-409
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: build_pr_host_x86_64
2+
description: Build pr host x86_64
3+
4+
inputs:
5+
cache_seed:
6+
type: boolean
7+
default: false
8+
9+
runs:
10+
using: "composite"
11+
steps:
12+
- name: remove any old dirs
13+
shell: bash
14+
run:
15+
rm -rf build build_offline
16+
- name: build host x86_64 online release
17+
uses: ./.github/actions/do_build_ock
18+
with:
19+
build_type: Release
20+
offline_kernel_tests: ${{ inputs.cache_seed && 'OFF' || 'ON' }}
21+
- name: build host x86_64 offline release
22+
uses: ./.github/actions/do_build_ock
23+
with:
24+
build_type: Release
25+
extra_flags: -DCA_RUNTIME_COMPILER_ENABLED=OFF -DCA_EXTERNAL_CLC=${{ github.workspace }}/build/bin/clc
26+
build_dir: build_offline
27+
build_targets: UnitCL
28+
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)