💚 change back to ubuntu

pull/548/head
微凉 2021-11-04 22:38:08 +08:00
parent 8255ef4346
commit 91f64161b2
3 changed files with 9 additions and 9 deletions

View File

@ -10,7 +10,7 @@ jobs:
build: build:
strategy: strategy:
matrix: matrix:
platform: [macos-latest] platform: [ubuntu-latest]
go-version: [1.17] go-version: [1.17]
name: Build name: Build
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
@ -25,8 +25,8 @@ jobs:
with: with:
node-version: '16' node-version: '16'
- name: Setup docker # - name: Setup docker
uses: docker-practice/actions-setup-docker@master # uses: docker-practice/actions-setup-docker@master
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -45,7 +45,7 @@ jobs:
run: | run: |
docker pull techknowlogick/xgo:latest docker pull techknowlogick/xgo:latest
go install src.techknowlogick.com/xgo@latest go install src.techknowlogick.com/xgo@latest
brew install upx sudo apt install upx
- name: Build web - name: Build web
run: | run: |

View File

@ -9,7 +9,7 @@ jobs:
release: release:
strategy: strategy:
matrix: matrix:
platform: [macos-latest] platform: [ubuntu-latest]
go-version: [1.17] go-version: [1.17]
name: Release name: Release
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
@ -19,8 +19,8 @@ jobs:
with: with:
go-version: ${{ matrix.go-version }} go-version: ${{ matrix.go-version }}
- name: Setup docker # - name: Setup docker
uses: docker-practice/actions-setup-docker@master # uses: docker-practice/actions-setup-docker@master
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v2 uses: actions/setup-node@v2
@ -44,7 +44,7 @@ jobs:
run: | run: |
docker pull techknowlogick/xgo:latest docker pull techknowlogick/xgo:latest
go install src.techknowlogick.com/xgo@latest go install src.techknowlogick.com/xgo@latest
brew install upx sudo apt install upx
- name: Build web - name: Build web
run: | run: |

View File

@ -9,7 +9,7 @@ gitCommit=$(git log --pretty=format:"%h" -1)
if [ "$1" == "release" ]; then if [ "$1" == "release" ]; then
gitTag=$(git describe --abbrev=0 --tags) gitTag=$(git describe --abbrev=0 --tags)
else else
gitTag=$(git describe --abbrev=0 --tags)-next gitTag=build-next
fi fi
echo "build version: $gitTag" echo "build version: $gitTag"