-
-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (43 loc) · 1.35 KB
/
container.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
name: Builder Image
on:
push:
paths:
- compiler/images/container.Dockerfile
- .github/workflows/container.yml
pull_request:
paths:
- compiler/images/container.Dockerfile
- .github/workflows/container.yml
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: [
i686-pc-linux-gnu, i686-linux-gnu, i686-w64-mingw32,
x86_64-apple-darwin11, x86_64-w64-mingw32, x86_64-linux-gnu, x86_64-unknown-freebsd,
arm-linux-gnueabihf, aarch64-linux-gnu, riscv64-linux-gnu, arm-linux-android, aarch64-linux-android
]
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
with:
install: true
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/build-push-action@v5
with:
push: true
context: compiler/src
cache-from: type=gha
cache-to: type=gha,mode=max
target: ${{ matrix.target }}
tags: lthn/build:libs-${{ matrix.target }}
file: compiler/images/container.Dockerfile