Skip to content

Commit 5c38b82

Browse files
authored
Update publish.yml
1 parent b904f22 commit 5c38b82

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
jobs:
99
build-and-push:
1010
runs-on: ubuntu-latest
11-
1211
permissions:
1312
contents: read
1413
packages: write
@@ -17,8 +16,18 @@ jobs:
1716
- name: Checkout repository
1817
uses: actions/checkout@v4
1918

19+
- name: Set up QEMU emulation
20+
uses: docker/setup-qemu-action@v2
21+
with:
22+
platforms: linux/amd64,linux/arm64
23+
2024
- name: Set up Docker Buildx
2125
uses: docker/setup-buildx-action@v3
26+
with:
27+
install: true
28+
29+
- name: Inspect and bootstrap builder
30+
run: docker buildx inspect --bootstrap
2231

2332
- name: Log in to GitHub Container Registry
2433
uses: docker/login-action@v3
@@ -34,3 +43,5 @@ jobs:
3443
push: true
3544
tags: ghcr.io/${{ github.repository_owner }}/sort_algorithms:latest
3645
platforms: linux/amd64,linux/arm64
46+
build-args: |
47+
MAKEFLAGS=-j$(nproc) V=1

0 commit comments

Comments
 (0)