@@ -3,7 +3,7 @@ name: Release Seg
33on :
44 push :
55 tags :
6- - " samtool -v*"
6+ - " seg -v*"
77
88permissions :
99 contents : read
@@ -19,23 +19,15 @@ jobs:
1919 include :
2020 - os : ubuntu-latest
2121 target : x86_64-unknown-linux-gnu
22- artifact : linux-x64
23-
24- # - os: ubuntu-latest
25- # target: aarch64-unknown-linux-gnu
26- # artifact: linux-arm64
2722
2823 - os : windows-latest
2924 target : x86_64-pc-windows-msvc
30- artifact : windows-x64
3125
32- - os : macos-latest
26+ - os : macos-15
3327 target : x86_64-apple-darwin
34- artifact : macos-x64
3528
3629 - os : macos-latest
3730 target : aarch64-apple-darwin
38- artifact : macos-arm64
3931
4032 runs-on : ${{ matrix.os }}
4133
@@ -51,11 +43,12 @@ jobs:
5143 working-directory : crates/seg
5244 run : cargo build --release --target ${{ matrix.target }}
5345
54- - name : Upload Binary
46+ # optional: upload only for debugging (not required)
47+ - name : Upload binary (debug)
5548 uses : actions/upload-artifact@v4
5649 with :
5750 name : ${{ matrix.target }}
58- path : crates/seg/target/${{ matrix.target }}/release/
51+ path : crates/seg/target/${{ matrix.target }}/release/seg*
5952
6053 publish :
6154 needs : build
@@ -70,13 +63,10 @@ jobs:
7063 - name : Install cargo-npm
7164 run : cargo install cargo-npm
7265
73- - name : Download Artifacts
74- uses : actions/download-artifact@v4
75- with :
76- path : artifacts
77-
78- - name : Show Artifacts
79- run : find artifacts
66+ # 🔥 IMPORTANT: rebuild locally so cargo-npm sees correct target layout
67+ - name : Build Linux (for npm packaging context)
68+ run : |
69+ cargo build --release --target x86_64-unknown-linux-gnu
8070
8171 - name : Generate npm packages
8272 working-directory : crates/seg
0 commit comments