Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 9 additions & 19 deletions .github/workflows/release-seg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release Seg
on:
push:
tags:
- "samtool-v*"
- "seg-v*"

permissions:
contents: read
Expand All @@ -19,23 +19,15 @@ jobs:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
artifact: linux-x64

# - os: ubuntu-latest
# target: aarch64-unknown-linux-gnu
# artifact: linux-arm64

- os: windows-latest
target: x86_64-pc-windows-msvc
artifact: windows-x64

- os: macos-latest
- os: macos-15
target: x86_64-apple-darwin
artifact: macos-x64

- os: macos-latest
target: aarch64-apple-darwin
artifact: macos-arm64

runs-on: ${{ matrix.os }}

Expand All @@ -51,11 +43,12 @@ jobs:
working-directory: crates/seg
run: cargo build --release --target ${{ matrix.target }}

- name: Upload Binary
# optional: upload only for debugging (not required)
- name: Upload binary (debug)
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}
path: crates/seg/target/${{ matrix.target }}/release/
path: crates/seg/target/${{ matrix.target }}/release/seg*

publish:
needs: build
Expand All @@ -70,13 +63,10 @@ jobs:
- name: Install cargo-npm
run: cargo install cargo-npm

- name: Download Artifacts
uses: actions/download-artifact@v4
with:
path: artifacts

- name: Show Artifacts
run: find artifacts
# 🔥 IMPORTANT: rebuild locally so cargo-npm sees correct target layout
- name: Build Linux (for npm packaging context)
run: |
cargo build --release --target x86_64-unknown-linux-gnu

- name: Generate npm packages
working-directory: crates/seg
Expand Down
2 changes: 1 addition & 1 deletion crates/seg/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "samtool"
version = "0.1.8"
version = "0.1.9"
edition = "2024"
authors = ["Shadowdara"]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion crates/seg/npm/@shadowdara/seg-darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shadowdara/seg-darwin-arm64",
"version": "0.1.8",
"version": "0.1.9",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion crates/seg/npm/@shadowdara/seg-darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shadowdara/seg-darwin-x64",
"version": "0.1.8",
"version": "0.1.9",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion crates/seg/npm/@shadowdara/seg-linux-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shadowdara/seg-linux-x64",
"version": "0.1.8",
"version": "0.1.9",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion crates/seg/npm/@shadowdara/seg-win32-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shadowdara/seg-win32-x64",
"version": "0.1.8",
"version": "0.1.9",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand Down
10 changes: 5 additions & 5 deletions crates/seg/npm/seg/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "seg",
"version": "0.1.8",
"version": "0.1.9",
"description": "the fast cli tool for samengine",
"keywords": [
"samengine",
Expand All @@ -19,9 +19,9 @@
"node": ">=14"
},
"optionalDependencies": {
"@shadowdara/seg-darwin-arm64": "0.1.8",
"@shadowdara/seg-darwin-x64": "0.1.8",
"@shadowdara/seg-linux-x64": "0.1.8",
"@shadowdara/seg-win32-x64": "0.1.8"
"@shadowdara/seg-darwin-arm64": "0.1.9",
"@shadowdara/seg-darwin-x64": "0.1.9",
"@shadowdara/seg-linux-x64": "0.1.9",
"@shadowdara/seg-win32-x64": "0.1.9"
}
}
Loading