-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.4 KB
/
run-build-and-test.yaml
File metadata and controls
42 lines (39 loc) · 1.4 KB
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
name: GPU build and CPU build+tests
on:
push: { branches: [ 'main', '3d' ] }
jobs:
gpu-build:
strategy:
matrix:
sycl: ['acpp', 'intel-llvm']
hw: ['a100', 'mi250']
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@v1.2.0
with: { tool-cache: true, large-packages: false }
- name: Checkout built branch
uses: actions/checkout@v3
- name: Compile for GPUs
run: |
echo ${{ secrets.GH_ACCESS_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
cd docker
docker build . -t ci-container
docker run ci-container ./compile.sh --hw ${{matrix.hw}} --sycl ${{matrix.sycl}}
cpu-build-and-test:
strategy:
matrix:
sycl: ['acpp', 'intel-llvm']
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@v1.2.0
with: { tool-cache: true, large-packages: false }
- name: Checkout built branch
uses: actions/checkout@v3
- name: Compile for CPU and run tests
run: |
echo ${{ secrets.GH_ACCESS_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
cd docker
docker build . -t ci-container
docker run ci-container ./compile.sh --hw x86_64 --sycl ${{matrix.sycl}} --build-tests --run-tests