github actions refactor

pull/920/head
Hunter Long 2020-12-15 01:24:28 -08:00
parent ee3b97508f
commit e50551dee6
2 changed files with 10 additions and 10 deletions

View File

@ -104,20 +104,20 @@ jobs:
- name: Set Linux Build Flags - name: Set Linux Build Flags
if: matrix.platform == 'linux' if: matrix.platform == 'linux'
run: | run: |
echo "BUILD_FLAGS='-extldflags -static'" >> $GITHUB_ENV echo "BUILD_FLAGS=-extldflags -static" >> $GITHUB_ENV
echo "XGO_TAGS='-netgo,osusergo,linux,sqlite_omit_load_extension'" >> $GITHUB_ENV echo "XGO_TAGS=netgo osusergo linux sqlite_omit_load_extension" >> $GITHUB_ENV
shell: bash shell: bash
- 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
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 }}

View File

@ -104,20 +104,20 @@ jobs:
- name: Set Linux Build Flags - name: Set Linux Build Flags
if: matrix.platform == 'linux' if: matrix.platform == 'linux'
run: | run: |
echo "BUILD_FLAGS='-extldflags -static'" >> $GITHUB_ENV echo "BUILD_FLAGS=-extldflags -static" >> $GITHUB_ENV
echo "XGO_TAGS='-netgo,osusergo,linux,sqlite_omit_load_extension'" >> $GITHUB_ENV echo "XGO_TAGS=netgo osusergo linux sqlite_omit_load_extension" >> $GITHUB_ENV
shell: bash shell: bash
- 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
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 }}