Skip to content

Commit 2c3cf4c

Browse files
authored
chore(CD): bump dist to 0.30 (#35)
Enable `aarch64-pc-windows-msvc` in release artifacts
1 parent e76a49d commit 2c3cf4c

File tree

4 files changed

+22
-10
lines changed

4 files changed

+22
-10
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
build:
1414
strategy:
1515
matrix:
16-
toolchain: ["stable", "1.82", "beta", "nightly"]
16+
toolchain: ["stable", "1.82"]
1717
features: ["--features \"\"", "--all-features", "--no-default-features"]
1818
runs-on: ubuntu-latest
1919
steps:
@@ -22,14 +22,14 @@ jobs:
2222
with:
2323
toolchain: ${{ matrix.toolchain }}
2424
- uses: Swatinem/rust-cache@v2
25-
- run: cargo build ${{ matrix.features }}
25+
- run: CARGO_PROFILE_DEV_CODEGEN_UNITS=8 cargo build ${{ matrix.features }}
2626
test:
2727
runs-on: ubuntu-latest
2828
steps:
2929
- uses: actions/checkout@v4
3030
- uses: dtolnay/rust-toolchain@stable
3131
- uses: Swatinem/rust-cache@v2
32-
- run: cargo test --all-features
32+
- run: CARGO_PROFILE_TEST_CODEGEN_UNITS=8 cargo test --all-features
3333
fmt:
3434
runs-on: ubuntu-latest
3535
steps:

.github/workflows/release.yml

Lines changed: 7 additions & 2 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
@@ -58,12 +58,13 @@ jobs:
5858
steps:
5959
- uses: actions/checkout@v4
6060
with:
61+
persist-credentials: false
6162
submodules: recursive
6263
- name: Install dist
6364
# we specify bash to get pipefail; it guards against the `curl` command
6465
# failing. otherwise `sh` won't catch that `curl` returned non-0
6566
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"
67+
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.30.0/cargo-dist-installer.sh | sh"
6768
- name: Cache dist
6869
uses: actions/upload-artifact@v4
6970
with:
@@ -117,6 +118,7 @@ jobs:
117118
git config --global core.longpaths true
118119
- uses: actions/checkout@v4
119120
with:
121+
persist-credentials: false
120122
submodules: recursive
121123
- name: Install Rust non-interactively if not already installed
122124
if: ${{ matrix.container }}
@@ -175,6 +177,7 @@ jobs:
175177
steps:
176178
- uses: actions/checkout@v4
177179
with:
180+
persist-credentials: false
178181
submodules: recursive
179182
- name: Install cached dist
180183
uses: actions/download-artifact@v4
@@ -224,6 +227,7 @@ jobs:
224227
steps:
225228
- uses: actions/checkout@v4
226229
with:
230+
persist-credentials: false
227231
submodules: recursive
228232
- name: Install cached dist
229233
uses: actions/download-artifact@v4
@@ -288,4 +292,5 @@ jobs:
288292
steps:
289293
- uses: actions/checkout@v4
290294
with:
295+
persist-credentials: false
291296
submodules: recursive

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
- Add `aarch64-pc-windows-msvc` target to release artifacts
12+
1013
## [0.7.5] - 2025-07-05
1114

1215
### Changed

dist-workspace.toml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,27 @@ 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.30.0"
88
# CI backends to support
99
ci = "github"
1010
# The installers to generate for each app
1111
installers = ["shell", "powershell"]
1212
# Target platforms to build apps for (Rust target-triple syntax)
13-
targets = ["aarch64-apple-darwin", "aarch64-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc"]
14-
# , "aarch64-pc-windows-msvc"
13+
targets = ["aarch64-apple-darwin", "aarch64-unknown-linux-gnu", "aarch64-pc-windows-msvc", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc"]
1514
# Whether to pass --all-features to cargo build
1615
all-features = true
1716
# Path that installers should place binaries in
1817
install-path = "CARGO_HOME"
1918
# Whether to install an updater program
2019
install-updater = false
20+
# Which actions to run on pull requests
21+
pr-run-mode = "plan"
2122

2223
[dist.github-custom-runners]
2324
global = "ubuntu-latest"
2425

25-
[dist.github-custom-runners.aarch64-unknown-linux-gnu]
26-
runner = "ubuntu-latest"
26+
# [dist.github-custom-runners.aarch64-unknown-linux-gnu]
27+
# runner = "ubuntu-latest"
2728

2829
[dist.github-custom-runners.aarch64-pc-windows-msvc]
2930
runner = "ubuntu-latest"
@@ -34,3 +35,6 @@ container = { image = "quay.io/pypa/manylinux_2_28_x86_64", host = "x86_64-unkno
3435

3536
[dist.github-custom-runners.x86_64-pc-windows-msvc]
3637
runner = "windows-latest"
38+
39+
[dist.dependencies.apt]
40+
llvm-dev = { version = "*", targets = ["aarch64-pc-windows-msvc"] }

0 commit comments

Comments
 (0)