From d97a8c666cd8472ceee394bd74d86ddb969d2a87 Mon Sep 17 00:00:00 2001 From: Colin Davidson Date: Thu, 12 Sep 2024 12:16:01 +0100 Subject: [PATCH] Add ock workflow for aarch64 --- .github/workflows/build_ock_aarch64.yml | 52 +++++++++++++++++++++++ .github/workflows/codeql.yml | 2 + .github/workflows/run_pr_tests_caller.yml | 2 +- 3 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build_ock_aarch64.yml diff --git a/.github/workflows/build_ock_aarch64.yml b/.github/workflows/build_ock_aarch64.yml new file mode 100644 index 000000000..5b25345b7 --- /dev/null +++ b/.github/workflows/build_ock_aarch64.yml @@ -0,0 +1,52 @@ +# 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_ubuntu_build + with: + llvm_version: 18 + llvm_build_type: RelAssert + # arch: aarch64 + + # 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 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 969248aa1..7369867af 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -25,6 +25,7 @@ permissions: {} jobs: analyze-host-x86_64-release: + if: false name: Analyze host x86_64 release permissions: # required for all workflows @@ -72,6 +73,7 @@ jobs: category: "/language:c-cpp" analyze-riscv-m1: + if: false name: Analyze riscv m1 permissions: # required for all workflows diff --git a/.github/workflows/run_pr_tests_caller.yml b/.github/workflows/run_pr_tests_caller.yml index bf7d33b70..a26a5a929 100644 --- a/.github/workflows/run_pr_tests_caller.yml +++ b/.github/workflows/run_pr_tests_caller.yml @@ -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