diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b248b87d..3605951e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,13 @@ +# Copyright 2022-2023, axodotdev +# SPDX-License-Identifier: MIT or Apache-2.0 +# # CI that: # # * checks for a Git Tag that looks like a release -# * creates a Github Release™ and fills in its text -# * builds artifacts with cargo-dist (executable-zips, installers) +# * creates a draft Github Release™ and fills in its text +# * builds artifacts with cargo-dist (executable-zips, installers, hashes) # * uploads those artifacts to the Github Release™ +# * undrafts the Github Release™ on success # # Note that the Github Release™ will be created before the artifacts, # so there will be a few minutes where the release has no artifacts @@ -50,13 +54,13 @@ jobs: include: - os: macos-11 dist-args: --artifacts=local --target=aarch64-apple-darwin --target=x86_64-apple-darwin - install-dist: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.0.4/cargo-dist-v0.0.4-installer.sh | sh - - os: ubuntu-20.04 + install-dist: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.2.0/cargo-dist-v0.2.0-installer.sh | sh + - os: ubuntu-22.04 dist-args: --artifacts=local --target=x86_64-unknown-linux-gnu - install-dist: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.0.4/cargo-dist-v0.0.4-installer.sh | sh + install-dist: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.2.0/cargo-dist-v0.2.0-installer.sh | sh - os: windows-2019 dist-args: --artifacts=local --target=x86_64-pc-windows-msvc - install-dist: irm https://github.com/axodotdev/cargo-dist/releases/download/v0.0.4/cargo-dist-v0.0.4-installer.ps1 | iex + install-dist: irm https://github.com/axodotdev/cargo-dist/releases/download/v0.2.0/cargo-dist-v0.2.0-installer.ps1 | iex runs-on: ${{ matrix.os }} env: @@ -64,7 +68,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Install Rust - run: rustup update 1.68.0 --no-self-update && rustup default 1.68.0 + run: rustup update 1.72.0 --no-self-update && rustup default 1.72.0 - name: Use rust cache uses: Swatinem/rust-cache@v2 with: diff --git a/Cargo.toml b/Cargo.toml index 47236623..842ff18a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,16 +1,19 @@ [workspace] members = ["server"] resolver = "2" + # Config for 'cargo dist' [workspace.metadata.dist] # The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax) -cargo-dist-version = "0.0.4" +cargo-dist-version = "0.2.0" # The preferred Rust toolchain to use in CI (rustup toolchain syntax) rust-toolchain-version = "1.72.0" # CI backends to support (see 'cargo dist generate-ci') ci = ["github"] # Target platforms to build apps for (Rust target-triple syntax) targets = ["x86_64-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-pc-windows-msvc", "aarch64-apple-darwin"] +# The installers to generate for each app +installers = [] # generated by 'cargo dist init' [profile.dist]