fix: migrate tooling to bun and accept file path targets

This commit is contained in:
2026-02-17 20:39:06 -08:00
parent a531527e1f
commit 846b075206
20 changed files with 1620 additions and 5735 deletions

View File

@@ -15,38 +15,32 @@ jobs:
with:
submodules: true
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
version: 9
bun-version: latest
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install
run: bun install --frozen-lockfile
- name: Build (TypeScript check)
run: pnpm exec tsc --noEmit
run: bun run tsc --noEmit
- name: Build (bundle)
run: pnpm run build
run: bun run build
- name: Test suite
run: pnpm test
run: bun run test
- name: Security audit
run: pnpm audit --audit-level=high
run: bun audit
continue-on-error: true
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Build Bun subminer wrapper
run: make build-launcher

View File

@@ -17,28 +17,27 @@ jobs:
with:
submodules: true
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
version: 9
bun-version: latest
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
run: bun install --frozen-lockfile
- name: Build texthooker-ui
run: |
cd vendor/texthooker-ui
pnpm install
pnpm build
bun install
bun run build
- name: Build AppImage
run: pnpm run build:appimage
run: bun run build:appimage
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -56,16 +55,15 @@ jobs:
with:
submodules: true
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
version: 9
bun-version: latest
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Validate macOS signing/notarization secrets
run: |
@@ -88,16 +86,16 @@ jobs:
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
- name: Install dependencies
run: pnpm install
run: bun install --frozen-lockfile
- name: Build texthooker-ui
run: |
cd vendor/texthooker-ui
pnpm install
pnpm build
bun install
bun run build
- name: Build signed + notarized macOS artifacts
run: pnpm run build:mac
run: bun run build:mac
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CSC_LINK: ${{ secrets.CSC_LINK }}