Build Arm64 Release #57
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
release: | |
types: | |
- published | |
name: Build Arm64 Release | |
jobs: | |
build: | |
name: Build & Release | |
runs-on: [self-hosted, linux, ARM64] | |
strategy: | |
matrix: | |
include: | |
- goarch: arm64 | |
goos: linux | |
env: | |
RELEASE_TAG: ${{secrets.RELEASE_TAG}} | |
GOOS: ${{ matrix.goos }} | |
GOARCH: ${{ matrix.goarch }} | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.22.5' | |
cache-dependency-path: subdir/go.sum | |
- name: generate resources | |
run: mkdir -p {build/data,build/static} | |
- name: package bin | |
run: SKIP_VALIDATE=true make | |
- name: package airgap image | |
run: make package-airgap | |
- name: sha256sum artifacts | |
run: cd dist/artifacts/ && sha256sum k8e-${{ matrix.goarch }} k8e-airgap-images-${{ matrix.goarch }}.tar.gz >> k8e-hashes-${{ matrix.goarch }}.txt | |
- name: Uploading assets... | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
dist/artifacts/k8e-${{ matrix.goarch }} | |
dist/artifacts/k8e-airgap-images-${{ matrix.goarch }}.tar.gz | |
dist/artifacts/k8e-images-${{ matrix.goarch }}.txt | |
dist/artifacts/k8e-hashes-${{ matrix.goarch }}.txt |