Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

fix(ci): use dynamic matrix for docker build platforms (#807)

Francesco Bonacci5104ad5cb372
diff --git a/.github/workflows/docker-reusable-build.yml b/.github/workflows/docker-reusable-build.yml
index bcba80284c..3fbf8fb8d5 100644
--- a/.github/workflows/docker-reusable-build.yml
+++ b/.github/workflows/docker-reusable-build.yml
@@ -24,15 +24,26 @@ on:
default: false
jobs:
+ setup:
+ runs-on: ubuntu-latest
+ outputs:
+ platforms: ${{ steps.set-platforms.outputs.platforms }}
+ steps:
+ - id: set-platforms
+ run: |
+ if [ "${{ inputs.skip_arm64 }}" == "true" ]; then
+ echo 'platforms=["linux/amd64"]' >> $GITHUB_OUTPUT
+ else
+ echo 'platforms=["linux/amd64", "linux/arm64"]' >> $GITHUB_OUTPUT
+ fi
+
build:
+ needs: setup
runs-on: ubuntu-latest
- if: ${{ !(inputs.skip_arm64 && matrix.platform == 'linux/arm64') }}
strategy:
fail-fast: false
matrix:
- platform:
- - linux/amd64
- - linux/arm64
+ platform: ${{ fromJSON(needs.setup.outputs.platforms) }}
steps:
- name: Checkout
uses: actions/checkout@v4