From 33d24daaf8e558dc0dc681d460ba8bcdf14f57b6 Mon Sep 17 00:00:00 2001 From: Dominic Evans Date: Thu, 25 Apr 2024 09:30:39 +0100 Subject: [PATCH] chore(ci): add 32-bit alignment check Signed-off-by: Dominic Evans --- .github/workflows/i386.yml | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 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 000000000..1a56ebd4f --- /dev/null +++ b/.github/workflows/i386.yml @@ -0,0 +1,39 @@ +name: i386 +on: + merge_group: + push: + branches: + - main + paths-ignore: + - '**/*.md' + pull_request: + branches: + - "**" + paths-ignore: + - '**/*.md' + +permissions: + contents: read # for actions/checkout to fetch code + +jobs: + atomicalign: + permissions: + contents: read # for actions/checkout to fetch code + pull-requests: read # for golangci/golangci-lint-action to fetch pull requests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + with: + persist-credentials: false + - name: Setup Go + uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 + with: + go-version: 1.22.x + - 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 ./...