Skip to content

Commit 728fe71

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

File tree

10 files changed

+511
-272
lines changed

10 files changed

+511
-272
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: ${{ inputs.cache_seed && 'OFF' || 'ON' }}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: build_pr_riscv_m1
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
16+
17+
- name: build_ock
18+
uses: ./.github/actions/do_build_ock
19+
with:
20+
build_type: ${{ inputs.build_type }}
21+
mux_targets_enable: riscv
22+
mux_compilers_enable: refsi_m1
23+
external_compiler_dirs: "${{ github.workspace }}/examples/refsi/refsi_m1/compiler/refsi_m1"
24+
riscv_enabled: ON
25+
enable_rvv_scalable_vecz_check: ON
26+
enable_rvv_scalable_vp_vecz_check: ON
27+
offline_kernel_tests: ${{ inputs.cache_seed && 'OFF' || 'ON' }}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: build_pr_ubuntu_clang_x86_llvm_latest_cl3_0_offline
2+
description: Build pr ubuntu_clang_x86_llvm_latest_cl3_0_offline
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+
17+
- name: build ock x86 relassert
18+
uses: ./.github/actions/do_build_ock
19+
with:
20+
build_32_bit: ON
21+
extra_flags: -DCMAKE_C_COMPILER=$GITHUB_WORKSPACE/llvm_install/bin/clang -DCMAKE_CXX_COMPILER=$GITHUB_WORKSPACE/llvm_install/bin/clang++
22+
build_targets: ${{ inputs.cache_seed && 'UnitCL clc' || 'check-ock' }}
23+
enable_api: ""
24+
builtin_kernel: ON
25+
use_linker: gold
26+
debug_support: ON
27+
offline_kernel_tests: ${{ inputs.cache_seed && 'OFF' || 'ON' }}
28+
29+
- name: build ock x86 offline
30+
uses: ./.github/actions/do_build_ock
31+
with:
32+
build_32_bit: ON
33+
extra_flags: -DCMAKE_C_COMPILER=$GITHUB_WORKSPACE/llvm_install/bin/clang -DCMAKE_CXX_COMPILER=$GITHUB_WORKSPACE/llvm_install/bin/clang++
34+
build_targets: ${{ inputs.cache_seed && 'UnitCL' || 'check-ock' }}
35+
runtime_compiler_enabled: OFF
36+
assemble_spirv_ll_lit_test_offline: ${{ inputs.cache_seed && 'OFF' || 'ON' }}
37+
external_clc: ${GITHUB_WORKSPACE}/build/bin/clc
38+
use_linker: gold
39+
debug_support: ON
40+
install_dir: $GITHUB_WORKSPACE/install_offline
41+
build_dir: $GITHUB_WORKSPACE/build_offline
42+
offline_kernel_tests: ${{ inputs.cache_seed && 'OFF' || 'ON' }}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: build_pr_ubuntu_gcc_x86_64_refsi_g1_wi_cl3_0
2+
description: Build pr ubuntu_gcc_x86_64_refsi_g1_wi_cl3_0
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
16+
- name: build ock
17+
uses: ./.github/actions/do_build_ock
18+
with:
19+
build_targets: install # Build the install target so we don't miss compilation errors
20+
mux_targets_enable: riscv
21+
external_compiler_dirs: ${{ github.workspace }}/examples/refsi/refsi_g1_wi/compiler/refsi_g1_wi
22+
mux_compilers_enable: refsi_g1_wi
23+
riscv_enabled: ON
24+
disable_unitcl_vecz_checks: ON
25+
enable_rvv_scalable_vecz_check: ON
26+
enable_rvv_scalable_vp_vecz_check: ON
27+
use_linker: gold
28+
hal_description: RV64GCV
29+
hal_refsi_soc: G1
30+
hal_refsi_thread_mode: WI
31+
debug_support: ON
32+
offline_kernel_tests: ${{ inputs.cache_seed && 'OFF' || 'ON' }}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: build_pr_ubuntu_gcc_x86_64_riscv_fp16_cl3-0
2+
description: Build pr ubuntu_gcc_x86_64_riscv_fp16_cl3-0
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+
17+
- name: build ock
18+
uses: ./.github/actions/do_build_ock
19+
with:
20+
build_targets: ${{ inputs.cache_seed && 'UnitCL clc' || 'check-ock' }}
21+
mux_targets_enable: riscv
22+
mux_compilers_enable: riscv
23+
riscv_enabled: ON
24+
disable_unitcl_vecz_checks: ON
25+
enable_rvv_scalable_vecz_check: ON
26+
enable_rvv_scalable_vp_vecz_check: ON
27+
host_enable_builtins: OFF
28+
use_linker: gold
29+
hal_description: RV64GCV_Zfh
30+
hal_refsi_soc: G1
31+
hal_refsi_thread_mode: WG
32+
debug_support: ON
33+
offline_kernel_tests: ${{ inputs.cache_seed && 'OFF' || 'ON' }}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: build_pr_ubuntu_gcc_x86_64_riscv_fp16_cl3_0_unitcl_vec
2+
description: Build pr ubuntu_gcc_x86_64_riscv_fp16_cl3_0_unitcl_vec
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
16+
17+
- name: build ock
18+
uses: ./.github/actions/do_build_ock
19+
with:
20+
build_targets: ${{ inputs.cache_seed && 'UnitCL' || 'check-ock-UnitCL-group-vecz' }}
21+
mux_targets_enable: riscv
22+
mux_compilers_enable: riscv
23+
riscv_enabled: ON
24+
enable_rvv_scalable_vecz_check: ON
25+
enable_rvv_scalable_vp_vecz_check: ON
26+
use_linker: gold
27+
hal_description: RV64GCV_Zfh
28+
hal_refsi_soc: G1
29+
hal_refsi_thread_mode: WG
30+
debug_support: ON
31+
offline_kernel_tests: ${{ inputs.cache_seed && 'OFF' || 'ON' }}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: build_pr_ubuntu_gcc_x86_llvm_latest_x86_64_images_cl3_0_release
2+
description: Build pr ubuntu_gcc_x86_llvm_latest_x86_64_images_cl3_0_release
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+
17+
- name: build ock
18+
uses: ./.github/actions/do_build_ock
19+
with:
20+
build_type: Release
21+
build_targets: ${{ inputs.cache_seed && 'UnitCL clc' || 'check-ock' }}
22+
host_image: ON
23+
use_linker: gold
24+
enable_api: ""
25+
builtin_kernel: ON
26+
offline_kernel_tests: ${{ inputs.cache_seed && 'OFF' || 'ON' }}
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
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+
llvm_current: '19'
14+
15+
jobs:
16+
# ubuntu_22_llvm_prev_jobs:
17+
# runs-on: ubuntu-22.04
18+
# container:
19+
# image: ghcr.io/uxlfoundation/ock_ubuntu_22.04-x86-64:latest
20+
# volumes:
21+
# - ${{github.workspace}}:${{github.workspace}}
22+
# steps:
23+
# - name: Checkout repo
24+
# uses: actions/checkout@v4
25+
26+
# # installs tools, ninja, installs llvm and sets up sccahe
27+
# - name: setup-ubuntu
28+
# uses: ./.github/actions/setup_build
29+
# with:
30+
# llvm_version: ${{ env.llvm_previous }}
31+
# llvm_build_type: RelAssert
32+
# save: true
33+
# - name: seed host_x86_64
34+
# uses: ./.github/actions/do_build_pr/run_host_x86_64
35+
# with:
36+
# cache_seed: true
37+
38+
# - name: build riscv M1
39+
# uses: ./.github/actions/do_build_pr/run_riscv_m1
40+
# with:
41+
# cache_seed: true
42+
43+
# - name: build ubuntu_gcc_x86_64_riscv_fp16_cl3_0_unitcl_vecz
44+
# uses: ./.github/actions/do_build_pr/run_ubuntu_gcc_x86_64_riscv_fp16_cl3_0_unitcl_vecz
45+
# with:
46+
# cache_seed: true
47+
48+
ubuntu_22_llvm_current_jobs:
49+
# needs: [ubuntu_22_llvm_prev_jobs]
50+
runs-on: ubuntu-22.04
51+
container:
52+
image: ghcr.io/uxlfoundation/ock_ubuntu_22.04-x86-64:latest
53+
volumes:
54+
- ${{github.workspace}}:${{github.workspace}}
55+
steps:
56+
- name: Checkout repo
57+
uses: actions/checkout@v4
58+
59+
# installs tools, ninja, installs llvm and sets up sccahe
60+
- name: setup-ubuntu
61+
uses: ./.github/actions/setup_build
62+
with:
63+
llvm_version: ${{ env.llvm_current }}
64+
llvm_build_type: RelAssert
65+
save: true
66+
- name: build ubuntu_gcc_x86_64_riscv_fp16_cl3_0
67+
uses: ./.github/actions/do_build_pr/run_ubuntu_gcc_x86_64_riscv_fp16_cl3_0
68+
with:
69+
cache_seed: true
70+
71+
- name: build ubuntu_gcc_x86_llvm_latest_x86_64_images_cl3_0_release
72+
uses: ./.github/actions/do_build_pr/run_ubuntu_gcc_x86_llvm_latest_x86_64_images_cl3_0_release
73+
with:
74+
cache_seed: true
75+
76+
- name: build ubuntu_gcc_x86_64_refsi_g1_wi_cl3_0
77+
uses: ./.github/actions/do_build_pr/run_ubuntu_gcc_x86_64_refsi_g1_wi_cl3_0
78+
with:
79+
cache_seed: true
80+
81+
# need to set up differently for 32 bit
82+
ubuntu_22_llvm_current_x86_jobs:
83+
needs: [ubuntu_22_llvm_current_jobs]
84+
runs-on: ubuntu-22.04
85+
container:
86+
image: ghcr.io/uxlfoundation/ock_ubuntu_22.04-x86-64:latest
87+
volumes:
88+
- ${{github.workspace}}:${{github.workspace}}
89+
steps:
90+
- name: Checkout repo
91+
uses: actions/checkout@v4
92+
93+
# installs tools, ninja, installs llvm and sets up sccache
94+
- name: setup-ubuntu
95+
uses: ./.github/actions/setup_build
96+
with:
97+
llvm_version: ${{ env.llvm_current }}
98+
llvm_build_type: RelAssert
99+
save: true
100+
cross_arch: x86
101+
- name: build ubuntu_clang_x86_llvm_latest_cl3_0_offline
102+
uses: ./.github/actions/do_build_pr/run_ubuntu_clang_x86_llvm_latest_cl3_0_offline
103+
with:
104+
cache_seed: true

0 commit comments

Comments
 (0)