Skip to content

Commit 07ecd95

Browse files
Update workflows for new containers. (#650)
1 parent 43c0b3e commit 07ecd95

File tree

11 files changed

+22
-107
lines changed

11 files changed

+22
-107
lines changed

.github/actions/do_build_dpcpp/action.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ runs:
2121
- name: Install Ninja
2222
uses: llvm/actions/install-ninja@main
2323

24-
- name: Install spirv tools
25-
shell: bash
26-
run:
27-
sudo apt-get install spirv-tools
28-
2924
- name: clone dpc++
3025
if: inputs.create_dpcpp_artefact_method == 'build'
3126
uses: actions/checkout@v4

.github/actions/do_build_icd/action.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ runs:
1717
- name: Install Ninja
1818
uses: llvm/actions/install-ninja@a1ea791b03c8e61f53a0e66f2f73db283aa0f01e # main branch
1919

20-
- name: install cross tools
21-
if: steps.calc_vars.outputs.arch != 'x86_64'
22-
uses: ./.github/actions/do_install_ubuntu_cross_tools
23-
with:
24-
cross_arch: ${{ steps.calc_vars.outputs.arch }}
25-
2620
- name: clone headers
2721
uses: actions/checkout@v4
2822
with:

.github/actions/do_build_ock_artefact/action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ runs:
3636
llvm_version: ${{ inputs.llvm_version }}
3737
llvm_build_type: RelAssert
3838
cross_arch: ${{ steps.calc_vars.outputs.arch == 'x86_64' && 'none' || steps.calc_vars.outputs.arch }}
39-
vulkan_sdk_install: ${{ inputs.vulkan_sdk_install }}
4039
os: ${{ contains(inputs.target, 'windows') && 'windows' || 'ubuntu' }}
4140

4241
- name: build ock x86

.github/actions/do_build_opencl_cts/action.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,30 +35,12 @@ runs:
3535
repository: KhronosGroup/OpenCL-CTS
3636
path: OpenCL-CTS
3737

38-
- name: aarch64 set-up # TODO: update if/when qemu no longer used
39-
if: steps.calc_vars.outputs.arch == 'aarch64'
40-
shell: bash
41-
run: |
42-
set -x
43-
sudo sed -i -e '/^deb /{h;s|deb |&[arch=amd64,i386] |p;g;s|deb http://[^ ]*|deb [arch=arm64,riscv64] http://ports.ubuntu.com/ubuntu-ports|p;d}' /etc/apt/sources.list
44-
sudo dpkg --add-architecture arm64
45-
sudo apt-get install --yes gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
46-
sudo apt-get update
47-
if [[ "${{inputs.target}}" =~ .*aarch64.* ]] ; then
48-
# TODO: Only needed for run - could be moved to corresponding run action
49-
echo QEMU INSTALL MATCH FOR ${{inputs.target}}
50-
sudo apt-get install --yes qemu-user
51-
fi
52-
5338
- name: build opencl cts
5439
shell: bash
5540
env:
5641
CMAKE_TOOLCHAIN: "${{ steps.calc_vars.outputs.cmake_toolchain }}"
5742
run: |
5843
echo CMAKE_TOOLCHAIN is: $CMAKE_TOOLCHAIN
59-
# get spirv-as
60-
sudo apt-get update
61-
sudo apt-get install -y spirv-tools
6244
# apply patches
6345
pushd OpenCL-CTS
6446
git log -1

.github/actions/do_install_ubuntu_cross_tools/action.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/actions/setup_build/action.yml

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -23,60 +23,18 @@ inputs:
2323
cross_arch:
2424
description: 'Cross compilation architecture from: x86, arm, aarch64, riscv64. Default: "none" (no cross compile), will auto fetch native arch'
2525
default: "none"
26-
clang_tidy:
27-
description: 'Enable installing of clang-tidy (currently 19)'
28-
type: boolean
29-
default: false
30-
vulkan_sdk_install:
31-
description: 'vulkan install flag'
32-
default: true
3326

3427
runs:
3528
# We don't want a new docker just a list of steps, so mark as composite
3629
using: "composite"
3730
steps:
3831
- name: Install ubuntu prerequisites
32+
# Note: most prereqs now installed in dockerfiles
3933
if: ${{ inputs.os == 'ubuntu' }}
4034
shell: bash
4135
run: |
4236
# required for virtualenv running in docker
4337
echo "PATH=$PATH:$HOME/.local/bin" >> $GITHUB_ENV
44-
# required due to using non docker to build llvm
45-
# If we switch to always using docker we can drop.
46-
sudo apt-get install --yes lib32ncurses-dev
47-
if [ "${{ inputs.cross_arch }}" = "x86" ]; then sudo dpkg --add-architecture i386 ; fi
48-
wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
49-
if [ "${{ inputs.ubuntu_version }}" = "20.04" ]; then sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-1.3.243-focal.list https://packages.lunarg.com/vulkan/1.3.243/lunarg-vulkan-1.3.243-focal.list; fi
50-
if [ "${{ inputs.ubuntu_version }}" = "22.04" ]; then sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-1.3.243-jammy.list https://packages.lunarg.com/vulkan/1.3.243/lunarg-vulkan-1.3.243-jammy.list; fi
51-
if [ "${{ inputs.ubuntu_version }}" = "24.04" ]; then sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-noble.list https://packages.lunarg.com/vulkan/lunarg-vulkan-noble.list; fi
52-
53-
if [ "${{ inputs.clang_tidy }}" = "true" ]; then
54-
wget -qO - https://apt.llvm.org/llvm-snapshot.gpg.key | gpg --dearmor - | sudo tee /usr/share/keyrings/llvm-archive-keyring.gpg >/dev/null
55-
if [ "${{ inputs.ubuntu_version }}" = "20.04" ]; then echo 'deb [signed-by=/usr/share/keyrings/llvm-archive-keyring.gpg] http://apt.llvm.org/focal/ llvm-toolchain-focal-19 main' | sudo tee /etc/apt/sources.list.d/llvm.list >/dev/null; fi
56-
if [ "${{ inputs.ubuntu_version }}" = "22.04" ]; then echo 'deb [signed-by=/usr/share/keyrings/llvm-archive-keyring.gpg] http://apt.llvm.org/jammy/ llvm-toolchain-jammy-19 main' | sudo tee /etc/apt/sources.list.d/llvm.list >/dev/null; fi
57-
if [ "${{ inputs.ubuntu_version }}" = "24.04" ]; then echo 'deb [signed-by=/usr/share/keyrings/llvm-archive-keyring.gpg] http://apt.llvm.org/noble/ llvm-toolchain-noble-19 main' | sudo tee /etc/apt/sources.list.d/llvm.list >/dev/null; fi
58-
fi
59-
60-
sudo apt-get update
61-
if [ "${{ inputs.clang_tidy }}" = "true" ]; then sudo apt-get install --yes clang-tidy-19; fi
62-
pip install lit clang-format==19.1.0 virtualenv
63-
# required for gtest-terse-runner running in docker
64-
sudo apt-get install --yes python3-colorama
65-
sudo apt-get install --yes doxygen
66-
if [ "${{ inputs.vulkan_sdk_install }}" = "true" ]; then \
67-
sudo apt-get install --yes vulkan-sdk
68-
fi
69-
# TODO: Only required if we are running something that requires qemu, not required for building
70-
if [ "${{ inputs.cross_arch }}" != "none" ] && [ "${{ inputs.cross_arch }}" != "x86" ]; then \
71-
# Install QEMU for testing cross compilation.
72-
sudo apt-get install --yes qemu-user; \
73-
fi
74-
75-
- name: Install cross arch tools
76-
if: ${{ inputs.os == 'ubuntu' }}
77-
uses: ./.github/actions/do_install_ubuntu_cross_tools
78-
with:
79-
cross_arch: ${{ inputs.cross_arch }}
8038
8139
- name: Install windows prerequisites
8240
if: ${{ inputs.os == 'windows' }}

.github/workflows/codeql.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
1515
# required to fetch internal or private CodeQL packs
1616
packages: read
1717
runs-on: ubuntu-22.04
18+
container:
19+
image: 'ghcr.io/uxlfoundation/ock_ubuntu_22.04:latest'
20+
volumes:
21+
- ${{github.workspace}}:${{github.workspace}}
1822

1923
steps:
2024
- name: Checkout repo
@@ -62,6 +66,10 @@ jobs:
6266
# required to fetch internal or private CodeQL packs
6367
packages: read
6468
runs-on: ubuntu-22.04
69+
container:
70+
image: 'ghcr.io/uxlfoundation/ock_ubuntu_22.04:latest'
71+
volumes:
72+
- ${{github.workspace}}:${{github.workspace}}
6573

6674
steps:
6775
- name: Checkout repo

.github/workflows/create_publish_artifacts.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ jobs:
1616
# build and run for RISCV
1717
run_riscv_m1_nightly_package:
1818
runs-on: ubuntu-22.04
19+
container:
20+
image: 'ghcr.io/uxlfoundation/ock_ubuntu_22.04:latest'
21+
volumes:
22+
- ${{github.workspace}}:${{github.workspace}}
1923

2024
env:
2125
GH_TOKEN: ${{ secrets.GH_TOKEN }}

.github/workflows/planned_testing.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,11 @@ jobs:
108108
target: ${{ fromJson(inputs.target_list) }}
109109
exclude: ${{ fromJson(needs.workflow_vars.outputs.matrix_only_linux_x86_64_aarch64) }}
110110

111-
runs-on: ubuntu-22.04
111+
runs-on: cp-ubuntu-24.04
112+
container:
113+
image: ${{ contains(matrix.target, 'host_riscv') && 'ghcr.io/uxlfoundation/ock_ubuntu_24.04:latest' || 'ghcr.io/uxlfoundation/ock_ubuntu_22.04:latest' }}
114+
volumes:
115+
- ${{github.workspace}}:${{github.workspace}}
112116
steps:
113117
- name: clone ock platform
114118
uses: actions/checkout@v4

.github/workflows/run_ock_demo.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
1818
# build and run for RISCV
1919
run_riscv_m1_ock_demo:
2020
runs-on: ubuntu-22.04
21+
container:
22+
image: 'ghcr.io/uxlfoundation/ock_ubuntu_22.04:latest'
23+
volumes:
24+
- ${{github.workspace}}:${{github.workspace}}
2125

2226
steps:
2327
- name: Checkout repo

.github/workflows/run_pr_tests.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ jobs:
125125
with:
126126
llvm_version: 19
127127
llvm_build_type: RelAssert
128-
clang_tidy: true
129128

130129
- name: build initial config files
131130
uses: ./.github/actions/do_build_ock
@@ -141,8 +140,6 @@ jobs:
141140

142141
- name: run clang-tidy
143142
run: |
144-
# TODO: Move to docker
145-
sudo apt-get -y install parallel
146143
git config --global --add safe.directory $PWD
147144
git fetch origin ${{ github.base_ref }}
148145
./scripts/compute-dependants.py \
@@ -408,9 +405,6 @@ jobs:
408405
uses: actions/[email protected]
409406
- name: Install Ninja
410407
uses: llvm/actions/install-ninja@main
411-
- name: install risc-v toolchain
412-
run:
413-
sudo apt-get install --yes gcc-riscv64-linux-gnu g++-riscv64-linux-gnu
414408
- run: echo WORKSPACE is $GITHUB_WORKSPACE && echo PWD is `pwd` && ls -al
415409
- name: Run Clik
416410
run: |

0 commit comments

Comments
 (0)