Skip to content

Commit 92b8a0b

Browse files
committed
Add ock workflow for aarch64
1 parent e07ca5e commit 92b8a0b

File tree

3 files changed

+69
-10
lines changed

3 files changed

+69
-10
lines changed

.github/actions/do_build_ock/action.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ runs:
8282
shell: bash
8383
run:
8484
cmake -GNinja
85-
-B${{ inputs.build_dir }}
86-
-DCMAKE_C_COMPILER_LAUNCHER=sccache
87-
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache
85+
-B${{ inputs.build_dir }}
8886
-DCA_MUX_TARGETS_TO_ENABLE=${{ inputs.mux_targets_enable }}
8987
-DCA_ENABLE_API=${{ inputs.enable_api }}
9088
-DCA_LLVM_INSTALL_DIR=${{ inputs.llvm_install_dir }}
@@ -110,6 +108,12 @@ runs:
110108
-DCMAKE_INSTALL_PREFIX=${{ inputs.install_dir }}
111109
${{ inputs.extra_flags }}
112110
.
111+
112+
# Removed for aarch64
113+
# -DCMAKE_C_COMPILER_LAUNCHER=sccache
114+
# -DCMAKE_CXX_COMPILER_LAUNCHER=sccache
115+
116+
113117
- name: build_ock
114118
shell: bash
115119
run:

.github/actions/setup_ubuntu_build/action.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@ runs:
3939
fail-on-cache-miss: true
4040

4141
# note the PR testing usage should set 'save' to false, to avoid PR testing creating new caches on a branch
42-
- name: Setup sccache
43-
uses: hendrikmuhs/[email protected]
44-
with:
45-
max-size: 200M
46-
key: sccache-build
47-
variant: sccache
48-
save: ${{ inputs.save }}
42+
# - name: Setup sccache
43+
# if: ${{ inputs.arch}} == 'x86_64'
44+
# uses: hendrikmuhs/[email protected]
45+
# with:
46+
# max-size: 200M
47+
# key: sccache-build
48+
# variant: sccache
49+
# save: ${{ inputs.save }}
4950

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Simple workflow for testing aarch64 ock
2+
name: Run aarch64 ock tests for pr testing
3+
on:
4+
# For testing purposes do on a pull request if this file changes
5+
pull_request:
6+
paths:
7+
- '.github/workflows/build_ock_aarch64.yml'
8+
- '.github/actions/setup_ubuntu_build/**'
9+
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
19+
# build and run host aarch64, execute UnitCL and lit tests and build and run offline
20+
run_host_aarch64:
21+
runs-on: cp-graviton
22+
steps:
23+
- name: Checkout repo
24+
uses: actions/checkout@v4
25+
- name: add to path
26+
run:
27+
echo "PATH=$PATH:/home/ubuntu/.local/bin" >> $GITHUB_ENV
28+
29+
- name: echo PATH
30+
run:
31+
echo PATH=$PATH
32+
# installs tools, ninja, installs llvm and sets up sccahe
33+
- name: setup-ubuntu
34+
uses: ./.github/actions/setup_ubuntu_build
35+
with:
36+
llvm_version: 18
37+
llvm_build_type: RelAssert
38+
arch: aarch64
39+
40+
# These need to match the configurations of build_pr_cache to use the cache effectively
41+
- name: build host x86_64 online release
42+
uses: ./.github/actions/do_build_ock
43+
with:
44+
build_type: ReleaseAssert
45+
46+
- name: run just online lit
47+
run:
48+
ninja -C build check-ock-all-lit
49+
50+
- name: run host online check
51+
run:
52+
ninja -C build check-ock-UnitCL
53+
54+

0 commit comments

Comments
 (0)