Skip to content

Commit 024e875

Browse files
committed
Bump dist in CI
1 parent ae55a9a commit 024e875

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/release.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
# we specify bash to get pipefail; it guards against the `curl` command
6464
# failing. otherwise `sh` won't catch that `curl` returned non-0
6565
shell: bash
66-
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.25.1/cargo-dist-installer.sh | sh"
66+
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.28.0/cargo-dist-installer.sh | sh"
6767
- name: Cache dist
6868
uses: actions/upload-artifact@v4
6969
with:
@@ -107,6 +107,7 @@ jobs:
107107
# - N "local" tasks that build each platform's binaries and platform-specific installers
108108
matrix: ${{ fromJson(needs.plan.outputs.val).ci.github.artifacts_matrix }}
109109
runs-on: ${{ matrix.runner }}
110+
container: ${{ matrix.container && matrix.container.image || null }}
110111
env:
111112
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
112113
BUILD_MANIFEST_NAME: target/distrib/${{ join(matrix.targets, '-') }}-dist-manifest.json
@@ -117,8 +118,15 @@ jobs:
117118
- uses: actions/checkout@v4
118119
with:
119120
submodules: recursive
121+
- name: Install Rust non-interactively if not already installed
122+
if: ${{ matrix.container }}
123+
run: |
124+
if ! command -v cargo > /dev/null 2>&1; then
125+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
126+
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
127+
fi
120128
- name: Install dist
121-
run: ${{ matrix.install_dist }}
129+
run: ${{ matrix.install_dist.run }}
122130
# Get the dist-manifest
123131
- name: Fetch local artifacts
124132
uses: actions/download-artifact@v4
@@ -143,7 +151,7 @@ jobs:
143151
run: |
144152
# Parse out what we just built and upload it to scratch storage
145153
echo "paths<<EOF" >> "$GITHUB_OUTPUT"
146-
jq --raw-output ".upload_files[]" dist-manifest.json >> "$GITHUB_OUTPUT"
154+
dist print-upload-files-from-manifest --manifest dist-manifest.json >> "$GITHUB_OUTPUT"
147155
echo "EOF" >> "$GITHUB_OUTPUT"
148156
149157
cp dist-manifest.json "$BUILD_MANIFEST_NAME"

dist-workspace.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ members = ["cargo:."]
44
# Config for 'dist'
55
[dist]
66
# The preferred dist version to use in CI (Cargo.toml SemVer syntax)
7-
cargo-dist-version = "0.25.1"
7+
cargo-dist-version = "0.28.0"
88
# CI backends to support
99
ci = "github"
1010
# The installers to generate for each app

0 commit comments

Comments
 (0)