From f263c39791345277bc1164faef9d0023e6851b45 Mon Sep 17 00:00:00 2001 From: Colin Davidson Date: Thu, 22 Jun 2023 10:20:07 +0100 Subject: [PATCH] Added simple host build of UnitCL with sccache --- .github/workflows/docs.yml | 3 +- .github/workflows/merge_request.yml | 59 +++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/merge_request.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 618a40a72..f4525d0dd 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -8,7 +8,8 @@ name: Build documentation # order to satisfy our current cmake configurations e.g. spirv-tools on: - pull_request: +# temporarily disable for testing purposes +# pull_request: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: diff --git a/.github/workflows/merge_request.yml b/.github/workflows/merge_request.yml new file mode 100644 index 000000000..486ce7704 --- /dev/null +++ b/.github/workflows/merge_request.yml @@ -0,0 +1,59 @@ +# Simple workflow for running merge request tests +name: Merge Request tester + +on: + # temporary + push: + + pull_request: + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + build_ca_host_x86_64: + runs-on: ubuntu-22.04 + + steps: + + # - name: Install prerequisites + # run: | + # sudo apt-get install -y spirv-tools + # pip install lit + + - name: Install Ninja + uses: llvm/actions/install-ninja@main + + - name: Checkout repo + uses: actions/checkout@v3 + with: + repository: codeplaysoftware/oneapi-construction-kit + + - name: Setup ccache + uses: hendrikmuhs/ccache-action@v1.2 + with: + max-size: 50M + key: sccache-build_ca_host_x86_64 + variant: sccache + + - name: load llvm + uses: actions/cache/restore@v3 + with: + path: llvm_install/** + key: llvm-ubuntu-22.04-v16-RelAssert + fail-on-cache-miss: true + + - name: check directories for llvm + run: + find ${{github.workspace}}/llvm_install/lib/cmake + + - name: build_x86-llvm15-cl3.0-release + uses: ./.github/actions/build_ock + with: + build_type: Release + mux_target: host + + - name: build_ca + run: + ninja -C build oclc UnitCL UnitCargo UnitMux UnitCompiler UnitMD FuzzCL + clVectorAddition veczc