Skip to content

Commit f88f1de

Browse files
authored
fix: delete action-uncompilable darwin-arm64 (#433)
* fix: delete action-uncompilable darwin-arm64
1 parent 269dff9 commit f88f1de

3 files changed

Lines changed: 7 additions & 24 deletions

File tree

.github/workflows/release.yaml

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -113,30 +113,9 @@ jobs:
113113
with:
114114
name: yomo-artifact
115115
path: ./cli/bin/**/*.tar.gz
116-
build-darwin-arm64:
117-
name: Build MacOS arm64 binary
118-
runs-on: ubuntu-latest
119-
env:
120-
GOVER: 1.19
121-
steps:
122-
- name: Set up Go ${{ env.GOVER }}
123-
uses: actions/setup-go@v3
124-
with:
125-
go-version: ${{ env.GOVER }}
126-
- name: Check out code
127-
uses: actions/checkout@v3
128-
- name: Run go mod tidy
129-
run: go mod tidy
130-
- name: build & archive binaries
131-
run: cd ./cli && make archive-release-darwin-arm64
132-
- name: upload artifacts
133-
uses: actions/upload-artifact@master
134-
with:
135-
name: yomo-artifact
136-
path: ./cli/bin/**/*.tar.gz
137116
publish:
138117
name: Publish binaries
139-
needs: [bina-for-curl-download, build-linux-amd64, build-linux-arm64, build-darwin-amd64, build-windows-amd64, build-darwin-arm64]
118+
needs: [bina-for-curl-download, build-linux-amd64, build-linux-arm64, build-darwin-amd64, build-windows-amd64]
140119
env:
141120
ARTIFACT_DIR: ./release
142121
runs-on: ubuntu-latest

cli/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ archive-release-linux-amd64:
4242
rm -rf bin/yomo
4343
GOARCH=amd64 GOOS=linux $(GO) build -o bin/yomo -ldflags "-s -w ${GO_LDFLAGS}" ../cmd/yomo/main.go
4444
tar -C ./bin -czf bin/yomo-${VER}-x86_64-Linux.tar.gz yomo
45-
make bina
4645

4746
archive-release-linux-arm64:
4847
rm -rf bin/yomo
@@ -67,7 +66,9 @@ build-w-sym:
6766
GOARCH=amd64 GOOS=linux $(GO) build -o bin/yomo -ldflags "${GO_LDFLAGS}" -gcflags=-l ../cmd/yomo/main.go
6867

6968
bina:
70-
@echo ${bina_json} > ./bin/bina.json
69+
mkdir -p bin
70+
rm -rf bin/bina.json
71+
@echo ${bina_json} > bin/bina.json
7172

7273
cli_version:
7374
@echo ${VER} > ./VERSION

cli/serverless/golang/template.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,17 @@ import (
77
)
88

99
// MainFuncRxTmpl the rxstream serverless of the main function template
10+
//
1011
//go:embed templates/main_rx.tmpl
1112
var MainFuncRxTmpl []byte
1213

1314
// MainFuncRawBytesTmpl the raw bytes serverless of the main function template
15+
//
1416
//go:embed templates/main_raw_bytes.tmpl
1517
var MainFuncRawBytesTmpl []byte
1618

1719
// PartialsTmpl partials template, used for rendering the partials
20+
//
1821
//go:embed templates/partials.tmpl
1922
var PartialsTmpl []byte
2023

0 commit comments

Comments
 (0)