Merge branch 'cross-arch-test' of github.com:RyuaNerin/go-krypto into… #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: cross-arch-test | |
on: | |
push: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pull-requests: read | |
checks: write | |
jobs: | |
cross-arch-test: | |
strategy: | |
matrix: | |
include: | |
- go-version: 1.15-alpine | |
platform: arm32v6/golang | |
- go-version: 1.16-alpine | |
platform: arm32v6/golang | |
- go-version: 1.17-alpine | |
platform: arm32v6/golang | |
- go-version: 1.18-alpine | |
platform: arm32v6/golang | |
- go-version: 1.19-alpine | |
platform: arm32v6/golang | |
- go-version: 1.20-alpine | |
platform: arm32v6/golang | |
- go-version: 1.21-alpine | |
platform: arm32v6/golang | |
- go-version: 1.22-alpine | |
platform: arm32v6/golang | |
- go-version: 1.23-alpine | |
platform: arm32v6/golang | |
- go-version: 1.15-buster | |
platform: arm32v7/golang | |
- go-version: 1.16-buster | |
platform: arm32v7/golang | |
- go-version: 1.17-buster | |
platform: arm32v7/golang | |
- go-version: 1.18-buster | |
platform: arm32v7/golang | |
- go-version: 1.19-buster | |
platform: arm32v7/golang | |
- go-version: 1.20-buster | |
platform: arm32v7/golang | |
- go-version: 1.21-bullseye | |
platform: arm32v7/golang | |
- go-version: 1.22-bullseye | |
platform: arm32v7/golang | |
- go-version: 1.23-bullseye | |
platform: arm32v7/golang | |
- go-version: 1.15-buster | |
platform: arm64v8/golang | |
- go-version: 1.16-buster | |
platform: arm64v8/golang | |
- go-version: 1.17-buster | |
platform: arm64v8/golang | |
- go-version: 1.18-buster | |
platform: arm64v8/golang | |
- go-version: 1.19-buster | |
platform: arm64v8/golang | |
- go-version: 1.20-buster | |
platform: arm64v8/golang | |
- go-version: 1.21-bullseye | |
platform: arm64v8/golang | |
- go-version: 1.22-bullseye | |
platform: arm64v8/golang | |
- go-version: 1.23-bullseye | |
platform: arm64v8/golang | |
- go-version: 1.15-buster | |
platform: amd64/golang | |
- go-version: 1.16-buster | |
platform: amd64/golang | |
- go-version: 1.17-buster | |
platform: amd64/golang | |
- go-version: 1.18-buster | |
platform: amd64/golang | |
- go-version: 1.19-buster | |
platform: amd64/golang | |
- go-version: 1.20-buster | |
platform: amd64/golang | |
- go-version: 1.21-bullseye | |
platform: amd64/golang | |
- go-version: 1.22-bullseye | |
platform: amd64/golang | |
- go-version: 1.23-bullseye | |
platform: amd64/golang | |
- go-version: '1.15' | |
platform: winamd64/golang | |
- go-version: '1.16' | |
platform: winamd64/golang | |
- go-version: '1.17' | |
platform: winamd64/golang | |
- go-version: '1.18' | |
platform: winamd64/golang | |
- go-version: '1.19' | |
platform: winamd64/golang | |
- go-version: '1.20' | |
platform: winamd64/golang | |
- go-version: '1.21' | |
platform: winamd64/golang | |
- go-version: '1.22' | |
platform: winamd64/golang | |
- go-version: '1.23' | |
platform: winamd64/golang | |
- go-version: 1.21-bullseye | |
platform: arm32v5/golang | |
- go-version: 1.21-bullseye | |
platform: ppc64le/golang | |
- go-version: 1.22-bullseye | |
platform: ppc64le/golang | |
- go-version: 1.23-bullseye | |
platform: ppc64le/golang | |
- go-version: 1.21-bullseye | |
platform: s390x/golang | |
- go-version: 1.22-bullseye | |
platform: s390x/golang | |
- go-version: 1.23-bullseye | |
platform: s390x/golang | |
- go-version: 1.15-buster | |
platform: mips64le/golang | |
- go-version: 1.16-buster | |
platform: mips64le/golang | |
- go-version: 1.17-buster | |
platform: mips64le/golang | |
- go-version: 1.18-buster | |
platform: mips64le/golang | |
- go-version: 1.19-buster | |
platform: mips64le/golang | |
- go-version: 1.20-bullseye | |
platform: mips64le/golang | |
- go-version: 1.21-bullseye | |
platform: mips64le/golang | |
- go-version: 1.22-bullseye | |
platform: mips64le/golang | |
- go-version: 1.23-bullseye | |
platform: mips64le/golang | |
- go-version: 1.21-alpine | |
platform: riscv64/golang | |
- go-version: 1.22-alpine | |
platform: riscv64/golang | |
- go-version: 1.23-alpine | |
platform: riscv64/golang | |
- go-version: 1.15-alpine | |
platform: i386/golang | |
- go-version: 1.16-alpine | |
platform: i386/golang | |
- go-version: 1.17-alpine | |
platform: i386/golang | |
- go-version: 1.18-alpine | |
platform: i386/golang | |
- go-version: 1.19-alpine | |
platform: i386/golang | |
- go-version: 1.20-buster | |
platform: i386/golang | |
- go-version: 1.21-bullseye | |
platform: i386/golang | |
- go-version: 1.22-bullseye | |
platform: i386/golang | |
- go-version: 1.23-bullseye | |
platform: i386/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 ./... |