From ebf5f99d2fe6ba115a51df81f6e368407b2bd519 Mon Sep 17 00:00:00 2001 From: Jack Huey <31162821+jackh726@users.noreply.github.com> Date: Thu, 1 Feb 2024 10:36:45 -0500 Subject: [PATCH] 0.4.0 --- .github/workflows/release.yml | 44 ++++++++++++++++++++++------------- Cargo.lock | 2 +- bigtools/Cargo.toml | 2 +- pybigtools/Cargo.toml | 2 +- 4 files changed, 31 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5288b98..27efba9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: target: x86_64-unknown-linux-gnu asset_name: bigtools-linux-gnu remote: true - - os: windows-msvc-latest + - os: windows-latest target: x86_64-pc-windows-msvc asset_name: bigtools-windows-msvc remote: true @@ -42,27 +42,39 @@ jobs: - name: Build project run: | rustup target add ${{ matrix.target }} - cargo build --release --locked --target ${{ matrix.target }} --no-default-features ${{ matrix.remote && '--features remote' || '' }} + cargo build -p bigtools --release --locked --target ${{ matrix.target }} --no-default-features ${{ matrix.remote && '--features remote' || '' }} - name: Zip build artifacts - uses: papeloto/action-zip@v1 - with: - files: | - target/release/bedgraphtobigwig; - target/release/bedtobigbed; - target/release/bigbedinfo; - target/release/bigbedtobed; - target/release/bigtools; - target/release/bigwigaverageoverbed; - target/release/bigwiginfo; - target/release/bigwigmerge; - target/release/bigwigtobedgraph; - target/release/bigwigvaluesoverbed - dest: ${{ matrix.asset_name }}.zip + run: > + zip ${{ matrix.asset_name }}.zip + target/release/bedgraphtobigwig + target/release/bedtobigbed + target/release/bigbedinfo + target/release/bigbedtobed + target/release/bigtools + target/release/bigwigaverageoverbed + target/release/bigwiginfo + target/release/bigwigmerge + target/release/bigwigtobedgraph + target/release/bigwigvaluesoverbed - name: Zip upload uses: shogo82148/actions-upload-release-asset@v1 with: upload_url: ${{ github.event.release.upload_url }} asset_path: ${{ github.workspace }}/${{ matrix.asset_name }}.zip + + publish: + if: startsWith(github.ref, 'refs/tags/v') + name: Build and Release + runs-on: ubuntu-latest + needs: release + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Rust toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true - name: Cargo publish uses: katyo/publish-crates@v2 with: diff --git a/Cargo.lock b/Cargo.lock index f0831b3..034ddb8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -109,7 +109,7 @@ checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" [[package]] name = "bigtools" -version = "0.3.1-dev" +version = "0.4.0" dependencies = [ "attohttpc", "bincode", diff --git a/bigtools/Cargo.toml b/bigtools/Cargo.toml index a6d8d4b..13c1550 100644 --- a/bigtools/Cargo.toml +++ b/bigtools/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bigtools" -version = "0.3.1-dev" +version = "0.4.0" authors = ["Jack Huey "] edition = "2021" license = "MIT" diff --git a/pybigtools/Cargo.toml b/pybigtools/Cargo.toml index 75c2001..ec47a91 100644 --- a/pybigtools/Cargo.toml +++ b/pybigtools/Cargo.toml @@ -9,7 +9,7 @@ name = "pybigtools" crate-type = ["cdylib"] [dependencies] -bigtools = { version = "0.3.1-dev", path = "../bigtools" } +bigtools = { version = "0.4.0", path = "../bigtools" } url = "2.4.0" tokio = { version = "1.34.0", features = ["rt", "rt-multi-thread"] } futures = { version = "0.3.1", features = ["thread-pool"] }