Skip to content

Commit

Permalink
Basic GHA workflow for cross compilation
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max committed May 8, 2022
1 parent 9bf73fa commit 3af54f3
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: build

on:
workflow_dispatch:
push:
branches:
- 'master'
tags:
- 'v*'
pull_request:

env:
BIN_OUT: ./bin

jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Build
uses: docker/bake-action@v2
with:
targets: binaries
-
name: Move artifacts
run: |
mv ${{ env.BIN_OUT }}/**/* ${{ env.BIN_OUT }}/
-
name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: docker-credential-helpers
path: ${{ env.BIN_OUT }}/*
if-no-files-found: error

0 comments on commit 3af54f3

Please sign in to comment.