10
10
run-on-runner :
11
11
description : ' Specify the runner to use'
12
12
required : true
13
- default : ' ARM64 '
13
+ default : ' arm64 '
14
14
perf-test :
15
15
description : ' Run perf test times'
16
16
required : true
@@ -32,19 +32,19 @@ permissions:
32
32
name : Build
33
33
jobs :
34
34
build :
35
- runs-on : ${{ github.event_name == 'push' && 'macos-12 ' || (github.event.inputs.run-on-runner || 'ARM64 ') }}
35
+ runs-on : ${{ github.event_name == 'push' && 'arm64 ' || (github.event.inputs.run-on-runner || 'arm64 ') }}
36
36
steps :
37
37
- name : validate agent
38
38
run : |
39
- if [[ "${{ github.event_name }}" == "workflow_dispatch" && "${{ github.event.inputs.run-on-runner }}" != "ARM64 " ]]; then
39
+ if [[ "${{ github.event_name }}" == "workflow_dispatch" && "${{ github.event.inputs.run-on-runner }}" != "arm64 " ]]; then
40
40
echo "Invalid runner"
41
41
exit 1
42
42
fi
43
43
- name : Install Go
44
44
uses : actions/setup-go@v1
45
45
with :
46
46
go-version : 1.23.2
47
- if : github.event.inputs.run-on- runner != 'ARM64' && github.event_name != 'schedule '
47
+ if : runner.name != 'mac-mini-org-heart '
48
48
- name : Setup GO
49
49
run : |
50
50
go version
61
61
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALL_CLEANUP=1 brew install grpcurl
62
62
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALL_CLEANUP=1 brew tap messense/macos-cross-toolchains && brew install x86_64-unknown-linux-musl
63
63
npm i -g node-gyp
64
- if : github.event.inputs.run-on-runner != 'ARM64' && github.event_name != 'schedule'
64
+ echo "Azaza"
65
+ protoc --version
66
+ which x86_64-w64-mingw32-gcc
67
+ which protoc
68
+ echo "Azaza2"
69
+ if : runner.name != 'mac-mini-org-heart'
65
70
- name : Checkout
66
71
uses : actions/checkout@v3
67
72
- uses : actions/cache@v3
73
78
${{ runner.os }}-go-${{ matrix.go-version }}-
74
79
- name : Install old MacOS SDK (for backward compatibility of CGO)
75
80
run : source .github/install_macos_sdk.sh 10.15
76
- if : github.event.inputs.run-on- runner != 'ARM64' && github.event_name != 'schedule '
81
+ if : runner.name != 'mac-mini-org-heart '
77
82
- name : Set env vars
78
83
env :
79
84
UNSPLASH_KEY : ${{ secrets.UNSPLASH_KEY }}
@@ -133,14 +138,14 @@ jobs:
133
138
TEST_MNEMONIC : ${{ secrets.TEST_MNEMONIC }}
134
139
PROM_KEY : ${{ secrets.PROMETHEUS_USERNAME }}
135
140
PROM_PASSWORD : ${{ secrets.PROMETHEUS_PASSWORD }}
136
- if : github.event.inputs.perf-test != '0' || github.event_name == 'schedule'
141
+ if : github.event.inputs.perf-test != '0'
137
142
- name : Archive perf tests results
138
143
uses : actions/upload-artifact@v4
139
144
with :
140
145
name : pprofs
141
146
path : |
142
147
*.pprof
143
- if : github.event.inputs.perf-test != '0' || github.event_name == 'schedule'
148
+ if : github.event.inputs.perf-test != '0'
144
149
- name : end run perf tests
145
150
run : |
146
151
rm -rf *.pprof
@@ -149,7 +154,7 @@ jobs:
149
154
gh run watch ${{ github.run_id }}
150
155
env :
151
156
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
152
- if : github.event.inputs.perf-test != '0' || github.event_name == 'schedule'
157
+ if : github.event.inputs.perf-test != '0'
153
158
- name : Make JS protos
154
159
run : |
155
160
make protos-js
0 commit comments