Skip to content

Commit

Permalink
Merge pull request #2028 from AkihiroSuda/ci-old-go
Browse files Browse the repository at this point in the history
CI: test compilation with an old release of Go
  • Loading branch information
AkihiroSuda committed Feb 18, 2023
2 parents 4ffcc46 + 195da3d commit bf20f20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,17 +153,20 @@ jobs:
cross:
runs-on: ubuntu-22.04
timeout-minutes: 40
strategy:
matrix:
go-version: ["1.19.x", "1.20.x"]
steps:
- uses: actions/checkout@v3.3.0
with:
fetch-depth: 1
- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
go-version: ${{ matrix.go-version }}
cache: true
check-latest: true
- name: "Cross"
run: make artifacts
run: GO_VERSION="$(echo ${{ matrix.go-version }} | sed -e s/.x//)" make artifacts

test-integration-docker-compatibility:
runs-on: ubuntu-22.04
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ install:
install -D -m 755 $(CURDIR)/extras/rootless/containerd-rootless-setuptool.sh $(DESTDIR)$(BINDIR)/containerd-rootless-setuptool.sh

define make_artifact_full_linux
DOCKER_BUILDKIT=1 docker build --output type=tar,dest=$(CURDIR)/_output/nerdctl-full-$(VERSION_TRIMMED)-linux-$(1).tar --target out-full --platform $(1) $(CURDIR)
DOCKER_BUILDKIT=1 docker build --output type=tar,dest=$(CURDIR)/_output/nerdctl-full-$(VERSION_TRIMMED)-linux-$(1).tar --target out-full --platform $(1) --build-arg GO_VERSION $(CURDIR)
gzip -9 $(CURDIR)/_output/nerdctl-full-$(VERSION_TRIMMED)-linux-$(1).tar
endef

Expand Down

0 comments on commit bf20f20

Please sign in to comment.