-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (69 loc) · 2.7 KB
/
build_images.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Build Docker images
on:
workflow_dispatch:
schedule:
# Every night at 03:00 UTC
- cron: "0 3 * * *"
push:
branches:
- master
jobs:
check-prerequisites:
runs-on: slurm-${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform: ["intel", "nvidia"]
steps:
- uses: actions/checkout@v2
with:
lfs: false
- name: Check whether system is setup correctly for building and running Celerity CI containers
run: bash ./check-prerequisites.sh
build-sycl:
needs: [check-prerequisites]
runs-on: slurm-${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
include:
- sycl: "dpcpp"
sycl-version: "HEAD"
ubuntu-version: "22.04"
platform: "intel"
- sycl: "dpcpp"
sycl-version: "61e51015"
ubuntu-version: "20.04"
platform: "intel"
- sycl: "hipsycl"
sycl-version: "HEAD"
ubuntu-version: "23.04"
platform: "nvidia"
- sycl: "hipsycl"
sycl-version: "d2bd9fc7"
ubuntu-version: "22.04"
platform: "nvidia"
- sycl: "hipsycl"
sycl-version: "d2bd9fc7"
ubuntu-version: "20.04"
platform: "nvidia"
steps:
- uses: actions/checkout@v2
- name: Build Docker container for ${{ matrix.sycl }} ${{ matrix.sycl-version }} on ${{ matrix.ubuntu-version }}
run: bash ./build.sh ${{ matrix.ubuntu-version }} ${{ matrix.sycl }} ${{ matrix.sycl-version }}
if: ${{ github.event_name == 'schedule' }}
- name: Force-build Docker container for ${{ matrix.sycl }} ${{ matrix.sycl-version }} on ${{ matrix.ubuntu-version }}
run: bash ./build.sh -f ${{ matrix.ubuntu-version }} ${{ matrix.sycl }} ${{ matrix.sycl-version }}
if: ${{ github.event_name != 'schedule' }}
build-lint:
needs: [check-prerequisites]
runs-on: slurm-${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
# HACK: We need to ensure the lint container image exists on all runners
platform: ["intel", "nvidia"]
steps:
- uses: actions/checkout@v2
- name: Build Celerity linting container
run: bash ./build-lint.sh