Skip to content

Commit

Permalink
ci: build windows/arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
mkloubert committed Dec 31, 2024
1 parent 24baed4 commit 2f1cfa2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 29 deletions.
54 changes: 26 additions & 28 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Build binaries for release

on:
on:
release:
types: [created]

permissions:
contents: write
packages: write
contents: write
packages: write

jobs:
releases-matrix:
Expand All @@ -21,29 +21,27 @@ jobs:
goos: darwin
- goarch: arm
goos: darwin
- goarch: arm64
goos: windows
steps:
- uses: actions/checkout@v4
- name: "Update build.go"
run: |
echo "package main" > ./build.go &&
echo "" >> ./build.go &&
echo "import \"runtime\"" >> ./build.go &&
echo "" >> ./build.go &&
echo "const AppVersion = \"$(echo ${GITHUB_REF#refs/tags/} | cut -c 2-)\"" >> ./build.go &&
echo "const BuildArch = runtime.GOARCH" >> ./build.go &&
echo "const BuildOS = runtime.GOOS" >> ./build.go
- uses: wangyoucao577/go-release-action@v1
with:
retry: 10
overwrite: true
github_token: ${{ secrets.GH_PAT }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "1.22"
md5sum: false
sha256sum: true
project_path: "./"
binary_name: "gpm"
extra_files: LICENSE README.md CHANGELOG.md
- uses: actions/checkout@v4
- name: "Update build.go"
run: |
echo "package main" > ./build.go &&
echo "" >> ./build.go &&
echo "import \"runtime\"" >> ./build.go &&
echo "" >> ./build.go &&
echo "const AppVersion = \"$(echo ${GITHUB_REF#refs/tags/} | cut -c 2-)\"" >> ./build.go &&
echo "const BuildArch = runtime.GOARCH" >> ./build.go &&
echo "const BuildOS = runtime.GOOS" >> ./build.go
- uses: wangyoucao577/go-release-action@v1
with:
retry: 10
overwrite: true
github_token: ${{ secrets.GH_PAT }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "1.22"
md5sum: false
sha256sum: true
project_path: "./"
binary_name: "gpm"
extra_files: LICENSE README.md CHANGELOG.md
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Change Log (go-package-manager)

## 0.25.0
## 0.25.1

- feat: `publish` command
- feat: add build for `windows/arm64`
- fix: `push` command

## 0.24.0
Expand Down

0 comments on commit 2f1cfa2

Please sign in to comment.