Skip to content

Commit dfa002a

Browse files
committed
chore(CI): release binary
Signed-off-by: Bo-Yi.Wu <[email protected]>
1 parent 60da645 commit dfa002a

File tree

2 files changed

+29
-5
lines changed

2 files changed

+29
-5
lines changed

.github/workflows/binary.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release Binary
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- 'v*'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
container: techknowlogick/xgo:go-1.19.x
14+
steps:
15+
16+
- name: Checkout repository
17+
uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
20+
21+
# - name: Release binary
22+
# run: |
23+
# ls -al
24+
# make release

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ GO ?= go
77
SHASUM ?= shasum -a 256
88
HAS_GO = $(shell hash $(GO) > /dev/null 2>&1 && echo "GO" || echo "NOGO" )
99
XGO_PACKAGE ?= src.techknowlogick.com/xgo@latest
10-
XGO_VERSION := go-1.18.x
11-
GXZ_PAGAGE ?= github.com/ulikunitz/xz/cmd/[email protected].10
10+
XGO_VERSION := go-1.19.x
11+
GXZ_PAGAGE ?= github.com/ulikunitz/xz/cmd/[email protected].11
1212

1313
LINUX_ARCHS ?= linux/amd64,linux/arm64
14-
DARWIN_ARCHS ?= darwin-12/amd64,darwin-12/arm64
15-
WINDOWS_ARCHS ?= windows/amd64
14+
DARWIN_ARCHS ?= darwin-10.12/amd64,darwin-10.12/arm64
15+
WINDOWS_ARCHS ?= windows/*
1616

1717
ifneq ($(shell uname), Darwin)
1818
EXTLDFLAGS = -extldflags "-static" $(null)
@@ -119,7 +119,7 @@ deps-backend:
119119
$(GO) install $(XGO_PACKAGE)
120120

121121
.PHONY: release
122-
release: release-linux release-copy release-compress release-check
122+
release: release-linux release-darwin release-windows release-copy release-compress release-check
123123

124124
$(DIST_DIRS):
125125
mkdir -p $(DIST_DIRS)

0 commit comments

Comments
 (0)