💚 change build platform

pull/661/head
Xhofe 2022-02-24 22:55:50 +08:00
parent 8ed0afe80d
commit 106c1d069c
3 changed files with 5 additions and 7 deletions

View File

@ -10,7 +10,7 @@ jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest]
platform: [macos-latest]
go-version: [1.17]
name: Build
runs-on: ${{ matrix.platform }}
@ -32,7 +32,7 @@ jobs:
- name: Install upx
run: |
sudo apt install upx
brew install upx
- name: Build
run: |

View File

@ -9,7 +9,7 @@ jobs:
release:
strategy:
matrix:
platform: [ubuntu-latest]
platform: [macos-latest]
go-version: [1.17]
name: Release
runs-on: ${{ matrix.platform }}
@ -29,7 +29,7 @@ jobs:
- name: Install upx
run: |
sudo apt install upx
brew install upx
- name: Build
run: |

View File

@ -77,9 +77,7 @@ BUILD() {
fi
done
cd build
for i in $(find . -type f -name "$appName-*"); do
upx -9 -o $i-upx $i
done
upx -9 ./*
find . -type f -print0 | xargs -0 md5sum >md5.txt
cat md5.txt
cd ..