diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 1ac23605b2..beaf29f47c 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -4,9 +4,9 @@ on: push: branches: - main - pull_request: - branches: - - main + # pull_request: + # branches: + # - main schedule: - cron: '19 9 * * 3' diff --git a/.github/workflows/planned_testing.yml b/.github/workflows/planned_testing.yml new file mode 100644 index 0000000000..f90d57a19e --- /dev/null +++ b/.github/workflows/planned_testing.yml @@ -0,0 +1,75 @@ +# Simple workflow for running non-documentation PR testing +name: Run ock tests for PR testing +on: + workflow_call: + inputs: + ock: + required: false + type: boolean + default: true + target_list: + required: false + type: string + default: '["x86_64", "aarch64", "riscv64"]' + os_list: + required: false + type: string + default: '["ubuntu-22.04", "windows-2019"]' + # target_host_x86_64_windows: + # required: false + # type: boolean + # default: false + # target_host_aarch64_linux: + # required: false + # type: boolean + # default: true + llvm_version: + required: false + type: string + default: 18 + +env: + target_list: '["x64","aarch64", "riscv64"]' + os_list: '["ubuntu-22.04", "windows-2019"]' + +jobs: + + calc_matrix: + runs-on: ubuntu-latest + name: Calc matrix + outputs: + target_list: ${{ steps.step1.outputs.target_list }} + os_list: ${{ steps.step1.outputs.os_list }} + steps: + - uses: actions/checkout@v3 + - id: step1 + run: | + echo "target_list=$target_list" >> "$GITHUB_OUTPUT" + echo "os_list=$os_list" >> "$GITHUB_OUTPUT" + # echo "target_list=${{ inputs.target_list }}" >> "$GITHUB_OUTPUT" + # echo "os_list=${{ inputs.os_list }}" >> "$GITHUB_OUTPUT" + cat $GITHUB_OUTPUT + + create_ock_artefacts: + needs: calc_matrix + strategy: + matrix: + arch: ${{ fromJson(needs.calc_matrix.outputs.target_list) }} + os: ${{ fromJson(needs.calc_matrix.outputs.os_list) }} + build_type: [RelAssert] + + runs-on: ${{ matrix.os }} + steps: + - name: Build ock (pretend) + # if: ${{ contains(inputs.target_linux.matrix.arch, matrix.arch) }} + run: + echo Running for ${{ matrix.arch }} on os ${{ matrix.os}} input is ${{ inputs.target_linux }}) + + # echo "${{ matrix.os }} ${{ matrix.build_type }} ${{ matrix.arch }}" > foo.txt + + # --define CA_CL_ENABLE_ICD_LOADER=ON + # --define OCL_EXTENSION_cl_khr_command_buffer=ON + # --define OCL_EXTENSION_cl_khr_command_buffer_mutable_dispatch=ON + # --define OCL_EXTENSION_cl_khr_extended_async_copies=ON + # --target check-ock + # -B build \ No newline at end of file diff --git a/.github/workflows/planned_testing_caller.yml b/.github/workflows/planned_testing_caller.yml new file mode 100644 index 0000000000..844cda43aa --- /dev/null +++ b/.github/workflows/planned_testing_caller.yml @@ -0,0 +1,29 @@ +# Calling workflow for running PR style tests +name: Run ock tests for PR style testing +on: + pull_request: + paths: + - '.github/workflows/planned_testing.yml' + # schedule: + # # Run Mon-Fri at 7pm + # - cron: '00 19 * * 1-5' + +jobs: + run-with-pull: + name: Call PR testing on pull request + if: ${{ github.event_name == 'pull_request' }} + uses: ./.github/workflows/planned_testing.yml + with: + target_list: '["x86_64"]' + os_list: '["ubuntu-22.04"]' + # target_host_aarch64_linux: true + + # # Could have multiple here + # run-with-cron: + # name: Call PR testing on schedule + # if: ${{ github.event_name == 'schedule' }} + # uses: ./.github/workflows/run_pr_tests.yml + # with: + # update_cache: true + +# additional ones here for cron and/or push to main - also can be in different file.