Skip to content

Commit

Permalink
add cross-arch-test.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
RyuaNerin committed Sep 8, 2024
1 parent 2f4e6ca commit 48dd777
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/cross-arch-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: cross-arch-test

permissions:
contents: read
pull-requests: read
checks: write

jobs:
cross-arch-test:
strategy:
matrix:
go-version:
- '1.15'
- '1.16'
- '1.17'
- '1.18'
- '1.19'
- '1.20'
- '1.21'
- '1.22'
- '1.23'

platform:
- amd64/golang
- arm32v6/golang
- arm32v7/golang
- arm64v8/golang
- i386/golang
- mips64le/golang
- ppc64le/golang
- riscv64/golang
- s390x/golang
- windows-amd64/golang

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set git to use LF
run: |
git config core.autocrlf false
git rm --cached -r .
git reset --hard
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Test (purego)
run: |
docker run \
--rm \
--volume ${{ github.workspace }}:/src \
--workdir /go/src/app \
${{ matrix.platform }}:${{ matrix.go-version }} \
go test --tags=purego ./...
- name: Test
run: |
docker run \
--rm \
--volume ${{ github.workspace }}:/src \
--workdir /go/src/app \
${{ matrix.platform }}:${{ matrix.go-version }} \
go test -v ./...

0 comments on commit 48dd777

Please sign in to comment.