Skip to content

Commit

Permalink
Use latest cargo-dist in CI release.yml (#2053)
Browse files Browse the repository at this point in the history
`cargo-dist` v0.0.2 is too old and its `dist-manifest.json` is deprecated.

Hard-coding specific version of `cargo-dist` is also not good enough, so I use [taiki-e/install-action](https://github.com/taiki-e/install-action) which uses `cargo-binstall` to install latest stable version of `cargo-dist`.
  • Loading branch information
NobodyXu authored Sep 26, 2023
1 parent 8b021a0 commit 8f22cba
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,8 @@ jobs:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
install-dist: curl --proto '=https' --tlsv1.2 -L -sSf https://github.com/axodotdev/cargo-dist/releases/download/v0.0.2/installer.sh | sh
- target: x86_64-apple-darwin
os: macos-latest
install-dist: curl --proto '=https' --tlsv1.2 -L -sSf https://github.com/axodotdev/cargo-dist/releases/download/v0.0.2/installer.sh | sh
runs-on: ${{ matrix.os }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -91,7 +89,9 @@ jobs:
run: cargo install wasm-gc wasm-snip
- uses: actions/checkout@v3
- name: Install cargo-dist
run: ${{ matrix.install-dist }}
uses: taiki-e/install-action@v2
with:
tool: cargo-dist
- name: Run cargo-dist
run: |
# make zips and whatnot
Expand Down Expand Up @@ -143,7 +143,9 @@ jobs:
- name: Install Rust
run: rustup update nightly && rustup default nightly
- name: Install cargo-dist
run: curl --proto '=https' --tlsv1.2 -L -sSf https://github.com/axodotdev/cargo-dist/releases/download/v0.0.2/installer.sh | sh
uses: taiki-e/install-action@v2
with:
tool: cargo-dist
- name: Run cargo-dist manifest
run: |
# Generate a manifest describing everything
Expand Down Expand Up @@ -189,4 +191,4 @@ jobs:
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages
folder: target/html
folder: target/html

0 comments on commit 8f22cba

Please sign in to comment.