Skip to content

Commit 4f1c080

Browse files
committed
Basic GHA workflow for cross compilation
Signed-off-by: CrazyMax <[email protected]>
1 parent 17020d9 commit 4f1c080

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/build.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: build
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- 'master'
8+
tags:
9+
- 'v*'
10+
pull_request:
11+
12+
env:
13+
DESTDIR: ./bin
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
-
20+
name: Checkout
21+
uses: actions/checkout@v3
22+
-
23+
name: Set up QEMU
24+
uses: docker/setup-qemu-action@v2
25+
-
26+
name: Set up Docker Buildx
27+
uses: docker/setup-buildx-action@v2
28+
-
29+
name: Build
30+
uses: docker/bake-action@v2
31+
with:
32+
targets: binaries
33+
-
34+
name: Move artifacts
35+
run: |
36+
mv ${{ env.DESTDIR }}/**/* ${{ env.DESTDIR }}/
37+
-
38+
name: Upload artifacts
39+
uses: actions/upload-artifact@v3
40+
with:
41+
name: docker-credential-helpers
42+
path: ${{ env.DESTDIR }}/*
43+
if-no-files-found: error

0 commit comments

Comments
 (0)