From a00a8cfb39a83d21645eac25c0a6e939d90346f6 Mon Sep 17 00:00:00 2001 From: Leszek Mazur Date: Tue, 1 Jul 2025 22:06:28 +0200 Subject: [PATCH 1/3] Added ARM version build --- .github/workflows/sdk-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/sdk-ci.yml b/.github/workflows/sdk-ci.yml index e6e3f94..1f1a810 100644 --- a/.github/workflows/sdk-ci.yml +++ b/.github/workflows/sdk-ci.yml @@ -19,12 +19,17 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 - name: Build SDK uses: docker/build-push-action@v4 with: context: . load: true tags: ${{ env.TEST_TAG }} + platforms: linux/amd64,linux/arm64 - name: Test SDK run: bash ./test_sdk.sh ${{ env.TEST_TAG }} - name: Log into Docker Hub @@ -45,3 +50,4 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + platforms: linux/amd64,linux/arm64 From e9b511f92d04eac13b25a21b8f49cafe6e553d9a Mon Sep 17 00:00:00 2001 From: Leszek Mazur Date: Tue, 1 Jul 2025 22:36:55 +0200 Subject: [PATCH 2/3] Second try --- .github/workflows/sdk-ci.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/sdk-ci.yml b/.github/workflows/sdk-ci.yml index 1f1a810..567ffee 100644 --- a/.github/workflows/sdk-ci.yml +++ b/.github/workflows/sdk-ci.yml @@ -24,19 +24,18 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Build SDK - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v6 with: context: . load: true tags: ${{ env.TEST_TAG }} - platforms: linux/amd64,linux/arm64 - name: Test SDK run: bash ./test_sdk.sh ${{ env.TEST_TAG }} - - name: Log into Docker Hub - uses: docker/login-action@v2 - with: - username: ${{ github.actor }} - password: ${{ secrets.DOCKER_HUB_TOKEN }} + # - name: Log into Docker Hub + # uses: docker/login-action@v3 + # with: + # username: ${{ github.actor }} + # password: ${{ secrets.DOCKER_HUB_TOKEN }} - name: Extract SDK metadata id: meta uses: docker/metadata-action@v4 @@ -44,10 +43,10 @@ jobs: images: lukstep/raspberry-pi-pico-sdk - name: Push SDK image if: github.event_name == 'release' && github.event.action == 'published' - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v6 with: context: . - push: true + # push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} platforms: linux/amd64,linux/arm64 From 6ebf5db556d2262d5fb0507d8c7bd21dcdeafe36 Mon Sep 17 00:00:00 2001 From: Leszek Date: Mon, 7 Jul 2025 22:36:07 +0200 Subject: [PATCH 3/3] Uncomment docker hub related part --- .github/workflows/sdk-ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/sdk-ci.yml b/.github/workflows/sdk-ci.yml index 567ffee..7d31b12 100644 --- a/.github/workflows/sdk-ci.yml +++ b/.github/workflows/sdk-ci.yml @@ -31,11 +31,11 @@ jobs: tags: ${{ env.TEST_TAG }} - name: Test SDK run: bash ./test_sdk.sh ${{ env.TEST_TAG }} - # - name: Log into Docker Hub - # uses: docker/login-action@v3 - # with: - # username: ${{ github.actor }} - # password: ${{ secrets.DOCKER_HUB_TOKEN }} + - name: Log into Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ github.actor }} + password: ${{ secrets.DOCKER_HUB_TOKEN }} - name: Extract SDK metadata id: meta uses: docker/metadata-action@v4 @@ -46,7 +46,7 @@ jobs: uses: docker/build-push-action@v6 with: context: . - # push: true + push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} platforms: linux/amd64,linux/arm64