test
This commit is contained in:
+67
-67
@@ -8,72 +8,72 @@ on:
|
||||
|
||||
jobs:
|
||||
|
||||
build_assets:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: Set up Go 1.x
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.22
|
||||
id: go
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v2
|
||||
- name: Get dependencies
|
||||
run: |
|
||||
go get -v -t -d ./...
|
||||
if [ -f Gopkg.toml ]; then
|
||||
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
||||
dep ensure
|
||||
fi
|
||||
- name: Build
|
||||
run: |
|
||||
chmod +x build.assets.sh
|
||||
./build.assets.sh
|
||||
- name: Upload
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
files: |
|
||||
freebsd_386_client.tar.gz
|
||||
freebsd_386_server.tar.gz
|
||||
freebsd_amd64_client.tar.gz
|
||||
freebsd_amd64_server.tar.gz
|
||||
freebsd_arm_client.tar.gz
|
||||
freebsd_arm_server.tar.gz
|
||||
linux_386_client.tar.gz
|
||||
linux_386_server.tar.gz
|
||||
linux_amd64_client.tar.gz
|
||||
linux_amd64_server.tar.gz
|
||||
linux_arm64_client.tar.gz
|
||||
linux_arm64_server.tar.gz
|
||||
linux_arm_v5_client.tar.gz
|
||||
linux_arm_v6_client.tar.gz
|
||||
linux_arm_v7_client.tar.gz
|
||||
linux_arm_v5_server.tar.gz
|
||||
linux_arm_v6_server.tar.gz
|
||||
linux_arm_v7_server.tar.gz
|
||||
linux_mips64le_client.tar.gz
|
||||
linux_mips64le_server.tar.gz
|
||||
linux_mips64_client.tar.gz
|
||||
linux_mips64_server.tar.gz
|
||||
linux_mipsle_client.tar.gz
|
||||
linux_mipsle_server.tar.gz
|
||||
linux_mips_client.tar.gz
|
||||
linux_mips_server.tar.gz
|
||||
darwin_amd64_client.tar.gz
|
||||
darwin_amd64_server.tar.gz
|
||||
darwin_arm64_client.tar.gz
|
||||
darwin_arm64_server.tar.gz
|
||||
windows_386_client.tar.gz
|
||||
windows_386_server.tar.gz
|
||||
windows_amd64_client.tar.gz
|
||||
windows_amd64_server.tar.gz
|
||||
npc_sdk.tar.gz
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
# build_assets:
|
||||
#
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
#
|
||||
# - name: Set up Go 1.x
|
||||
# uses: actions/setup-go@v2
|
||||
# with:
|
||||
# go-version: 1.22
|
||||
# id: go
|
||||
# - name: Check out code into the Go module directory
|
||||
# uses: actions/checkout@v2
|
||||
# - name: Get dependencies
|
||||
# run: |
|
||||
# go get -v -t -d ./...
|
||||
# if [ -f Gopkg.toml ]; then
|
||||
# curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
||||
# dep ensure
|
||||
# fi
|
||||
# - name: Build
|
||||
# run: |
|
||||
# chmod +x build.assets.sh
|
||||
# ./build.assets.sh
|
||||
# - name: Upload
|
||||
# uses: softprops/action-gh-release@v1
|
||||
# if: startsWith(github.ref, 'refs/tags/')
|
||||
# with:
|
||||
# files: |
|
||||
# freebsd_386_client.tar.gz
|
||||
# freebsd_386_server.tar.gz
|
||||
# freebsd_amd64_client.tar.gz
|
||||
# freebsd_amd64_server.tar.gz
|
||||
# freebsd_arm_client.tar.gz
|
||||
# freebsd_arm_server.tar.gz
|
||||
# linux_386_client.tar.gz
|
||||
# linux_386_server.tar.gz
|
||||
# linux_amd64_client.tar.gz
|
||||
# linux_amd64_server.tar.gz
|
||||
# linux_arm64_client.tar.gz
|
||||
# linux_arm64_server.tar.gz
|
||||
# linux_arm_v5_client.tar.gz
|
||||
# linux_arm_v6_client.tar.gz
|
||||
# linux_arm_v7_client.tar.gz
|
||||
# linux_arm_v5_server.tar.gz
|
||||
# linux_arm_v6_server.tar.gz
|
||||
# linux_arm_v7_server.tar.gz
|
||||
# linux_mips64le_client.tar.gz
|
||||
# linux_mips64le_server.tar.gz
|
||||
# linux_mips64_client.tar.gz
|
||||
# linux_mips64_server.tar.gz
|
||||
# linux_mipsle_client.tar.gz
|
||||
# linux_mipsle_server.tar.gz
|
||||
# linux_mips_client.tar.gz
|
||||
# linux_mips_server.tar.gz
|
||||
# darwin_amd64_client.tar.gz
|
||||
# darwin_amd64_server.tar.gz
|
||||
# darwin_arm64_client.tar.gz
|
||||
# darwin_arm64_server.tar.gz
|
||||
# windows_386_client.tar.gz
|
||||
# windows_386_server.tar.gz
|
||||
# windows_amd64_client.tar.gz
|
||||
# windows_amd64_server.tar.gz
|
||||
# npc_sdk.tar.gz
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
#
|
||||
build_android:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -85,7 +85,7 @@ jobs:
|
||||
docker run --rm -i -w /app -v $(pwd):/app -e ANDROID_HOME=/usr/local/android_sdk -e GOPROXY=direct fyneio/fyne-cross:android-latest /app/build.android.sh
|
||||
- name: Upload
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
# if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
files: |
|
||||
android_client.apk
|
||||
|
||||
Reference in New Issue
Block a user