Skip to content

Commit

Permalink
workflow updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
Micha Glave committed Jun 11, 2024
1 parent 4921d94 commit 05fb08c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 26 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,8 @@ jobs:
os: macos-12
- target: x86_64-pc-windows-msvc
os: windows-latest

# Targets using cross-compilation (upload-rust-binary-action
# detects that they need cross).

# TODO: fix musl so it statically links during release, see
# https://github.com/Wilfred/difftastic/issues/563
#
# - target: x86_64-unknown-linux-musl
# os: ubuntu-20.04
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
- target: aarch64-apple-darwin
Expand All @@ -56,16 +49,8 @@ jobs:
tar: unix
# (optional) On which platform to distribute the `.zip` file.
zip: windows
# (optional) Target triple, default is host triple.
target: ${{ matrix.target }}
archive: $bin-$target-$tag
env:
# (required)
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

push_crates_io:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: katyo/publish-crates@v1
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "planturl"
version = "0.4.2"
version = "0.4.3"
edition = "2021"
authors = ["Micha Glave <coding@migmedia.de"]
license = "Apache-2.0 OR MIT AND Zlib"
Expand Down Expand Up @@ -35,7 +35,7 @@ required-features = ["build-binary"]
strip = "symbols"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/{ version }/planturl-{ target }-{ version }.{ archive-format }"
pkg-url = "{ repo }/releases/download/v{ version }/planturl-{ target }-v{ version }.{ archive-format }"

[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"

0 comments on commit 05fb08c

Please sign in to comment.