💚 change back to ubuntu
This commit is contained in:
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -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: |
|
||||||
|
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
@ -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: |
|
||||||
|
2
build.sh
2
build.sh
@ -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"
|
||||||
|
Reference in New Issue
Block a user