Skip to content

Commit

Permalink
GHA: add i386 atomicalign
Browse files Browse the repository at this point in the history
Inspo from github.com/IBM/sarama/pull/2874 (MIT)
  • Loading branch information
twmb committed Apr 30, 2024
1 parent a4f259a commit c08635f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/i386.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Inspired by github.com/IBM/sarama/pull/2874 (MIT)

name: i386

on:
push:
branches: ["*"]
paths-ignore:
- '**/*.md'
pull_request:
branches: ["*"]
paths-ignore:
- '**/*.md'

jobs:
atomicalign:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: 'stable'
- name: staticcheck
env:
GOARCH: 386
GOFLAGS: -tags=functional
run: |
git clone --depth=1 https://github.com/dominikh/go-tools /tmp/go-tools
( cd /tmp/go-tools/cmd/staticcheck && go build -o /tmp/staticcheck )
/tmp/staticcheck -checks SA1027 ./...

0 comments on commit c08635f

Please sign in to comment.