Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eric committed Mar 19, 2024
1 parent a0b3890 commit b794936
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
env:
CARGO_TERM_COLOR: always
BINARIES_LIST: 'ncbi estimate_capacity build_db classify build_k2_db inspect seqid2taxid splitr squid'
PROJECT_PREFIX: 'kraken_rust_'
PROJECT_PREFIX: 'kraken-rust-'

jobs:
build-and-release:
Expand All @@ -24,6 +24,8 @@ jobs:
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Set Version Number
run: echo "VERSION=$(echo $GITHUB_REF | sed -e 's|refs/tags/||')" >> $GITHUB_ENV
- name: Build
run: cargo build --release

Expand Down Expand Up @@ -60,7 +62,7 @@ jobs:
- name: Prepare asset name
run: |
PLATFORM_TAG=$(echo ${{ matrix.platform }} | sed -e 's/-latest//' -e 's/ubuntu-20.04/linux-x86_64/' -e 's/macos/macos-x86_64/' -e 's/windows/windows-x86_64/')
echo "ASSET_NAME=${PROJECT_PREFIX}${PLATFORM_TAG}.tar.gz" >> $GITHUB_ENV
echo "ASSET_NAME=${PROJECT_PREFIX}${VERSION}-${PLATFORM_TAG}.tar.gz" >> $GITHUB_ENV
shell: bash

- name: Create tar.gz archive
Expand Down Expand Up @@ -94,15 +96,15 @@ jobs:
docker cp centos7-container:/github/workspace/target/release/$binary ./target/release/packaged_centos7/
done
tar czvf ./${PROJECT_PREFIX}centos7.tar.gz -C ./target/release/packaged_centos7 .
tar czvf ./${PROJECT_PREFIX}${VERSION}-centos7.tar.gz -C ./target/release/packaged_centos7 .
docker rm centos7-container
- name: Upload Release Asset for CentOS 7
if: matrix.platform == 'ubuntu-20.04'
run: |
gh release upload ${{ github.ref_name }} \
./${PROJECT_PREFIX}centos7.tar.gz \
./${PROJECT_PREFIX}${VERSION}-centos7.tar.gz \
--clobber
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit b794936

Please sign in to comment.