Make gogo optional at compile time #69
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
go: ['1.21.x', '1.22.x'] | |
name: Typeurl CI | |
runs-on: ubuntu-24.04 | |
timeout-minutes: 5 | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Setup Go binary path | |
shell: bash | |
run: | | |
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV | |
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
path: src/github.com/containerd/typeurl | |
fetch-depth: 25 | |
- name: Project Checks | |
uses: containerd/project-checks@v1.1.0 | |
with: | |
working-directory: src/github.com/containerd/typeurl | |
- name: Test | |
working-directory: src/github.com/containerd/typeurl | |
run: | | |
go test -v -race -coverprofile=coverage.txt -covermode=atomic ./... | |
- name: Codecov | |
run: bash <(curl -s https://codecov.io/bash) | |
working-directory: src/github.com/containerd/typeurl |