Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [amd64, s390x, arm, ppc64le]
steps:
- uses: actions/checkout@v3

Expand All @@ -20,13 +23,13 @@ jobs:
go-version: ${{ env.GO_VERSION }}

- name: Build
run: make static-linux
run: make ARCH=${{ matrix.arch }} static-linux

- name: Upload
if: ${{ github.event_name == 'release' }}
uses: actions/upload-artifact@v4
with:
name: cri-dockerd.ubuntu
name: cri-dockerd.linux-${{ matrix.arch }}
retention-days: 5
path: |
packaging/static/**/**/**/*.tgz
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
name: cri-dockerd.ubuntu
pattern: cri-dockerd.linux-*
merge-multiple: true
- uses: actions/download-artifact@v4
with:
pattern: cri-dockerd.deb-*
Expand Down
2 changes: 1 addition & 1 deletion packaging/static/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static-linux:
mkdir -p build/linux/cri-dockerd
cd $(APP_DIR) && env CGO_ENABLED=$(CGO_ENABLED) GOOS=linux GOARCH=$(ARCH) go build -trimpath ${CRI_DOCKERD_LDFLAGS} -o cri-dockerd
mv $(APP_DIR)/cri-dockerd build/linux/cri-dockerd/cri-dockerd
tar -C build/linux -c -z -f build/linux/cri-dockerd-$(VERSION).amd64.tgz cri-dockerd
tar -C build/linux -c -z -f build/linux/cri-dockerd-$(VERSION).$(ARCH).tgz cri-dockerd

.PHONY: hash_files
hash_files:
Expand Down
Loading