DRAFT: Add windows PR workflow #19
Workflow file for this run
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
# 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_windows_pr_tests.yml' | ||
- 'CMakeLists.txt' | ||
# 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 x86_64, execute UnitCL and lit tests and build and run offline | ||
run_host_x86_64: | ||
runs-on: windows-2019 | ||
steps: | ||
- name: Setup Windows llvm base | ||
if: startsWith(runner.os, 'Windows') && steps.cache.outputs.cache-hit != 'true' | ||
uses: llvm/actions/setup-windows@main | ||
with: | ||
arch: amd64 | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
- name: set ICD registry | ||
if: startsWith(runner.os, 'Windows') | ||
shell: ${{ inputs.shell_to_use }} | ||
Check failure on line 42 in .github/workflows/run_windows_pr_tests.yml GitHub Actions / Run ock tests for PR testingInvalid workflow file
|
||
run: | ||
$PWD = Convert-Path .; echo source/cl/tools/icd-register.ps1 "$PWD/${{ inputs.build_dir }}/bin/CL.dll" | ||
- name: set ICD registry2 | ||
if: startsWith(runner.os, 'Windows') | ||
shell: ${{ inputs.shell_to_use }} | ||
run: | ||
$PWD = Convert-Path .; source/cl/tools/icd-register.ps1 "$PWD/${{ inputs.build_dir }}/bin/CL.dll" | ||
# installs tools, ninja, installs llvm and sets up sccahe | ||
# - name: setup-windows | ||
# uses: ./.github/actions/setup_windows_build | ||
# with: | ||
# llvm_version: 18 | ||
# llvm_build_type: RelAssert | ||
# # 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: Release | ||
# shell_to_use: pwsh | ||
# - 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 |