Skip to content

Commit a03df2e

Browse files
committed
ci: more cargo-dist changes
1 parent 41d20af commit a03df2e

File tree

4 files changed

+37
-8
lines changed

4 files changed

+37
-8
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was autogenerated by dist: https://opensource.axo.dev/cargo-dist/
1+
# This file was autogenerated by dist: https://axodotdev.github.io/cargo-dist
22
#
33
# Copyright 2022-2024, axodotdev
44
# SPDX-License-Identifier: MIT or Apache-2.0
@@ -47,7 +47,7 @@ on:
4747
jobs:
4848
# Run 'dist plan' (or host) to determine what tasks we need to do
4949
plan:
50-
runs-on: "ubuntu-20.04"
50+
runs-on: "ubuntu-22.04"
5151
outputs:
5252
val: ${{ steps.plan.outputs.manifest }}
5353
tag: ${{ !github.event.pull_request && github.ref_name || '' }}
@@ -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.28.0/cargo-dist-installer.sh | sh"
66+
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.28.1/cargo-dist-installer.sh | sh"
6767
- name: Cache dist
6868
uses: actions/upload-artifact@v4
6969
with:
@@ -168,7 +168,7 @@ jobs:
168168
needs:
169169
- plan
170170
- build-local-artifacts
171-
runs-on: "ubuntu-20.04"
171+
runs-on: "ubuntu-22.04"
172172
env:
173173
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
174174
BUILD_MANIFEST_NAME: target/distrib/global-dist-manifest.json
@@ -218,7 +218,7 @@ jobs:
218218
if: ${{ always() && needs.plan.outputs.publishing == 'true' && (needs.build-global-artifacts.result == 'skipped' || needs.build-global-artifacts.result == 'success') && (needs.build-local-artifacts.result == 'skipped' || needs.build-local-artifacts.result == 'success') }}
219219
env:
220220
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
221-
runs-on: "ubuntu-20.04"
221+
runs-on: "ubuntu-22.04"
222222
outputs:
223223
val: ${{ steps.host.outputs.manifest }}
224224
steps:
@@ -282,7 +282,7 @@ jobs:
282282
# still allowing individual publish jobs to skip themselves (for prereleases).
283283
# "host" however must run to completion, no skipping allowed!
284284
if: ${{ always() && needs.host.result == 'success' }}
285-
runs-on: "ubuntu-20.04"
285+
runs-on: "ubuntu-22.04"
286286
env:
287287
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
288288
steps:

dist-workspace.toml

Lines changed: 1 addition & 1 deletion
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.28.0"
7+
cargo-dist-version = "0.28.1"
88
# CI backends to support
99
ci = "github"
1010
# Target platforms to build apps for (Rust target-triple syntax)

flake.lock

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
url = "github:rustsec/advisory-db";
1616
flake = false;
1717
};
18+
cargo-dist-src = {
19+
url = "github:axodotdev/cargo-dist/v0.28.1";
20+
flake = false;
21+
};
1822
};
1923

2024
outputs = inputs @ {
@@ -24,6 +28,7 @@
2428
flake-parts,
2529
rust-overlay,
2630
advisory-db,
31+
cargo-dist-src,
2732
...
2833
}:
2934
flake-parts.lib.mkFlake {inherit inputs;} {
@@ -126,7 +131,13 @@
126131
[
127132
git-cliff
128133
beancount
129-
cargo-dist
134+
(pkgs.cargo-dist.overrideAttrs (oldAttrs: {
135+
version = "0.28.1";
136+
src = cargo-dist-src;
137+
cargoDeps = pkgs.rustPlatform.importCargoLock {
138+
lockFile = "${cargo-dist-src}/Cargo.lock";
139+
};
140+
}))
130141
(rust-bin.fromRustupToolchainFile ./rust-toolchain.toml)
131142
]
132143
++ lib.optionals stdenv.isLinux [systemd];

0 commit comments

Comments
 (0)