diff --git a/.github/workflows/buildkit.yml b/.github/workflows/buildkit.yml index 3984b98d6c93..a77eef798ea0 100644 --- a/.github/workflows/buildkit.yml +++ b/.github/workflows/buildkit.yml @@ -29,30 +29,6 @@ env: DESTDIR: "./bin" jobs: - test: - uses: ./.github/workflows/.test.yml - with: - cache_scope: build-integration-tests - pkgs: ./client ./cmd/buildctl ./worker/containerd ./solver ./frontend - kinds: integration - codecov_flags: core - includes: | - - pkg: ./... - skip-integration-tests: 1 - typ: integration gateway - - pkg: ./client - worker: containerd - tags: nydus - typ: integration - - pkg: ./client - worker: oci - tags: nydus - typ: integration - - pkg: ./... - tags: nydus - skip-integration-tests: 1 - typ: integration - prepare: runs-on: ubuntu-22.04 outputs: @@ -135,6 +111,32 @@ jobs: path: ${{ env.DESTDIR }}/* if-no-files-found: error + test: + uses: ./.github/workflows/.test.yml + needs: + - binaries + with: + cache_scope: build-integration-tests + pkgs: ./client ./cmd/buildctl ./worker/containerd ./solver ./frontend + kinds: integration + codecov_flags: core + includes: | + - pkg: ./... + skip-integration-tests: 1 + typ: integration gateway + - pkg: ./client + worker: containerd + tags: nydus + typ: integration + - pkg: ./client + worker: oci + tags: nydus + typ: integration + - pkg: ./... + tags: nydus + skip-integration-tests: 1 + typ: integration + image: runs-on: ubuntu-22.04 needs: diff --git a/Dockerfile b/Dockerfile index 8de348cebb75..4be2e7da0b5c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -73,9 +73,13 @@ ARG TARGETPLATFORM # lld has issues building static binaries for ppc so prefer ld for it RUN set -e; xx-apk add musl-dev gcc libseccomp-dev libseccomp-static; \ [ "$(xx-info arch)" != "ppc64le" ] || XX_CC_PREFER_LINKER=ld xx-clang --setup-target-triple -RUN --mount=from=runc-src,src=/usr/src/runc,target=. --mount=target=/root/.cache,type=cache \ - CGO_ENABLED=1 xx-go build -mod=vendor -ldflags '-extldflags -static' -tags 'apparmor seccomp netgo cgo static_build osusergo' -o /usr/bin/runc ./ && \ +RUN --mount=from=runc-src,src=/usr/src/runc,target=. \ + --mount=target=/root/.cache,type=cache <