-
Notifications
You must be signed in to change notification settings - Fork 18
43 lines (43 loc) · 1.04 KB
/
docker.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
name: docker
on:
pull_request:
branches: [master]
paths-ignore:
- '**.md'
- 'VirtualBox/**'
- '.github/workflows/c-cpp.yml'
- 'CITATION.cff'
- '.mailmap'
push:
branches: [master]
paths-ignore:
- '**.md'
- 'VirtualBox/**'
- '.github/workflows/c-cpp.yml'
- 'CITATION.cff'
- '.mailmap'
defaults:
run:
shell: bash -l {0}
jobs:
build-test-push:
runs-on: ubuntu-latest
strategy:
matrix:
type: [gpu, cpu]
steps:
- uses: actions/checkout@v3
- name: cache
uses: actions/cache@v3
with:
key: ccache-${{ matrix.type }}
path: docker/devel/.ccache
- id: build
name: build
run: |
./docker/compose.sh ${{ matrix.type == 'gpu' && '-C' || '-G' }}
echo "image=synerbi/sirf:jupyter${{ matrix.type == 'gpu' && '-gpu' || '' }}" >> $GITHUB_OUTPUT
- name: test CIL
run: >
docker run --rm -v ./.github/workflows:/gh --user $(id -u) --group-add users
${{ steps.build.outputs.image }} /gh/test_cil.sh