Skip to content

Commit b10160a

Browse files
authored
Merge pull request #1779 from anyproto/main-release8-test
Fix ci
2 parents bdcd06a + f6a226b commit b10160a

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

.github/workflows/build.yml

+14-9
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
run-on-runner:
1111
description: 'Specify the runner to use'
1212
required: true
13-
default: 'ARM64'
13+
default: 'arm64'
1414
perf-test:
1515
description: 'Run perf test times'
1616
required: true
@@ -32,19 +32,19 @@ permissions:
3232
name: Build
3333
jobs:
3434
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') }}
3636
steps:
3737
- name: validate agent
3838
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
4040
echo "Invalid runner"
4141
exit 1
4242
fi
4343
- name: Install Go
4444
uses: actions/setup-go@v1
4545
with:
4646
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'
4848
- name: Setup GO
4949
run: |
5050
go version
@@ -61,7 +61,12 @@ jobs:
6161
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALL_CLEANUP=1 brew install grpcurl
6262
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
6363
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'
6570
- name: Checkout
6671
uses: actions/checkout@v3
6772
- uses: actions/cache@v3
@@ -73,7 +78,7 @@ jobs:
7378
${{ runner.os }}-go-${{ matrix.go-version }}-
7479
- name: Install old MacOS SDK (for backward compatibility of CGO)
7580
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'
7782
- name: Set env vars
7883
env:
7984
UNSPLASH_KEY: ${{ secrets.UNSPLASH_KEY }}
@@ -133,14 +138,14 @@ jobs:
133138
TEST_MNEMONIC: ${{ secrets.TEST_MNEMONIC }}
134139
PROM_KEY: ${{ secrets.PROMETHEUS_USERNAME }}
135140
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'
137142
- name: Archive perf tests results
138143
uses: actions/upload-artifact@v4
139144
with:
140145
name: pprofs
141146
path: |
142147
*.pprof
143-
if: github.event.inputs.perf-test != '0' || github.event_name == 'schedule'
148+
if: github.event.inputs.perf-test != '0'
144149
- name: end run perf tests
145150
run: |
146151
rm -rf *.pprof
@@ -149,7 +154,7 @@ jobs:
149154
gh run watch ${{ github.run_id }}
150155
env:
151156
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'
153158
- name: Make JS protos
154159
run: |
155160
make protos-js

0 commit comments

Comments
 (0)