Skip to content

Commit 103f5d8

Browse files
authored
fix: add ARM64 support (#34)
* fix: add ARM64 support * fix: add tee outptu
1 parent e05e0e4 commit 103f5d8

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
git config --global --add safe.directory "$GITHUB_WORKSPACE"
6464
git config user.email ${{ github.actor }}[email protected]
6565
git config user.name ${{ github.actor }}
66+
6667
- name: Run Lint
6768
run: |
6869
task lint

.github/workflows/release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,15 @@ jobs:
6767
- name: release library
6868
run: |
6969
task tag GIT_TAG=${SEMVER} REVISION=$GITHUB_SHA
70-
- name: release binary
70+
- name: build binary
7171
run: |
7272
task bin REVISION=$GITHUB_SHA GIT_TAG=${SEMVER}
73-
task release REVISION=$GITHUB_SHA GIT_TAG=${SEMVER} PAT=${{ secrets.GITHUB_TOKEN }}
73+
- name: Release binary
74+
uses: softprops/action-gh-release@v2
75+
with:
76+
tag_name: ${{ needs.set-version.outputs.semVer }}
77+
# TODO: add additional info to the release
78+
generate_release_notes: true
79+
token: ${{ secrets.GITHUB_TOKEN }}
80+
files: ./dist/*
81+
prerelease: false

taskfile.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ tasks:
3535
cmds:
3636
- |
3737
set -exo pipefail
38-
go test ./... -v -buildvcs=false -mod=readonly -race -coverprofile=.coverage/out > .coverage/unit ; cat .coverage/unit
38+
go test ./... -v -buildvcs=false -mod=readonly -race -coverprofile=.coverage/out | tee .coverage/unit
3939
4040
install:
4141
desc: Install dependencies
@@ -87,6 +87,9 @@ tasks:
8787
- for: { var: GO_ARCHS, as: GO_TARGET_ARCH }
8888
cmd: |
8989
GOOS={{.GO_TARGET_ARCH}} CGO_ENABLED=0 go build -mod=readonly -buildvcs=false {{.LDFLAGS}} -o ./dist/configmanager-{{.GO_TARGET_ARCH}} ./cmd
90+
- for: { var: GO_ARCHS, as: GO_TARGET_ARCH }
91+
cmd: |
92+
GOOS={{.GO_TARGET_ARCH}} GOARCH=arm64 CGO_ENABLED=0 go build -mod=readonly -buildvcs=false {{.LDFLAGS}} -o ./dist/configmanager-{{.GO_TARGET_ARCH}}-arm64 ./cmd
9093
vars:
9194
# LDFLAGS: -ldflags="-s -w -X \"github.com/dnitsch/async-api-generator/cmd/async-api-gen-doc.Version=${VERSION}\" -X \"github.com/dnitsch/async-api-generator/cmd/async-api-gen-doc.Revision={{.REVISION}}\" -extldflags -static"
9295
LDFLAGS: -ldflags="-s -w -X \"github.com/DevLabFoundry/configmanager/cmd/configmanager.Version=${VERSION}\" -X \"github.com/DevLabFoundry/configmanager/cmd/configmanager.Revision={{.REVISION}}\" -extldflags -static"

0 commit comments

Comments
 (0)