-
Notifications
You must be signed in to change notification settings - Fork 27
49 lines (43 loc) · 1.37 KB
/
build.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
name: Build
on:
push:
branches: [ master ]
paths-ignore: '**.md'
pull_request:
branches: [ master ]
paths-ignore: '**.md'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
DISTRO: [
{ "ubuntu": "jammy", "suffix": ".gcc" },
{ "ubuntu": "jammy", "suffix": ".llvm" },
{ "ubuntu": "jammy_cuda11.8", "suffix": ".gcc.cuda" },
{ "ubuntu": "jammy_cuda11.8", "suffix": ".llvm.cuda" },
{ "ubuntu": "jammy_cuda12.2", "suffix": ".gcc.cuda" },
{ "ubuntu": "jammy_cuda12.2", "suffix": ".llvm.cuda" },
{ "ubuntu": "noble", "suffix": ".gcc" },
{ "ubuntu": "noble", "suffix": ".llvm" }
]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Docker login
continue-on-error: true
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Docker build
uses: docker/build-push-action@v2
with:
file: ${{github.workspace}}/docker/ubuntu/Dockerfile${{ matrix.DISTRO.suffix }}
build-args: |
BASE_IMAGE=koide3/gtsam_docker:${{ matrix.DISTRO.ubuntu }}
context: .
push: false