From c08635f2e09a54b20e0ff568b998486c22983c1f Mon Sep 17 00:00:00 2001 From: Travis Bischel Date: Mon, 29 Apr 2024 23:35:39 -0600 Subject: [PATCH] GHA: add i386 atomicalign Inspo from github.com/IBM/sarama/pull/2874 (MIT) --- .github/workflows/i386.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/i386.yml diff --git a/.github/workflows/i386.yml b/.github/workflows/i386.yml new file mode 100644 index 00000000..3696a6bb --- /dev/null +++ b/.github/workflows/i386.yml @@ -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 ./...