2222 strategy :
2323 fail-fast : false
2424 matrix :
25- platform : ['amd64', 'arm64']
26- runs-on : ${{ startsWith(github.repository, 'NVIDIA/cudaqx') && format('linux-{0}-cpu8', matrix.platform) || 'ubuntu-latest' }}
27- container : ${{ format('ghcr.io/nvidia/cudaqx-dev:{0}-{1}', inputs.release-number, matrix.platform) }}
25+ runner : [
26+ { arch: arm64, gpu: a100 },
27+ { arch: amd64, gpu: v100 },
28+ ]
29+ runs-on : linux-${{ matrix.runner.arch }}-gpu-${{ matrix.runner.gpu }}-latest-1
30+ container :
31+ image : ${{ format('ghcr.io/nvidia/cudaqx-dev:{0}-{1}', inputs.release-number, matrix.runner.arch) }}
32+ env :
33+ NVIDIA_VISIBLE_DEVICES : ${{ env.NVIDIA_VISIBLE_DEVICES }}
2834 permissions : write-all
2935 steps :
3036 - name : Checkout repository
6470 gh release view -R ${{ inputs.assets_repo }} ${{ inputs.assets_tag }} >> $GITHUB_STEP_SUMMARY
6571 # Extract the decoder that needs to be embedded in the release
6672 mkdir -p tmp
67- unzip -d tmp installed_files-${{ matrix.platform }}.zip
73+ unzip -d tmp installed_files-${{ matrix.runner.arch }}.zip
6874 echo "QEC_EXTERNAL_DECODERS=$(pwd)/tmp/lib/decoder-plugins/libcudaq-qec-nv-qldpc-decoder.so" >> $GITHUB_ENV
6975 fi
7076 shell : bash
@@ -78,19 +84,19 @@ jobs:
7884 uses : ./.github/actions/build-lib
7985 with :
8086 lib : " all"
81- platform : ${{ matrix.platform }}
87+ platform : ${{ matrix.runner.arch }}
8288
8389 - name : Save build artifacts
8490 run : |
8591 cmake --build ${{ steps.build.outputs.build-dir }} --target zip_installed_files
8692 cd ${{ steps.build.outputs.build-dir }}
87- mv installed_files.zip installed_files-${{ matrix.platform }}.zip
93+ mv installed_files.zip installed_files-${{ matrix.runner.arch }}.zip
8894
8995 - name : Upload build artifacts
9096 uses : actions/upload-artifact@v4
9197 with :
92- name : installed_files-${{ matrix.platform }}
93- path : ${{ steps.build.outputs.build-dir }}/installed_files-${{ matrix.platform }}.zip
98+ name : installed_files-${{ matrix.runner.arch }}
99+ path : ${{ steps.build.outputs.build-dir }}/installed_files-${{ matrix.runner.arch }}.zip
94100
95101 # ========================================================================
96102 # Run tests
0 commit comments