Skip to content

Commit 0504cf8

Browse files
committed
fix: publish linux musl builds and disable windows package
1 parent fa0e5cd commit 0504cf8

6 files changed

Lines changed: 18 additions & 19 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ jobs:
1313
matrix:
1414
include:
1515
- os: ubuntu-latest
16-
target: x86_64-unknown-linux-gnu
16+
target: x86_64-unknown-linux-musl
1717
npm_pkg: linux-x64
1818
bin: crewforge
19+
cross: true
1920
- os: ubuntu-latest
20-
target: aarch64-unknown-linux-gnu
21+
target: aarch64-unknown-linux-musl
2122
npm_pkg: linux-arm64
2223
bin: crewforge
2324
cross: true
@@ -29,10 +30,6 @@ jobs:
2930
target: aarch64-apple-darwin
3031
npm_pkg: darwin-arm64
3132
bin: crewforge
32-
- os: windows-latest
33-
target: x86_64-pc-windows-msvc
34-
npm_pkg: win32-x64
35-
bin: crewforge.exe
3633

3734
steps:
3835
- uses: actions/checkout@v4
@@ -43,7 +40,7 @@ jobs:
4340

4441
- uses: Swatinem/rust-cache@v2
4542

46-
- name: Install cross (for arm64 Linux)
43+
- name: Install cross (for Linux musl targets)
4744
if: ${{ matrix.cross }}
4845
run: cargo install cross --git https://github.com/cross-rs/cross
4946

@@ -105,7 +102,8 @@ jobs:
105102
env:
106103
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
107104
run: |
108-
for pkg_dir in npm/crewforge-*/; do
105+
for pkg in linux-x64 linux-arm64 darwin-x64 darwin-arm64; do
106+
pkg_dir="npm/crewforge-$pkg"
109107
(
110108
cd "$pkg_dir"
111109
npm version "$VERSION" --no-git-tag-version --allow-same-version

AGENTS.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,17 +103,20 @@
103103
## Release Process
104104

105105
- Standard release flow is driven by git tag `vX.Y.Z` and GitHub Actions.
106-
- For each release, update `Cargo.toml` version first, then run the exact command sequence below.
106+
- For each release, update `Cargo.toml` version first.
107107
- Do not manually maintain npm package versions in `package.json`; release workflow syncs versions from the tag.
108+
- Current npm release targets are:
109+
- `@crewforge/linux-x64` (`x86_64-unknown-linux-musl`)
110+
- `@crewforge/linux-arm64` (`aarch64-unknown-linux-musl`)
111+
- `@crewforge/darwin-x64`
112+
- `@crewforge/darwin-arm64`
113+
- Windows package publishing is currently disabled.
108114

109115
```bash
110-
# 1) after updating Cargo.toml version
116+
# 1) validate before release
111117
cargo test
112-
git add .
113-
git commit -m "chore: bump version to X.Y.Z"
114-
git push origin main
115118

116-
# 2) trigger npm/github release workflow
119+
# 2) push the release tag to trigger npm/GitHub release workflow
117120
git tag vX.Y.Z
118121
git push origin vX.Y.Z
119122
```

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "crewforge"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
edition = "2024"
55

66
[dependencies]

bin/crewforge.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const PACKAGES = {
88
'linux-arm64': '@crewforge/linux-arm64',
99
'darwin-x64': '@crewforge/darwin-x64',
1010
'darwin-arm64': '@crewforge/darwin-arm64',
11-
'win32-x64': '@crewforge/win32-x64',
1211
};
1312

1413
const key = `${process.platform}-${process.arch}`;

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
"@crewforge/linux-x64": "0.1.0",
1313
"@crewforge/linux-arm64": "0.1.0",
1414
"@crewforge/darwin-x64": "0.1.0",
15-
"@crewforge/darwin-arm64": "0.1.0",
16-
"@crewforge/win32-x64": "0.1.0"
15+
"@crewforge/darwin-arm64": "0.1.0"
1716
},
1817
"engines": {
1918
"node": ">=18"

0 commit comments

Comments
 (0)