From e0e95886ad1bbcad5b266b50bb941cfd0f7e4c19 Mon Sep 17 00:00:00 2001 From: Lkhsss Date: Sun, 17 Nov 2024 11:51:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=87=AA=E5=8A=A8=E6=8E=A8?= =?UTF-8?q?=E9=80=81crate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 23 +++++++++++++++++++---- Cargo.lock | 2 +- Cargo.toml | 8 +++++++- 3 files changed, 27 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cf2dcb1..a44d516 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,7 @@ jobs: fail-fast: false matrix: include: - - target: aarch64-unknown-linux-gnu + - target: aarch64-unknown-linux-musl use-cross: true os: ubuntu-latest cargo-flags: "" @@ -36,11 +36,11 @@ jobs: - target: x86_64-pc-windows-msvc os: windows-latest cargo-flags: "" - - target: x86_64-unknown-linux-gnu + - target: x86_64-unknown-linux-musl os: ubuntu-latest use-cross: true cargo-flags: "" - - target: i686-unknown-linux-gnu + - target: i686-unknown-linux-musl os: ubuntu-latest use-cross: true cargo-flags: "" @@ -138,4 +138,19 @@ jobs: with: draft: false files: ${{ steps.package.outputs.archive }} - prerelease: ${{ steps.check-tag.outputs.rc == 'true' }} \ No newline at end of file + prerelease: ${{ steps.check-tag.outputs.rc == 'true' }} + + publish-crate: + name: Publish to crates.io + if: ${{ needs.release.outputs.rc == 'false' }} + runs-on: ubuntu-latest + needs: release + steps: + - uses: actions/checkout@v4 + + - uses: dtolnay/rust-toolchain@stable + + - name: Publish + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_API_TOKEN }} + run: cargo publish \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index 904767a..3ec809e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -799,7 +799,7 @@ checksum = "07dcca13d1740c0a665f77104803360da0bdb3323ecce2e93fa2c959a6d52806" [[package]] name = "ncmmiao" -version = "2.2.7" +version = "2.3.7" dependencies = [ "aes", "audiotags", diff --git a/Cargo.toml b/Cargo.toml index e32db81..93d08d1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,13 @@ [package] name = "ncmmiao" -version = "2.2.7" +version = "2.3.7" edition = "2021" +authors = ["Lkhsss "] +description = "A magic tool convert ncm to flac" +repository = "https://github.com/ncmmiao/ncmmiao" +license = "MIT" +keys = ["ncm","flac","neteasemusic"] + # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html