Skip to content

Go 1.22.2, 1.22.3, 1.22.4, 1.22.5, 1.22.6, 1.23.0 #274

Go 1.22.2, 1.22.3, 1.22.4, 1.22.5, 1.22.6, 1.23.0

Go 1.22.2, 1.22.3, 1.22.4, 1.22.5, 1.22.6, 1.23.0 #274

Workflow file for this run

name: test
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- 'master'
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
env:
PLATFORMS: linux/amd64,linux/arm64
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go_version:
- 1.23.0
- 1.22.6
case:
- c
- cpp
- gorm
- ffmerger
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver: docker
-
name: Build xgo
uses: docker/bake-action@v5
with:
targets: image
set: |
*.tags=xgo:${{ matrix.go_version }}
*.args.GO_VERSION=${{ matrix.go_version }}
*.output=type=docker
-
name: Test ${{ matrix.case }} for go ${{ matrix.go_version }}
uses: docker/bake-action@v5
with:
targets: test-${{ matrix.case }}
env:
BASE_IMAGE: xgo:${{ matrix.go_version }}