-
Notifications
You must be signed in to change notification settings - Fork 429
63 lines (56 loc) · 1.69 KB
/
easyjson.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: easyjson
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
name: Test with Go ${{ matrix.go }}
strategy:
fail-fast: false
matrix:
go: [ 1.23 ]
steps:
- uses: actions/checkout@v2
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Install golint (for old go version)
if: matrix.go < 1.16
run: go get golang.org/x/lint/golint && go mod tidy
- name: Install golint
if: matrix.go > 1.15
run: go install golang.org/x/lint/golint@latest
- name: Build and Run tests
run: make
test-arm64:
runs-on: ubuntu-latest
name: Test on ${{ matrix.distro }} ${{ matrix.arch }}
strategy:
matrix:
include:
- arch: arm64
distro: ubuntu24.04
steps:
- uses: actions/checkout@v2
- uses: uraimo/run-on-arch-action@master
with:
arch: ${{ matrix.arch }}
distro: ${{ matrix.distro }}
install: |
apt-get update
apt install -y curl wget make gcc
latestGo=$(curl "https://golang.org/VERSION?m=text")
wget --quiet "https://dl.google.com/go/${latestGo}.linux-${{ matrix.arch }}.tar.gz"
rm -f $(which go)
rm -rf /usr/local/go
tar -C /usr/local -xzf "${latestGo}.linux-${{ matrix.arch }}.tar.gz"
run: |
export PATH=/usr/local/go/bin:$PATH
export PATH=~/go/bin:$PATH
printf "Go Version: $(go version)\n"
go install golang.org/x/lint/golint@latest
make