Skip to content

Commit 491730d

Browse files
MeihaoZuyuarchidoge0
MeihaoZuyu
authored andcommitted
chore: Fix CI, make clean before every release build
Signed-off-by: MeihaoZuyu <[email protected]>
1 parent 98cca12 commit 491730d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/release.yml

+4
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,25 @@ jobs:
2121

2222
- name: Build for Linux
2323
run: |
24+
make clean
2425
make GOOS=linux GOARCH=amd64
2526
zip modular-indexer-light-linux-amd64.zip config.example.json modular-indexer-light run.sh
2627
2728
- name: Build for macOS amd64
2829
run: |
30+
make clean
2931
make GOOS=darwin GOARCH=amd64
3032
zip modular-indexer-light-darwin-amd64.zip config.example.json modular-indexer-light run.sh
3133
3234
- name: Build for macOS arm64
3335
run: |
36+
make clean
3437
make GOOS=darwin GOARCH=arm64
3538
zip modular-indexer-light-darwin-arm64.zip config.example.json modular-indexer-light run.sh
3639
3740
- name: Build for Windows
3841
run: |
42+
make clean
3943
make GOOS=windows GOARCH=amd64
4044
zip modular-indexer-light-windows-amd64.zip config.example.json modular-indexer-light.exe run.bat
4145

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ packages/${SDK}/${EXEC}.wasm: packages/${SDK}/wasm_exec.js
2424

2525
.PHONY: clean
2626
clean:
27-
rm -rf ./${EXEC} packages/${SDK}/*.wasm
27+
rm -rf *.exe ./${EXEC} packages/${SDK}/*.wasm

0 commit comments

Comments
 (0)