mirror of https://github.com/statping/statping
parent
c762e17852
commit
2e5fcabc96
|
@ -98,8 +98,22 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Set Linux Build Flags
|
- name: Set Linux Build Flags
|
||||||
if: matrix.platform != 'darwin'
|
if: matrix.platform == 'linux'
|
||||||
run: echo ::set-env name=BUILD_FLAGS::'-extldflags -static'
|
run: |
|
||||||
|
echo ::set-env name=BUILD_FLAGS::'-extldflags -static'
|
||||||
|
echo ::set-env name=XGO_TAGS::'netgo,osusergo,linux,sqlite_omit_load_extension'
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- name: Set Darwin Build Flags
|
||||||
|
if: matrix.platform == 'darwin'
|
||||||
|
run: echo ::set-env name=XGO_TAGS::'netgo,osusergo,darwin,sqlite_omit_load_extension'
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- name: Set Windows Build Flags
|
||||||
|
if: matrix.platform == 'windows'
|
||||||
|
run: |
|
||||||
|
echo ::set-env name=BUILD_FLAGS::'-extldflags -static'
|
||||||
|
echo ::set-env name=XGO_TAGS::'netgo,osusergo,sqlite_omit_load_extension'
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Build ${{ matrix.platform }}/${{ matrix.arch }}
|
- name: Build ${{ matrix.platform }}/${{ matrix.arch }}
|
||||||
|
@ -117,6 +131,7 @@ jobs:
|
||||||
x: false
|
x: false
|
||||||
pkg: cmd
|
pkg: cmd
|
||||||
buildmode: pie
|
buildmode: pie
|
||||||
|
tags: ${{ env.XGO_TAGS }}
|
||||||
ldflags: -s -w -X main.VERSION=${{ env.VERSION }} -X main.COMMIT=${{ env.COMMIT }} ${{ env.BUILD_FLAGS }}
|
ldflags: -s -w -X main.VERSION=${{ env.VERSION }} -X main.COMMIT=${{ env.COMMIT }} ${{ env.BUILD_FLAGS }}
|
||||||
|
|
||||||
- name: Compress Linux Builds
|
- name: Compress Linux Builds
|
||||||
|
|
|
@ -98,8 +98,22 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Set Linux Build Flags
|
- name: Set Linux Build Flags
|
||||||
if: matrix.platform != 'darwin'
|
if: matrix.platform == 'linux'
|
||||||
run: echo ::set-env name=BUILD_FLAGS::'-extldflags -static'
|
run: |
|
||||||
|
echo ::set-env name=BUILD_FLAGS::'-extldflags -static'
|
||||||
|
echo ::set-env name=XGO_TAGS::'netgo,osusergo,linux,sqlite_omit_load_extension'
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- name: Set Darwin Build Flags
|
||||||
|
if: matrix.platform == 'darwin'
|
||||||
|
run: echo ::set-env name=XGO_TAGS::'netgo,osusergo,darwin,sqlite_omit_load_extension'
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- name: Set Windows Build Flags
|
||||||
|
if: matrix.platform == 'windows'
|
||||||
|
run: |
|
||||||
|
echo ::set-env name=BUILD_FLAGS::'-extldflags -static'
|
||||||
|
echo ::set-env name=XGO_TAGS::'netgo,osusergo,sqlite_omit_load_extension'
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Build ${{ matrix.platform }}/${{ matrix.arch }}
|
- name: Build ${{ matrix.platform }}/${{ matrix.arch }}
|
||||||
|
@ -117,6 +131,7 @@ jobs:
|
||||||
x: false
|
x: false
|
||||||
pkg: cmd
|
pkg: cmd
|
||||||
buildmode: pie
|
buildmode: pie
|
||||||
|
tags: ${{ env.XGO_TAGS }}
|
||||||
ldflags: -s -w -X main.VERSION=${{ env.VERSION }} -X main.COMMIT=${{ env.COMMIT }} ${{ env.BUILD_FLAGS }}
|
ldflags: -s -w -X main.VERSION=${{ env.VERSION }} -X main.COMMIT=${{ env.COMMIT }} ${{ env.BUILD_FLAGS }}
|
||||||
|
|
||||||
- name: Compress Linux Builds
|
- name: Compress Linux Builds
|
||||||
|
|
Loading…
Reference in New Issue