Skip to content

Commit

Permalink
chore: add arm64 linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
zostay committed Sep 5, 2024
1 parent 78e55de commit c6b0422
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/prepare.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,16 @@ jobs:
echo "Release Notes Will be..."
echo "========================"
cat release-notes.md
- name: Linux 64-bit Build
- name: Linux AMD 64-bit Build
env:
GOOS: linux
GOARCH: amd64
run: go build -o genifest-$RELEASE_VERSION-$GOOS-$GOARCH ./
- name: Linux Arm 64-bit Build
env:
GOOS: linux
GOARCH: arm64
run: go build -o genifest-$RELEASE_VERSION-$GOOS-$GOARCH ./
- name: Apple Silicon Build
env:
GOOS: darwin
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,16 @@ jobs:
cat release-notes.md
- name: Create Release
run: gh release create -t "v$RELEASE_VERSION" "v$RELEASE_VERSION" --draft --notes-file=release-notes.md
- name: Linux 64-bit Build
- name: Linux AMD 64-bit Build
env:
GOOS: linux
GOARCH: amd64
run: go build -o genifest-$RELEASE_VERSION-$GOOS-$GOARCH ./
- name: Linux Arm 64-bit Build
env:
GOOS: linux
GOARCH: arm64
run: go build -o genifest-$RELEASE_VERSION-$GOOS-$GOARCH ./
- name: Apple Silicon Build
env:
GOOS: darwin
Expand All @@ -63,8 +68,10 @@ jobs:
run: go build -o genifest-$RELEASE_VERSION-$GOOS-$GOARCH ./
- name: Create Release
run: gh release create -t "v$RELEASE_VERSION" "v$RELEASE_VERSION" --draft --notes-file=release-notes.md
- name: Upload Linux 64-bit Binary
- name: Upload Linux AMD 64-bit Binary
run: gh release upload "v$RELEASE_VERSION" genifest-$RELEASE_VERSION-linux-amd64
- name: Upload Linux Arm 64-bit Binary
run: gh release upload "v$RELEASE_VERSION" genifest-$RELEASE_VERSION-linux-arm64
- name: Upload Apple Silicon Binary
run: gh release upload "v$RELEASE_VERSION" genifest-$RELEASE_VERSION-darwin-arm64
- name: Upload Apple Intel Binary
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,16 @@ jobs:
run: go mod download
- name: Run tests
run: go test ./...
- name: Prepare/Release Workflows Check
run: |
go install github.com/mikefarah/yq/v4@latest
yq '.jobs.release.steps.[0:11]' .github/workflows/release.yaml > release-steps.yaml
yq '.jobs.prepare.steps' .github/workflows/prepare.yaml > prepare-steps.yaml
if ! diff release-steps.yaml prepare-steps.yaml; then
echo "Prepare and Release workflows are not in sync!"
exit 1
fi
if ! yq '.jobs.release.steps.[11]' .github/workflows/release.yaml | grep -q 'Create Release'; then
echo 'Release has pre-build steps missing from Prepare workflow!'
exit 1
fi
4 changes: 4 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## WIP TBD

* Adding Arm64 builds for Linux.

## v0.1.2 2024-08-09

* Upgraded to Ghost v0.6.2
Expand Down

0 comments on commit c6b0422

Please sign in to comment.