Skip to content

Commit 76fff5e

Browse files
committed
ci: Revert cargo-dist update
apparently `cargo dist init` and `dist init` produce different results.
1 parent d02d556 commit 76fff5e

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

.github/workflows/release.yml

+24-24
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# This file was autogenerated by dist: https://opensource.axo.dev/cargo-dist/
1+
# This file was autogenerated by cargo-dist: https://opensource.axo.dev/cargo-dist/
22
#
33
# Copyright 2022-2024, axodotdev
44
# SPDX-License-Identifier: MIT or Apache-2.0
55
#
66
# CI that:
77
#
88
# * checks for a Git Tag that looks like a release
9-
# * builds artifacts with dist (archives, installers, hashes)
9+
# * builds artifacts with cargo-dist (archives, installers, hashes)
1010
# * uploads those artifacts to temporary workflow zip
1111
# * on success, uploads the artifacts to a GitHub Release
1212
#
@@ -24,10 +24,10 @@ permissions:
2424
# must be a Cargo-style SemVer Version (must have at least major.minor.patch).
2525
#
2626
# If PACKAGE_NAME is specified, then the announcement will be for that
27-
# package (erroring out if it doesn't have the given version or isn't dist-able).
27+
# package (erroring out if it doesn't have the given version or isn't cargo-dist-able).
2828
#
2929
# If PACKAGE_NAME isn't specified, then the announcement will be for all
30-
# (dist-able) packages in the workspace with that version (this mode is
30+
# (cargo-dist-able) packages in the workspace with that version (this mode is
3131
# intended for workspaces with only one dist-able package, or with all dist-able
3232
# packages versioned/released in lockstep).
3333
#
@@ -45,7 +45,7 @@ on:
4545
- '**[0-9]+.[0-9]+.[0-9]+*'
4646

