Skip to content

Commit

Permalink
chore: run/test 32-bit binaries outside of Docker
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Henderson <[email protected]>
  • Loading branch information
hairyhenderson committed Jun 23, 2024
1 parent 2ed9108 commit 724f886
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 37 deletions.
51 changes: 19 additions & 32 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.19.x
- name: Lint
Expand All @@ -19,42 +19,29 @@ jobs:
test:
strategy:
matrix:
platform:
- ubuntu-latest
go:
- 1.19.x
platform: [ ubuntu-latest, windows-latest, macos-latest ]
version: [ v1.19.x ]
goarch: [ amd64, '386' ]
exclude:
- platform: macos-latest
goarch: '386'
- platform: windows-latest
goarch: '386'
include:
- platform: ubuntu-latest
go: 1.19.x
goarch: '386'
# whether to enable the race detector - defaults to true
enable_race: 'false'
- platform: ubuntu-latest
go: 1.19.x
goarch: 'amd64'
- platform: macos-latest
go: 1.19.x
- platform: windows-latest
go: 1.19.x
- goarch: '386'
# whether to enable the race detector - defaults to true
enable_race: 'false'
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
go-version: ${{ matrix.version }}
architecture: ${{ matrix.goarch }}
- name: Test
run: make test ENABLE_RACE=${{ matrix.enable_race }}
env:
CGO_ENABLED: '0'
GOARCH: ${{ matrix.goarch }}
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERAGE_VERSION: 1.19
test32bit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Test on 32-bit platform
run: |
docker build --platform=linux/386 -t test_32bit -f Dockerfile.test .
docker run --platform=linux/386 --rm test_32bit go test ./...
COVERAGE_VERSION: '1.19'
5 changes: 0 additions & 5 deletions Dockerfile.test

This file was deleted.

0 comments on commit 724f886

Please sign in to comment.