-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Demonstrate callable workflow methodology
- Loading branch information
Showing
4 changed files
with
95 additions
and
29 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
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 |
---|---|---|
@@ -1,18 +1,28 @@ | ||
# Simple workflow for running non-documentation PR testing | ||
name: Run ock tests for PR testing | ||
on: | ||
pull_request: | ||
paths: | ||
- 'source/**' | ||
- 'clik/**' | ||
- 'modules/**' | ||
- 'examples/**' | ||
- 'cmake/**' | ||
- 'hal/**' | ||
- '.github/actions/do_build_ock/**' | ||
- '.github/actions/setup_ubuntu_build/**' | ||
- '.github/workflows/run_pr_tests.yml' | ||
- 'CMakeLists.txt' | ||
workflow_call: | ||
inputs: | ||
llvm_latest: | ||
required: true | ||
type: string | ||
llvm_previous: | ||
required: true | ||
type: string | ||
update_cache: | ||
default: false | ||
type: boolean | ||
workflow_dispatch: | ||
inputs: | ||
llvm_latest: | ||
required: true | ||
type: string | ||
llvm_previous: | ||
required: true | ||
type: string | ||
update_cache: | ||
default: false | ||
type: boolean | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
@@ -37,7 +47,7 @@ jobs: | |
- name: setup-ubuntu | ||
uses: ./.github/actions/setup_ubuntu_build | ||
with: | ||
llvm_version: 18 | ||
llvm_version: ${{ inputs.llvm_latest }} | ||
llvm_build_type: RelAssert | ||
|
||
# These need to match the configurations of build_pr_cache to use the cache effectively | ||
|
@@ -81,7 +91,7 @@ jobs: | |
- name: setup-ubuntu | ||
uses: ./.github/actions/setup_ubuntu_build | ||
with: | ||
llvm_version: 18 | ||
llvm_version: ${{ inputs.llvm_latest }} | ||
llvm_build_type: RelAssert | ||
|
||
- name: build riscv M1 | ||
|
@@ -123,3 +133,33 @@ jobs: | |
fi | ||
cat clang-format.diff | ||
exit 1 | ||
############### JOB mr-ubuntu-gcc-x86_64-riscv-fp16-cl3-0-unitcl_vecz: | ||
|
||
mr-ubuntu-gcc-x86_64-riscv-fp16-cl3-0-unitcl_vecz: | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 60 | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/[email protected] | ||
- name: setup-ubuntu | ||
uses: ./.github/actions/setup_ubuntu_build | ||
with: | ||
llvm_version: ${{ inputs.llvm_latest }} | ||
llvm_build_type: RelAssert | ||
- run: echo WORKSPACE is $GITHUB_WORKSPACE && echo PWD is `pwd` && ls -al | ||
- name: build ock | ||
uses: ./.github/actions/do_build_ock | ||
with: | ||
build_targets: check-ock-UnitCL-group-vecz | ||
mux_targets_enable: riscv | ||
mux_compilers_enable: riscv | ||
riscv_enabled: ON | ||
enable_rvv_scalable_vecz_check: ON | ||
enable_rvv_scalable_vp_vecz_check: ON | ||
use_linker: gold | ||
hal_description: RV64GCV_Zfh | ||
hal_refsi_soc: G1 | ||
hal_refsi_thread_mode: WG | ||
debug_support: ON | ||
gtest_launcher: "/usr/bin/python;-u;${{ github.workspace }}/scripts/gtest-terse-runner.py" |
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,26 @@ | ||
# Calling workflow for running PR style tests | ||
name: Run ock tests for PR style testing | ||
on: | ||
pull_request: | ||
paths: | ||
- 'source/**' | ||
- 'clik/**' | ||
- 'modules/**' | ||
- 'examples/**' | ||
- 'cmake/**' | ||
- 'hal/**' | ||
- '.github/actions/do_build_ock/**' | ||
- '.github/actions/setup_ubuntu_build/**' | ||
- '.github/workflows/run_pr_tests.yml' | ||
- 'CMakeLists.txt' | ||
|
||
run-on-pull: | ||
name: Call PR testing on pull request | ||
# if: ${{ github.event_name == 'pull_request' }} | ||
uses: ./.github/workflows/workflow_callee.yml | ||
with: | ||
llvm_latest: 18 | ||
llvm_previous: 17 | ||
update_cache: false | ||
|
||
# additional ones here for cron and/or push o main - also can be in different file. |