4747
jobs:
48-
# Run 'dist plan' (or host) to determine what tasks we need to do
48+
# Run 'cargo dist plan' (or host) to determine what tasks we need to do
4949
plan:
5050
runs-on: "ubuntu-20.04"
5151
outputs:
@@ -59,25 +59,25 @@ jobs:
5959
- uses: actions/checkout@v4
6060
with:
6161
submodules: recursive
62-
- name: Install dist
62+
- name: Install cargo-dist
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"
67-
- name: Cache dist
66+
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.22.1/cargo-dist-installer.sh | sh"
67+
- name: Cache cargo-dist
6868
uses: actions/upload-artifact@v4
6969
with:
7070
name: cargo-dist-cache
71-
path: ~/.cargo/bin/dist
71+
path: ~/.cargo/bin/cargo-dist
7272
# sure would be cool if github gave us proper conditionals...
7373
# so here's a doubly-nested ternary-via-truthiness to try to provide the best possible
7474
# functionality based on whether this is a pull_request, and whether it's from a fork.
7575
# (PRs run on the *source* but secrets are usually on the *target* -- that's *good*
7676
# but also really annoying to build CI around when it needs secrets to work right.)
7777
- id: plan
7878
run: |
79-
dist ${{ (!github.event.pull_request && format('host --steps=create --tag={0}', github.ref_name)) || 'plan' }} --output-format=json > plan-dist-manifest.json
80-
echo "dist ran successfully"
79+
cargo dist ${{ (!github.event.pull_request && format('host --steps=create --tag={0}', github.ref_name)) || 'plan' }} --output-format=json > plan-dist-manifest.json
80+
echo "cargo dist ran successfully"
8181
cat plan-dist-manifest.json
8282
echo "manifest=$(jq -c "." plan-dist-manifest.json)" >> "$GITHUB_OUTPUT"
8383
- name: "Upload dist-manifest.json"
@@ -95,12 +95,12 @@ jobs:
9595
if: ${{ fromJson(needs.plan.outputs.val).ci.github.artifacts_matrix.include != null && (needs.plan.outputs.publishing == 'true' || fromJson(needs.plan.outputs.val).ci.github.pr_run_mode == 'upload') }}
9696
strategy:
9797
fail-fast: false
98-
# Target platforms/runners are computed by dist in create-release.
98+
# Target platforms/runners are computed by cargo-dist in create-release.
9999
# Each member of the matrix has the following arguments:
100100
#
101101
# - runner: the github runner
102-
# - dist-args: cli flags to pass to dist
103-
# - install-dist: expression to run to install dist on the runner
102+
# - dist-args: cli flags to pass to cargo dist
103+
# - install-dist: expression to run to install cargo-dist on the runner
104104
#
105105
# Typically there will be:
106106
# - 1 "global" task that builds universal installers
@@ -117,7 +117,7 @@ jobs:
117117
- uses: actions/checkout@v4
118118
with:
119119
submodules: recursive
120-
- name: Install dist
120+
- name: Install cargo-dist
121121
run: ${{ matrix.install_dist }}
122122
# Get the dist-manifest
123123
- name: Fetch local artifacts
@@ -132,8 +132,8 @@ jobs:
132132
- name: Build artifacts
133133
run: |
134134
# Actually do builds and make zips and whatnot
135-
dist build ${{ needs.plan.outputs.tag-flag }} --print=linkage --output-format=json ${{ matrix.dist_args }} > dist-manifest.json
136-
echo "dist ran successfully"
135+
cargo dist build ${{ needs.plan.outputs.tag-flag }} --print=linkage --output-format=json ${{ matrix.dist_args }} > dist-manifest.json
136+
echo "cargo dist ran successfully"
137137
- id: cargo-dist
138138
name: Post-build
139139
# We force bash here just because github makes it really hard to get values up
@@ -168,12 +168,12 @@ jobs:
168168
- uses: actions/checkout@v4
169169
with:
170170
submodules: recursive
171-
- name: Install cached dist
171+
- name: Install cached cargo-dist
172172
uses: actions/download-artifact@v4
173173
with:
174174
name: cargo-dist-cache
175175
path: ~/.cargo/bin/
176-
- run: chmod +x ~/.cargo/bin/dist
176+
- run: chmod +x ~/.cargo/bin/cargo-dist
177177
# Get all the local artifacts for the global tasks to use (for e.g. checksums)
178178
- name: Fetch local artifacts
179179
uses: actions/download-artifact@v4
@@ -184,8 +184,8 @@ jobs:
184184
- id: cargo-dist
185185
shell: bash
186186
run: |
187-
dist build ${{ needs.plan.outputs.tag-flag }} --output-format=json "--artifacts=global" > dist-manifest.json
188-
echo "dist ran successfully"
187+
cargo dist build ${{ needs.plan.outputs.tag-flag }} --output-format=json "--artifacts=global" > dist-manifest.json
188+
echo "cargo dist ran successfully"
189189
190190
# Parse out what we just built and upload it to scratch storage
191191
echo "paths<<EOF" >> "$GITHUB_OUTPUT"
@@ -217,12 +217,12 @@ jobs:
217217
- uses: actions/checkout@v4
218218
with:
219219
submodules: recursive
220-
- name: Install cached dist
220+
- name: Install cached cargo-dist
221221
uses: actions/download-artifact@v4
222222
with:
223223
name: cargo-dist-cache
224224
path: ~/.cargo/bin/
225-
- run: chmod +x ~/.cargo/bin/dist
225+
- run: chmod +x ~/.cargo/bin/cargo-dist
226226
# Fetch artifacts from scratch-storage
227227
- name: Fetch artifacts
228228
uses: actions/download-artifact@v4
@@ -233,7 +233,7 @@ jobs:
233233
- id: host
234234
shell: bash
235235
run: |
236-
dist host ${{ needs.plan.outputs.tag-flag }} --steps=upload --steps=release --output-format=json > dist-manifest.json
236+
cargo dist host ${{ needs.plan.outputs.tag-flag }} --steps=upload --steps=release --output-format=json > dist-manifest.json
237237
echo "artifacts uploaded and released successfully"
238238
cat dist-manifest.json
239239
echo "manifest=$(jq -c "." dist-manifest.json)" >> "$GITHUB_OUTPUT"

dist-workspace.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[workspace]
22
members = ["cargo:."]
33

4-
# Config for 'dist'
4+
# Config for 'cargo dist'
55
[dist]
6-
# The preferred dist version to use in CI (Cargo.toml SemVer syntax)
7-
cargo-dist-version = "0.25.1"
6+
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax)
7+
cargo-dist-version = "0.22.1"
88
# CI backends to support
99
ci = "github"
1010
# The installers to generate for each app

0 commit comments

Comments
 (0)