-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (40 loc) · 1.02 KB
/
linux_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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@v5
with:
go-version: 1.22.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/
- 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 }}