Skip to content

Add building of code for PRs to seed sccache and run some PR testing for code #44

Add building of code for PRs to seed sccache and run some PR testing for code

Add building of code for PRs to seed sccache and run some PR testing for code #44

Workflow file for this run

# 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: load llvm
uses: actions/cache/restore@v3
with:
path: llvm_install/**
key: llvm-ubuntu-22.04-v16-RelAssert
fail-on-cache-miss: true
- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
max-size: 50M
key: sccache-build
variant: sccache
- name: build_mr_x86-llvm15-cl3.0-release
uses: ./.github/actions/build_ock
with:
build_type: Release
mux_targets_enable: host
- name: build_mr_x86-offline
uses: ./.github/actions/build_ock
with:
build_type: Release
mux_targets_enable: host
extra_flags: -DCA_RUNTIME_COMPILER_ENABLED=OFF -DCA_EXTERNAL_CLC=${{ github.workspace }}/build/bin/clc
build_dir: build_offline
build_targets: UnitCL
# - python -u scripts/build.py -GNinja --verbose --clean
# --build_type $BuildType --arch $Arch --compiler $Compiler
# --binary_dir build_offline --target check-ComputeAorta
# --offline_only --external_clc $CI_PROJECT_DIR/oneapi-construction-kit/build/bin/clc
# -DCA_CL_ENABLE_ICD_LOADER=ON
# -DCA_ENABLE_HOST_IMAGE_SUPPORT=$Images
# -DCA_HOST_ENABLE_FP16=$FP16
# -DOCL_EXTENSION_cl_khr_command_buffer=$CommandBuffer
# -DOCL_EXTENSION_cl_khr_command_buffer_mutable_dispatch=$CommandBuffer
# -DCA_USE_LINKER=gold
# - name: build_mr-ubuntu-gcc-x86_64-riscv-3.0_m1
# uses: ./.github/actions/build_ock
# with:
# # Default SOC M1, external compiler dir, hal_description RV64GCV, thread mode WG
# build_type: ReleaseAssert
# mux_targets_enable: riscv
# mux_compilers_enable: refsi_m1
# external_compiler_dirs: "${{ github.workspace }}/examples/refsi/refsi_m1/compiler/refsi_m1"
# riscv_enabled: ON
# extra_flags: -DCA_CL_ENABLE_RVV_SCALABLE_VECZ_CHECK=ON -DCA_CL_ENABLE_RVV_SCALABLE_VP_VECZ_CHECK=ON
- name: run_it_for_demo
run:
ninja -C build_offline check-UnitCL
- name: run_it_for_demo2
run:
ninja -C build_offline check-all-lit