mirror of https://github.com/statping/statping
Workflow chages
parent
6260c6f4fa
commit
793b4f1ab4
|
@ -1,4 +1,4 @@
|
||||||
name: Development Build
|
name: 1. Development Build and Testing
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
@ -90,7 +90,8 @@ jobs:
|
||||||
|
|
||||||
- name: Set Darwin Build Flags
|
- name: Set Darwin Build Flags
|
||||||
if: matrix.platform == 'darwin'
|
if: matrix.platform == 'darwin'
|
||||||
run: echo "XGO_TAGS=netgo osusergo darwin sqlite_omit_load_extension" >> $GITHUB_ENV
|
run : |
|
||||||
|
echo "XGO_TAGS=netgo osusergo darwin sqlite_omit_load_extension" >> $GITHUB_ENV
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Set Windows Build Flags
|
- name: Set Windows Build Flags
|
||||||
|
@ -111,8 +112,8 @@ jobs:
|
||||||
dest: build
|
dest: build
|
||||||
prefix: statping
|
prefix: statping
|
||||||
targets: ${{ matrix.platform }}/${{ matrix.arch }}
|
targets: ${{ matrix.platform }}/${{ matrix.arch }}
|
||||||
v: false
|
v: true
|
||||||
x: false
|
x: true
|
||||||
pkg: cmd
|
pkg: cmd
|
||||||
buildmode: pie
|
buildmode: pie
|
||||||
tags: ${{ env.XGO_TAGS }}
|
tags: ${{ env.XGO_TAGS }}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
name: Stable Build, Test and Deploy
|
name: 3. Stable Build, Test and Deploy
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
name: Unstable Build, Test and Deploy
|
name: 2. Unstable Build, Test and Deploy
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
@ -64,8 +64,8 @@ jobs:
|
||||||
include:
|
include:
|
||||||
# - platform: darwin
|
# - platform: darwin
|
||||||
# arch: amd64
|
# arch: amd64
|
||||||
- platform: windows
|
# - platform: windows
|
||||||
arch: amd64
|
# arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -93,12 +93,12 @@ jobs:
|
||||||
# run: echo "XGO_TAGS=netgo osusergo darwin sqlite_omit_load_extension" >> $GITHUB_ENV
|
# run: echo "XGO_TAGS=netgo osusergo darwin sqlite_omit_load_extension" >> $GITHUB_ENV
|
||||||
# shell: bash
|
# shell: bash
|
||||||
|
|
||||||
- name: Set Windows Build Flags
|
# - name: Set Windows Build Flags
|
||||||
if: matrix.platform == 'windows'
|
# if: matrix.platform == 'windows'
|
||||||
run: |
|
# run: |
|
||||||
echo "BUILD_FLAGS=-extldflags -static" >> $GITHUB_ENV
|
# echo "BUILD_FLAGS=-extldflags -static" >> $GITHUB_ENV
|
||||||
echo "XGO_TAGS=netgo osusergo sqlite_omit_load_extension" >> $GITHUB_ENV
|
# echo "XGO_TAGS=netgo osusergo sqlite_omit_load_extension" >> $GITHUB_ENV
|
||||||
shell: bash
|
# shell: bash
|
||||||
|
|
||||||
- name: Build ${{ matrix.platform }}/${{ matrix.arch }}
|
- name: Build ${{ matrix.platform }}/${{ matrix.arch }}
|
||||||
uses: crazy-max/ghaction-xgo@v1
|
uses: crazy-max/ghaction-xgo@v1
|
||||||
|
@ -128,15 +128,15 @@ jobs:
|
||||||
rm -rf statping
|
rm -rf statping
|
||||||
echo "compressed=statping-linux-${{ matrix.arch }}.tar.gz" >> $GITHUB_ENV
|
echo "compressed=statping-linux-${{ matrix.arch }}.tar.gz" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Compress Windows Builds
|
# - name: Compress Windows Builds
|
||||||
if: matrix.platform == 'windows'
|
# if: matrix.platform == 'windows'
|
||||||
run: |
|
# run: |
|
||||||
cd build
|
# cd build
|
||||||
mv statping-windows-4.0-${{ matrix.arch }}.exe statping.exe
|
# mv statping-windows-4.0-${{ matrix.arch }}.exe statping.exe
|
||||||
chmod +x statping.exe
|
# chmod +x statping.exe
|
||||||
zip statping-windows-${{ matrix.arch }}.zip statping.exe
|
# zip statping-windows-${{ matrix.arch }}.zip statping.exe
|
||||||
rm -rf statping.exe
|
# rm -rf statping.exe
|
||||||
echo "compressed=statping-windows-${{ matrix.arch }}.zip" >> $GITHUB_ENV
|
# echo "compressed=statping-windows-${{ matrix.arch }}.zip" >> $GITHUB_ENV
|
||||||
|
|
||||||
# - name: Compress Darwin Builds
|
# - name: Compress Darwin Builds
|
||||||
# if: matrix.platform == 'darwin'
|
# if: matrix.platform == 'darwin'
|
||||||
|
|
Loading…
Reference in New Issue