forked from codeplaysoftware/oneapi-construction-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
149 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: build-ock-m1 | ||
description: Action to build the oneapi-construction-kit for default riscv m1 target | ||
|
||
inputs: | ||
build_type: | ||
description: 'build type (Release, ReleaseAssert)' | ||
default: ReleaseAssert | ||
|
||
runs: | ||
# We don't want a new docker just a list of steps, so mark as composite | ||
using: "composite" | ||
steps: | ||
- name: build_ock | ||
uses: ./.github/actions/do_build_ock | ||
with: | ||
build_type: ${{ inputs.build_type }} | ||
mux_targets_enable: riscv | ||
mux_compilers_enable: refsi_m1 | ||
external_compiler_dirs: "${{ github.workspace }}/examples/refsi/refsi_m1/compiler/refsi_m1" | ||
riscv_enabled: ON | ||
enable_rvv_scalable_vecz_check: ON | ||
enable_rvv_scalable_VP_vecz_check: ON |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: setup-ubuntu-build | ||
description: Setup ubuntu ready for building. Does not include cache which is separate | ||
|
||
inputs: | ||
build_type: | ||
description: 'build type (Release, RelAssert)' | ||
default: RelAssert | ||
llvm_version: | ||
description: 'TBD' | ||
default: 16 | ||
ubuntu_version: | ||
description: 'TBD' | ||
default: 22.04 | ||
|
||
|
||
runs: | ||
# We don't want a new docker just a list of steps, so mark as composite | ||
using: "composite" | ||
steps: | ||
- name: Install prerequisites | ||
shell: bash | ||
run: | | ||
sudo apt-get install -y spirv-tools | ||
pip install lit | ||
- name: Install Ninja | ||
uses: llvm/actions/install-ninja@main | ||
|
||
- name: load llvm | ||
uses: actions/cache/restore@v3 | ||
with: | ||
path: llvm_install/** | ||
key: llvm-ubuntu-${{ inputs.ubuntu_version }}-v${{ inputs.llvm_version}}-${{ inputs.build_type }} | ||
fail-on-cache-miss: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Simple workflow for building sccache for PR testing | ||
name: Build cache for PR testing | ||
# Note this will currently create a new sscache file and this must be manually pruned until such time as we have a job | ||
# for this. | ||
on: | ||
push: | ||
branches: | ||
- colin/add_cached_mr_building # Change to main before review | ||
path: [.github/workflows/build_mr_cache.yml, .github/do_build_ock/**] | ||
# 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: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
# installs tools, ninja and installs llvm (default 16, RelAssert) | ||
- name: setup-ubuntu | ||
uses: ./.github/actions/setup_ubuntu_build | ||
|
||
# note the PR testing usage should set 'save' to false, to avoid PR testing creating new caches on a branch | ||
- name: Setup sccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
max-size: 200M | ||
key: sccache-build | ||
variant: sccache | ||
|
||
- name: build_mr_x86-cl3.0-release | ||
uses: ./.github/actions/do_build_ock | ||
with: | ||
build_type: Release | ||
|
||
- name: build_mr_x86-offline | ||
uses: ./.github/actions/do_build_ock | ||
with: | ||
build_type: Release | ||
extra_flags: -DCA_RUNTIME_COMPILER_ENABLED=OFF -DCA_EXTERNAL_CLC=${{ github.workspace }}/build/bin/clc | ||
build_dir: build_offline | ||
build_targets: UnitCL | ||
|
||
- name: run host offline for extra checking | ||
run: | ||
ninja -C build check-UnitCL | ||
|
||
- name: clean_build | ||
run: | ||
rm -rf ${{ github.workspace }}/build* | ||
|
||
- name: build_mr-ubuntu-gcc-x86_64-riscv-3.0_m1 | ||
uses: ./.github/actions/do_build_ock/do_build_m1 | ||
|
||
- name: run riscv M1 UnitCL for extra checking | ||
run: | ||
ninja -C build check-UnitCL | ||
|
||
- name: run riscv M1 lit for extra checking | ||
run: | ||
ninja -C build check-all-lit |
This file was deleted.
Oops, something went wrong.