-
Notifications
You must be signed in to change notification settings - Fork 38
80 lines (80 loc) · 2.24 KB
/
build.yml
File metadata and controls
80 lines (80 loc) · 2.24 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
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
74
75
76
77
78
79
80
name: Build
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build-x86_64:
runs-on: ubuntu-latest
strategy:
matrix:
image:
- ccc
- compcert
- clad
- heaptrack
- hylo
- iwyu
- lc3
- misc
- nasm
- ncc-ng
- perl
- python
- pythran
- rocm
- rust-cg-gcc
- rust-linux
- vast
- mads
- micropython
- nix
- bloaty
- lfortran
- c2rust
- miri
- jakt
steps:
- name: Docker Setup Buildx
uses: docker/setup-buildx-action@v3
- name: Docker Login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push to Docker Hub
id: hub_build
uses: docker/build-push-action@v6
with:
push: ${{ github.ref == 'refs/heads/main' && 'true' || 'false' }}
tags: compilerexplorer/${{ matrix.image }}-builder:latest
cache-from: type=registry,ref=compilerexplorer/${{ matrix.image }}-builder:latest
cache-to: type=inline,mode=max
file: Dockerfile.${{ matrix.image }}
- name: Docker Hub Image Digest
run: echo ${{ steps.hub_build.outputs.digest }}
build-arm64:
runs-on: ubuntu-24.04-arm
strategy:
matrix:
image:
- heaptrack
steps:
- name: Docker Setup Buildx
uses: docker/setup-buildx-action@v3
- name: Docker Login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push to Docker Hub
id: hub_build
uses: docker/build-push-action@v6
with:
push: ${{ github.ref == 'refs/heads/main' && 'true' || 'false' }}
tags: compilerexplorer/${{ matrix.image }}-builder:latest-arm64
cache-from: type=registry,ref=compilerexplorer/${{ matrix.image }}-builder:latest-arm64
cache-to: type=inline,mode=max
file: Dockerfile.${{ matrix.image }}
- name: Docker Hub Image Digest
run: echo ${{ steps.hub_build.outputs.digest }}