|
66 | 66 | path: ./src/lima/lima-and-qemu.macos* |
67 | 67 | if-no-files-found: error |
68 | 68 |
|
| 69 | + - name: Upload dependency mapping ARM64 |
| 70 | + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 |
| 71 | + with: |
| 72 | + name: dep-version-mapping-aarch64 |
| 73 | + path: ./src/lima/dep-version-mapping-aarch64.json |
| 74 | + if-no-files-found: error |
| 75 | + |
69 | 76 | - name: Make and release source code of dependencies |
70 | 77 | run: make download-sources |
71 | 78 | - name: Upload MacOS build |
@@ -125,6 +132,13 @@ jobs: |
125 | 132 | path: ./src/lima/lima-and-qemu.macos* |
126 | 133 | if-no-files-found: error |
127 | 134 |
|
| 135 | + - name: Upload dependency mapping x86_64 |
| 136 | + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 |
| 137 | + with: |
| 138 | + name: dep-version-mapping-x86_64 |
| 139 | + path: ./src/lima/dep-version-mapping-x86_64.json |
| 140 | + if-no-files-found: error |
| 141 | + |
128 | 142 | macos-arm64-ventura-build: |
129 | 143 | runs-on: [self-hosted, macos, arm64, "13", release] |
130 | 144 | timeout-minutes: 60 |
@@ -185,6 +199,43 @@ jobs: |
185 | 199 | path: src/lima/limactl.ventura.x86_64.tar.gz |
186 | 200 | if-no-files-found: error |
187 | 201 |
|
| 202 | + upload-dependency-mappings: |
| 203 | + runs-on: ubuntu-latest |
| 204 | + timeout-minutes: 10 |
| 205 | + needs: |
| 206 | + - macos-x86-build |
| 207 | + - macos-arm64-build |
| 208 | + |
| 209 | + steps: |
| 210 | + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| 211 | + with: |
| 212 | + fetch-depth: 1 |
| 213 | + persist-credentials: false |
| 214 | + |
| 215 | + - name: configure aws credentials |
| 216 | + uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4.3.1 |
| 217 | + with: |
| 218 | + role-to-assume: ${{ secrets.DEPENDENCY_MAPPING_BUCKET_ROLE }} |
| 219 | + role-session-name: dependency-mapping-upload-session |
| 220 | + aws-region: ${{ secrets.DEPENDENCY_MAPPING_BUCKET_REGION }} |
| 221 | + |
| 222 | + - name: Download dependency mapping ARM64 |
| 223 | + uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 |
| 224 | + with: |
| 225 | + name: dep-version-mapping-aarch64 |
| 226 | + path: build |
| 227 | + |
| 228 | + - name: Download dependency mapping x86_64 |
| 229 | + uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 |
| 230 | + with: |
| 231 | + name: dep-version-mapping-x86_64 |
| 232 | + path: build |
| 233 | + |
| 234 | + - name: Upload dependency mappings to S3 |
| 235 | + run: | |
| 236 | + aws s3 cp ./build/dep-version-mapping-aarch64.json s3://${{ secrets.DEPENDENCY_MAPPING_BUCKET_NAME }}/aarch64/dep-version-mapping.json |
| 237 | + aws s3 cp ./build/dep-version-mapping-x86_64.json s3://${{ secrets.DEPENDENCY_MAPPING_BUCKET_NAME }}/x86-64/dep-version-mapping.json |
| 238 | +
|
188 | 239 | release: |
189 | 240 | runs-on: ubuntu-latest |
190 | 241 | timeout-minutes: 10 |
|
0 commit comments