Skip to content

fix: path fix

fix: path fix #22

Workflow file for this run

name: Release
on:
push:
# tags:
# - v*
permissions:
id-token: write
contents: write
jobs:
# Create a GitHub release for this tag
create_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create Release
run: |
# TAG=$(echo ${{ github.ref }} | sed 's/refs\/tags\///')
TAG="v0.8.6"
gh release create $TAG -t $TAG -n "Release $TAG"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-cli-linux:
runs-on: ubuntu-latest
needs: create_release
steps:
- uses: actions/checkout@v4
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Build exon-cli
run: cargo build --manifest-path exon/exon-cli/Cargo.toml
- name: Upload Release Asset
run: |
# Upload the CLI binary under the release, use the target triple as the asset name
# TAG=$(echo ${{ github.ref }} | sed 's/refs\/tags\///')
TAG="v0.8.6"
mv target/debug/exon-cli target/debug/exon-cli-${{ runner.os }}-${{ runner.arch }}
# Compress the binary
tar -czf target/debug/exon-cli-${{ runner.os }}-${{ runner.arch }}.tar.gz target/debug/exon-cli-${{ runner.os }}-${{ runner.arch }}
gh release upload $TAG target/debug/exon-cli-${{ runner.os }}-${{ runner.arch }}.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-cli-macos:
runs-on: macos-latest
needs: create_release
if: false
steps:
- uses: actions/checkout@v4
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Build exon-cli
run: cargo build --release --manifest-path exon/exon-cli/Cargo.toml
- name: Upload Release Asset
run: |
# Upload the CLI binary under the release, use the target triple as the asset name
TAG=$(echo ${{ github.ref }} | sed 's/refs\/tags\///')
gh release upload $TAG exon/exon-cli/target/release/exon-cli -n exon-cli-${{ runner.os }}-${{ runner.arch }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-cli-windows:
runs-on: windows-latest
needs: create_release
if: false
steps:
- uses: actions/checkout@v4
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Build exon-cli
run: cargo build --release --manifest-path exon/exon-cli/Cargo.toml
- name: Upload Release Asset
run: |
# Upload the CLI binary under the release, use the target triple as the asset name
TAG=$(echo ${{ github.ref }} | sed 's/refs\/tags\///')
gh release upload $TAG exon/exon-cli/target/release/exon-cli -n exon-cli-${{ runner.os }}-${{ runner.arch }} -R exon/exon-cli
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish:
runs-on: ubuntu-latest
if: false # Disabled for now
steps:
- uses: actions/checkout@v4
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Publish exon-common
run: cargo publish --manifest-path exon/exon-common/Cargo.toml
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish exon-bam
run: cargo publish --manifest-path exon/exon-bam/Cargo.toml
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish exon-vcf
run: cargo publish --manifest-path exon/exon-vcf/Cargo.toml
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish exon-bcf
run: cargo publish --manifest-path exon/exon-bcf/Cargo.toml
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish exon-bed
run: cargo publish --manifest-path exon/exon-bed/Cargo.toml
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish exon-fasta
run: cargo publish --manifest-path exon/exon-fasta/Cargo.toml
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish exon-fastq
run: cargo publish --manifest-path exon/exon-fastq/Cargo.toml
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish exon-fcs
run: cargo publish --manifest-path exon/exon-fcs/Cargo.toml
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish exon-genbank
run: cargo publish --manifest-path exon/exon-genbank/Cargo.toml
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish exon-gff
run: cargo publish --manifest-path exon/exon-gff/Cargo.toml
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish exon-gtf
run: cargo publish --manifest-path exon/exon-gtf/Cargo.toml
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish exon-mzml
run: cargo publish --manifest-path exon/exon-mzml/Cargo.toml
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish exon-sam
run: cargo publish --manifest-path exon/exon-sam/Cargo.toml
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish exon-io
run: cargo publish --manifest-path exon/exon-io/Cargo.toml
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish exon-core
run: cargo publish --manifest-path exon/exon-core/Cargo.toml
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}