diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9605763..ab0ebf4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: build: strategy: matrix: - toolchain: ["stable", "1.82", "beta", "nightly"] + toolchain: ["stable", "1.82"] features: ["--features \"\"", "--all-features", "--no-default-features"] runs-on: ubuntu-latest steps: @@ -22,14 +22,14 @@ jobs: with: toolchain: ${{ matrix.toolchain }} - uses: Swatinem/rust-cache@v2 - - run: cargo build ${{ matrix.features }} + - run: CARGO_PROFILE_DEV_CODEGEN_UNITS=8 cargo build ${{ matrix.features }} test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 - - run: cargo test --all-features + - run: CARGO_PROFILE_TEST_CODEGEN_UNITS=8 cargo test --all-features fmt: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3ae24e0..78f058d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -# This file was autogenerated by dist: https://opensource.axo.dev/cargo-dist/ +# This file was autogenerated by dist: https://axodotdev.github.io/cargo-dist # # Copyright 2022-2024, axodotdev # SPDX-License-Identifier: MIT or Apache-2.0 @@ -58,12 +58,13 @@ jobs: steps: - uses: actions/checkout@v4 with: + persist-credentials: false submodules: recursive - name: Install dist # we specify bash to get pipefail; it guards against the `curl` command # failing. otherwise `sh` won't catch that `curl` returned non-0 shell: bash - run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.28.0/cargo-dist-installer.sh | sh" + run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.30.0/cargo-dist-installer.sh | sh" - name: Cache dist uses: actions/upload-artifact@v4 with: @@ -117,6 +118,7 @@ jobs: git config --global core.longpaths true - uses: actions/checkout@v4 with: + persist-credentials: false submodules: recursive - name: Install Rust non-interactively if not already installed if: ${{ matrix.container }} @@ -175,6 +177,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + persist-credentials: false submodules: recursive - name: Install cached dist uses: actions/download-artifact@v4 @@ -224,6 +227,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + persist-credentials: false submodules: recursive - name: Install cached dist uses: actions/download-artifact@v4 @@ -288,4 +292,5 @@ jobs: steps: - uses: actions/checkout@v4 with: + persist-credentials: false submodules: recursive diff --git a/CHANGELOG.md b/CHANGELOG.md index b1ecd3c..46698a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added +- Add `aarch64-pc-windows-msvc` target to release artifacts + ## [0.7.5] - 2025-07-05 ### Changed diff --git a/dist-workspace.toml b/dist-workspace.toml index 2b4f639..92937ec 100644 --- a/dist-workspace.toml +++ b/dist-workspace.toml @@ -4,26 +4,27 @@ members = ["cargo:."] # Config for 'dist' [dist] # The preferred dist version to use in CI (Cargo.toml SemVer syntax) -cargo-dist-version = "0.28.0" +cargo-dist-version = "0.30.0" # CI backends to support ci = "github" # The installers to generate for each app installers = ["shell", "powershell"] # Target platforms to build apps for (Rust target-triple syntax) -targets = ["aarch64-apple-darwin", "aarch64-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc"] -# , "aarch64-pc-windows-msvc" +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"] # Whether to pass --all-features to cargo build all-features = true # Path that installers should place binaries in install-path = "CARGO_HOME" # Whether to install an updater program install-updater = false +# Which actions to run on pull requests +pr-run-mode = "plan" [dist.github-custom-runners] global = "ubuntu-latest" -[dist.github-custom-runners.aarch64-unknown-linux-gnu] -runner = "ubuntu-latest" +# [dist.github-custom-runners.aarch64-unknown-linux-gnu] +# runner = "ubuntu-latest" [dist.github-custom-runners.aarch64-pc-windows-msvc] runner = "ubuntu-latest" @@ -34,3 +35,6 @@ container = { image = "quay.io/pypa/manylinux_2_28_x86_64", host = "x86_64-unkno [dist.github-custom-runners.x86_64-pc-windows-msvc] runner = "windows-latest" + +[dist.dependencies.apt] +llvm-dev = { version = "*", targets = ["aarch64-pc-windows-msvc"] }