Skip to content

Commit

Permalink
0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jackh726 committed Feb 2, 2024
1 parent 8e5333e commit ad0e793
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 1,206 deletions.
40 changes: 23 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -37,32 +37,38 @@ jobs:
- name: Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: nightly
override: true
- name: Build project
run: |
rustup target add ${{ matrix.target }}
cargo build --release --locked --target ${{ matrix.target }} --no-default-features ${{ matrix.remote && '--features remote' || '' }}
- name: Zip build artifacts
uses: papeloto/action-zip@v1
cargo build -p bigtools --release --locked -Z unstable-options --out-dir release --no-default-features --features cli ${{ matrix.remote && '--features remote' || '' }} --target ${{ matrix.target }}
- name: Archive Release
uses: thedoctor0/zip-release@0.7.5
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
type: 'zip'
filename: ${{ github.workspace }}/${{ matrix.asset_name }}.zip
exclusions: '*.git* /*node_modules/* .editorconfig'
path: release/
- 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: Publish
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:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

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

Loading

0 comments on commit ad0e793

Please # to comment.