Skip to content

Commit c08635f

Browse files
committed
GHA: add i386 atomicalign
Inspo from github.com/IBM/sarama/pull/2874 (MIT)
1 parent a4f259a commit c08635f

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/i386.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Inspired by github.com/IBM/sarama/pull/2874 (MIT)
2+
3+
name: i386
4+
5+
on:
6+
push:
7+
branches: ["*"]
8+
paths-ignore:
9+
- '**/*.md'
10+
pull_request:
11+
branches: ["*"]
12+
paths-ignore:
13+
- '**/*.md'
14+
15+
jobs:
16+
atomicalign:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-go@v4
21+
with:
22+
go-version: 'stable'
23+
- name: staticcheck
24+
env:
25+
GOARCH: 386
26+
GOFLAGS: -tags=functional
27+
run: |
28+
git clone --depth=1 https://github.com/dominikh/go-tools /tmp/go-tools
29+
( cd /tmp/go-tools/cmd/staticcheck && go build -o /tmp/staticcheck )
30+
/tmp/staticcheck -checks SA1027 ./...

0 commit comments

Comments
 (0)