Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRAFT: NOT FOR REVIEW : Add ock workflow for aarch64 #528

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/actions/setup_build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ runs:
if [ "${{ inputs.ubuntu_version }}" = "22.04" ]; then sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-1.3.243-jammy.list https://packages.lunarg.com/vulkan/1.3.243/lunarg-vulkan-1.3.243-jammy.list; fi
if [ "${{ inputs.ubuntu_version }}" = "24.04" ]; then sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-noble.list https://packages.lunarg.com/vulkan/lunarg-vulkan-noble.list; fi
sudo apt-get update
pip install lit clang-format==19.1.0 clang-tidy==19.1.0 virtualenv
pip install lit clang-format==19.1.0 virtualenv
sudo apt-get install --yes clang-tidy-19
sudo apt-get install --yes doxygen
sudo apt-get install --yes vulkan-sdk
if [ "${{ inputs.cross_arch }}" = "x86" ]; then \
Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/build_ock_aarch64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Simple workflow for testing aarch64 ock
name: Run aarch64 ock tests for pr testing
on:
# For testing purposes do on a pull request if this file changes
pull_request:
paths:
- '.github/workflows/build_ock_aarch64.yml'
- '.github/actions/setup_build/**'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:

# build and run host aarch64, execute UnitCL and lit tests and build and run offline
run_host_aarch64:
runs-on: cp-graviton
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: add to path
run:
echo "PATH=$PATH:/home/ubuntu/.local/bin" >> $GITHUB_ENV

- name: echo PATH
run:
echo PATH=$PATH
# installs tools, ninja, installs llvm and sets up sccahe
- name: setup-ubuntu
uses: ./.github/actions/setup_build
with:
llvm_version: 18
llvm_build_type: RelAssert

# These need to match the configurations of build_pr_cache to use the cache effectively
- name: build host x86_64 online release
uses: ./.github/actions/do_build_ock
with:
build_type: ReleaseAssert

- name: run just online lit
run:
ninja -C build check-ock-all-lit

- name: run host online check
run:
ninja -C build check-ock-UnitCL
2 changes: 2 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ permissions: {}

jobs:
analyze-host-x86_64-release:
if: false
name: Analyze host x86_64 release
permissions:
# required for all workflows
Expand Down Expand Up @@ -72,6 +73,7 @@ jobs:
category: "/language:c-cpp"

analyze-riscv-m1:
if: false
name: Analyze riscv m1
permissions:
# required for all workflows
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run_pr_tests_caller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ concurrency:
jobs:
run-with-pull:
name: Call PR testing on pull request
if: ${{ github.event_name == 'pull_request' }}
if: ${{ false && github.event_name == 'pull_request' }}
uses: ./.github/workflows/run_pr_tests.yml
with:
update_cache: false
Expand Down
Loading