diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 1464c5e2..62a81e9c 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -13,16 +13,29 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + + - uses: actions/cache@v4 + with: + path: "**/node_modules" + key: ${{ runner.os }}-modules-${{ hashFiles('**/pnpm-lock.yaml') }} + + - name: Install dependencies + run: npm i pnpm@9 --global && pnpm install + - name: Run build run: npm run rs:release + - name: Generate a changelog uses: orhun/git-cliff-action@v4 id: git-cliff with: config: cliff.toml args: -s all --current + - name: Release uses: softprops/action-gh-release@v2 with: diff --git a/.github/workflows/deploy-wiki.yml b/.github/workflows/deploy-wiki.yml index dab3d729..5873bdb0 100644 --- a/.github/workflows/deploy-wiki.yml +++ b/.github/workflows/deploy-wiki.yml @@ -39,7 +39,7 @@ jobs: # 安装依赖 - name: Install dependencies - run: npm i pnpm@8 --global && pnpm install + run: npm i pnpm@9 --global && pnpm install # 构建 Wiki - name: Run scripts