Skip to content

CGO_ENABLED default is appropriate #59

CGO_ENABLED default is appropriate

CGO_ENABLED default is appropriate #59

Workflow file for this run

name: linux
on:
push:
branches:
- 'master'
paths:
- 'action.yml'
- '.github/workflows/linux_test.yml'
jobs:
build:
strategy:
matrix:
go_arch: [amd64, arm64, mips64le, ppc64le, riscv64, s390x, 386]
fail-fast: false
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20.x
id: go
- name: Build go from tip
uses: iwdgo/gotip-build@master
id: gotip
with:
go_variables: GOARCH=${{ matrix.go_arch }}
test_build: true
- name: Upload go executable
uses: actions/upload-artifact@v3
if: ${{ env.crosscompile == 'false' }}
with:
name: gotip-${{ env.goos }}-${{ env.goarch }}
path: go/bin/
- name: Upload go executable
uses: actions/upload-artifact@v3
if: ${{ env.crosscompile == 'true' }}
with:
name: gotip-${{ env.goos }}-${{ env.goarch }}
path: go/bin/${{ env.goos }}_${{ env.goarch }}