Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: replace deprecated pkg with @yao-pkg/pkg #868

Merged
merged 2 commits into from
Feb 24, 2025
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
21 changes: 20 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,25 @@ on:
- master

jobs:
build-pkg:
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'pnpm'

- run: pnpm install --frozen-lockfile
- run: sudo npm install -g @yao-pkg/pkg

- run: npm run build-pkg

- run: dist-pkg/flood-linuxstatic-x64 --help

build-real:
runs-on: ubuntu-24.04

Expand All @@ -33,7 +52,7 @@ jobs:

build:
# so we do not need to update GitHub repo config
needs: build-real
needs: [build-real, build-pkg]
runs-on: ubuntu-latest

strategy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-rolling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ jobs:
sudo wget https://github.com/jesec/ldid-static/releases/download/v2.1.4/ldid-amd64 -O /usr/local/bin/ldid
sudo chmod +x /usr/local/bin/ldid

- run: sudo npm install -g pkg
- run: sudo npm install -g @yao-pkg/pkg

- uses: actions/download-artifact@v4
with:
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
"dist/**/*.map"
],
"targets": [
"node18-linuxstatic-x64",
"node18-linuxstatic-arm64",
"node18-macos-x64",
"node18-macos-arm64",
"node18-win-x64",
"node18-win-arm64"
"node22-linuxstatic-x64",
"node22-linuxstatic-arm64",
"node22-macos-x64",
"node22-macos-arm64",
"node22-win-x64",
"node22-win-arm64"
]
},
"scripts": {
Expand Down