chore: updated workflows
c29b4938
2 file(s) · +14 −14
| 64 | 64 | # we specify bash to get pipefail; it guards against the `curl` command |
|
| 65 | 65 | # failing. otherwise `sh` won't catch that `curl` returned non-0 |
|
| 66 | 66 | shell: bash |
|
| 67 | - | run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.32.0/cargo-dist-installer.sh | sh" |
|
| 67 | + | run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.31.0/cargo-dist-installer.sh | sh" |
|
| 68 | 68 | - name: Cache dist |
|
| 69 | - | uses: actions/upload-artifact@v7 |
|
| 69 | + | uses: actions/upload-artifact@v6 |
|
| 70 | 70 | with: |
|
| 71 | 71 | name: cargo-dist-cache |
|
| 72 | 72 | path: ~/.cargo/bin/dist |
|
| 82 | 82 | cat plan-dist-manifest.json |
|
| 83 | 83 | echo "manifest=$(jq -c "." plan-dist-manifest.json)" >> "$GITHUB_OUTPUT" |
|
| 84 | 84 | - name: "Upload dist-manifest.json" |
|
| 85 | - | uses: actions/upload-artifact@v7 |
|
| 85 | + | uses: actions/upload-artifact@v6 |
|
| 86 | 86 | with: |
|
| 87 | 87 | name: artifacts-plan-dist-manifest |
|
| 88 | 88 | path: plan-dist-manifest.json |
|
| 131 | 131 | run: ${{ matrix.install_dist.run }} |
|
| 132 | 132 | # Get the dist-manifest |
|
| 133 | 133 | - name: Fetch local artifacts |
|
| 134 | - | uses: actions/download-artifact@v8 |
|
| 134 | + | uses: actions/download-artifact@v7 |
|
| 135 | 135 | with: |
|
| 136 | 136 | pattern: artifacts-* |
|
| 137 | 137 | path: target/distrib/ |
|
| 158 | 158 | ||
| 159 | 159 | cp dist-manifest.json "$BUILD_MANIFEST_NAME" |
|
| 160 | 160 | - name: "Upload artifacts" |
|
| 161 | - | uses: actions/upload-artifact@v7 |
|
| 161 | + | uses: actions/upload-artifact@v6 |
|
| 162 | 162 | with: |
|
| 163 | 163 | name: artifacts-build-local-${{ join(matrix.targets, '_') }} |
|
| 164 | 164 | path: | |
|
| 180 | 180 | persist-credentials: false |
|
| 181 | 181 | submodules: recursive |
|
| 182 | 182 | - name: Install cached dist |
|
| 183 | - | uses: actions/download-artifact@v8 |
|
| 183 | + | uses: actions/download-artifact@v7 |
|
| 184 | 184 | with: |
|
| 185 | 185 | name: cargo-dist-cache |
|
| 186 | 186 | path: ~/.cargo/bin/ |
|
| 187 | 187 | - run: chmod +x ~/.cargo/bin/dist |
|
| 188 | 188 | # Get all the local artifacts for the global tasks to use (for e.g. checksums) |
|
| 189 | 189 | - name: Fetch local artifacts |
|
| 190 | - | uses: actions/download-artifact@v8 |
|
| 190 | + | uses: actions/download-artifact@v7 |
|
| 191 | 191 | with: |
|
| 192 | 192 | pattern: artifacts-* |
|
| 193 | 193 | path: target/distrib/ |
|
| 205 | 205 | ||
| 206 | 206 | cp dist-manifest.json "$BUILD_MANIFEST_NAME" |
|
| 207 | 207 | - name: "Upload artifacts" |
|
| 208 | - | uses: actions/upload-artifact@v7 |
|
| 208 | + | uses: actions/upload-artifact@v6 |
|
| 209 | 209 | with: |
|
| 210 | 210 | name: artifacts-build-global |
|
| 211 | 211 | path: | |
|
| 230 | 230 | persist-credentials: false |
|
| 231 | 231 | submodules: recursive |
|
| 232 | 232 | - name: Install cached dist |
|
| 233 | - | uses: actions/download-artifact@v8 |
|
| 233 | + | uses: actions/download-artifact@v7 |
|
| 234 | 234 | with: |
|
| 235 | 235 | name: cargo-dist-cache |
|
| 236 | 236 | path: ~/.cargo/bin/ |
|
| 237 | 237 | - run: chmod +x ~/.cargo/bin/dist |
|
| 238 | 238 | # Fetch artifacts from scratch-storage |
|
| 239 | 239 | - name: Fetch artifacts |
|
| 240 | - | uses: actions/download-artifact@v8 |
|
| 240 | + | uses: actions/download-artifact@v7 |
|
| 241 | 241 | with: |
|
| 242 | 242 | pattern: artifacts-* |
|
| 243 | 243 | path: target/distrib/ |
|
| 250 | 250 | cat dist-manifest.json |
|
| 251 | 251 | echo "manifest=$(jq -c "." dist-manifest.json)" >> "$GITHUB_OUTPUT" |
|
| 252 | 252 | - name: "Upload dist-manifest.json" |
|
| 253 | - | uses: actions/upload-artifact@v7 |
|
| 253 | + | uses: actions/upload-artifact@v6 |
|
| 254 | 254 | with: |
|
| 255 | 255 | # Overwrite the previous copy |
|
| 256 | 256 | name: artifacts-dist-manifest |
|
| 257 | 257 | path: dist-manifest.json |
|
| 258 | 258 | # Create a GitHub Release while uploading all files to it |
|
| 259 | 259 | - name: "Download GitHub Artifacts" |
|
| 260 | - | uses: actions/download-artifact@v8 |
|
| 260 | + | uses: actions/download-artifact@v7 |
|
| 261 | 261 | with: |
|
| 262 | 262 | pattern: artifacts-* |
|
| 263 | 263 | path: artifacts |
|
| 297 | 297 | token: ${{ secrets.HOMEBREW_TAP_TOKEN }} |
|
| 298 | 298 | # So we have access to the formula |
|
| 299 | 299 | - name: Fetch homebrew formulae |
|
| 300 | - | uses: actions/download-artifact@v8 |
|
| 300 | + | uses: actions/download-artifact@v7 |
|
| 301 | 301 | with: |
|
| 302 | 302 | pattern: artifacts-* |
|
| 303 | 303 | path: Formula/ |
|
| 4 | 4 | # Config for 'dist' |
|
| 5 | 5 | [dist] |
|
| 6 | 6 | # The preferred dist version to use in CI (Cargo.toml SemVer syntax) |
|
| 7 | - | cargo-dist-version = "0.32.0" |
|
| 7 | + | cargo-dist-version = "0.31.0" |
|
| 8 | 8 | # CI backends to support |
|
| 9 | 9 | ci = "github" |
|
| 10 | 10 | # The installers to generate for each app |