mirror of https://github.com/encounter/nod-rs.git
Use workspace keys in Cargo.toml
This commit is contained in:
parent
d2b8135cdb
commit
6f3052e05d
|
@ -11,6 +11,7 @@ on:
|
||||||
env:
|
env:
|
||||||
BUILD_PROFILE: release-lto
|
BUILD_PROFILE: release-lto
|
||||||
CARGO_TARGET_DIR: target
|
CARGO_TARGET_DIR: target
|
||||||
|
CARGO_INCREMENTAL: 0
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
|
@ -18,7 +19,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
toolchain: [ stable, 1.73.0, nightly ]
|
toolchain: [ stable, 1.74.0, nightly ]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
env:
|
env:
|
||||||
RUSTFLAGS: -D warnings
|
RUSTFLAGS: -D warnings
|
||||||
|
@ -179,14 +180,12 @@ jobs:
|
||||||
set -eou pipefail
|
set -eou pipefail
|
||||||
tag='${{github.ref}}'
|
tag='${{github.ref}}'
|
||||||
tag="${tag#refs/tags/}"
|
tag="${tag#refs/tags/}"
|
||||||
for file in */Cargo.toml; do
|
version=$(grep '^version' Cargo.toml | head -1 | awk -F' = ' '{print $2}' | tr -d '"')
|
||||||
version=$(grep '^version' $file | head -1 | awk -F' = ' '{print $2}' | tr -d '"')
|
version="v$version"
|
||||||
version="v$version"
|
if [ "$tag" != "$version" ]; then
|
||||||
if [ "$tag" != "$version" ]; then
|
echo "::error::Git tag doesn't match the Cargo version! ($tag != $version)"
|
||||||
echo "::error::Git tag doesn't match the Cargo version! ($tag != $version)"
|
exit 1
|
||||||
exit 1
|
fi
|
||||||
fi
|
|
||||||
done
|
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
@ -217,3 +216,5 @@ jobs:
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: out/*
|
files: out/*
|
||||||
|
draft: true
|
||||||
|
generate_release_notes: true
|
||||||
|
|
|
@ -428,7 +428,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "nod"
|
name = "nod"
|
||||||
version = "1.2.1"
|
version = "1.3.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"adler",
|
"adler",
|
||||||
"aes",
|
"aes",
|
||||||
|
@ -451,7 +451,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "nodtool"
|
name = "nodtool"
|
||||||
version = "1.2.1"
|
version = "1.3.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"argp",
|
"argp",
|
||||||
"base16ct",
|
"base16ct",
|
||||||
|
|
10
Cargo.toml
10
Cargo.toml
|
@ -6,3 +6,13 @@ resolver = "2"
|
||||||
inherits = "release"
|
inherits = "release"
|
||||||
lto = "fat"
|
lto = "fat"
|
||||||
strip = "debuginfo"
|
strip = "debuginfo"
|
||||||
|
codegen-units = 1
|
||||||
|
|
||||||
|
[workspace.package]
|
||||||
|
version = "1.3.0"
|
||||||
|
edition = "2021"
|
||||||
|
rust-version = "1.74"
|
||||||
|
authors = ["Luke Street <luke@street.dev>"]
|
||||||
|
license = "MIT OR Apache-2.0"
|
||||||
|
repository = "https://github.com/encounter/nod-rs"
|
||||||
|
keywords = ["gamecube", "wii", "iso", "wbfs", "rvz"]
|
||||||
|
|
|
@ -14,6 +14,7 @@ Originally based on the C++ library [nod](https://github.com/AxioDL/nod),
|
||||||
but does not currently support authoring.
|
but does not currently support authoring.
|
||||||
|
|
||||||
Currently supported file formats:
|
Currently supported file formats:
|
||||||
|
|
||||||
- ISO (GCM)
|
- ISO (GCM)
|
||||||
- WIA / RVZ
|
- WIA / RVZ
|
||||||
- WBFS (+ NKit 2 lossless)
|
- WBFS (+ NKit 2 lossless)
|
||||||
|
@ -121,8 +122,8 @@ std::io::copy(&mut disc, &mut out)
|
||||||
|
|
||||||
Licensed under either of
|
Licensed under either of
|
||||||
|
|
||||||
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
|
- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or <http://www.apache.org/licenses/LICENSE-2.0>)
|
||||||
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
|
- MIT license ([LICENSE-MIT](LICENSE-MIT) or <http://opensource.org/licenses/MIT>)
|
||||||
|
|
||||||
at your option.
|
at your option.
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
[package]
|
[package]
|
||||||
name = "nod"
|
name = "nod"
|
||||||
version = "1.2.1"
|
version.workspace = true
|
||||||
edition = "2021"
|
edition.workspace = true
|
||||||
rust-version = "1.73.0"
|
rust-version.workspace = true
|
||||||
authors = ["Luke Street <luke@street.dev>"]
|
authors.workspace = true
|
||||||
license = "MIT OR Apache-2.0"
|
license.workspace = true
|
||||||
repository = "https://github.com/encounter/nod-rs"
|
repository.workspace = true
|
||||||
documentation = "https://docs.rs/nod"
|
documentation = "https://docs.rs/nod"
|
||||||
readme = "../README.md"
|
readme = "../README.md"
|
||||||
description = """
|
description = """
|
||||||
Library for reading GameCube and Wii disc images.
|
Library for reading GameCube and Wii disc images.
|
||||||
"""
|
"""
|
||||||
keywords = ["gamecube", "wii", "iso", "wbfs", "rvz"]
|
keywords.workspace = true
|
||||||
categories = ["command-line-utilities", "parser-implementations"]
|
categories = ["command-line-utilities", "parser-implementations"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
[package]
|
[package]
|
||||||
name = "nodtool"
|
name = "nodtool"
|
||||||
version = "1.2.1"
|
version.workspace = true
|
||||||
edition = "2021"
|
edition.workspace = true
|
||||||
rust-version = "1.73.0"
|
rust-version.workspace = true
|
||||||
authors = ["Luke Street <luke@street.dev>"]
|
authors.workspace = true
|
||||||
license = "MIT OR Apache-2.0"
|
license.workspace = true
|
||||||
repository = "https://github.com/encounter/nod-rs"
|
repository.workspace = true
|
||||||
documentation = "https://docs.rs/nod"
|
documentation = "https://docs.rs/nodtool"
|
||||||
readme = "../README.md"
|
readme = "../README.md"
|
||||||
description = """
|
description = """
|
||||||
CLI tool for verifying and converting GameCube and Wii disc images.
|
CLI tool for verifying and converting GameCube and Wii disc images.
|
||||||
"""
|
"""
|
||||||
keywords = ["gamecube", "wii", "iso", "wbfs", "rvz"]
|
keywords.workspace = true
|
||||||
categories = ["command-line-utilities", "parser-implementations"]
|
categories = ["command-line-utilities", "parser-implementations"]
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue