Skip to content

Commit

Permalink
ci: add pkg build test
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Feb 24, 2025
1 parent 978628f commit b154a47
Showing 1 changed file with 20 additions and 1 deletion.
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

0 comments on commit b154a47

Please sign in to comment.