删除 path #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Nightly" | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - nightly | |
| jobs: | |
| publish-tauri: | |
| permissions: | |
| contents: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - platform: "windows-latest" | |
| target: "x86_64-pc-windows-msvc" | |
| - platform: "windows-latest" | |
| target: "aarch64-pc-windows-msvc" | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: "recursive" | |
| - name: install dependencies (ubuntu only) | |
| if: matrix.platform == 'ubuntu-latest' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf | |
| - name: setup volta | |
| uses: volta-cli/action@v4.2.1 | |
| with: | |
| node-version: 24 | |
| - name: install pnpm | |
| run: volta install pnpm | |
| - name: install Rust stable | |
| uses: dtolnay/rust-toolchain@stable # Set this to dtolnay/rust-toolchain@nightly | |
| - name: install aarch64 target | |
| if: matrix.target == 'aarch64-pc-windows-msvc' | |
| run: rustup target add aarch64-pc-windows-msvc | |
| - name: Rust cache | |
| uses: swatinem/rust-cache@v2 | |
| with: | |
| workspaces: "./src-tauri -> target" | |
| - name: install frontend dependencies | |
| # If you don't have `beforeBuildCommand` configured you may want to build your frontend here too. | |
| run: pnpm install # change this to npm or pnpm depending on which one you use. | |
| - name: build app | |
| run: pnpm tauri:build --target ${{ matrix.target }} | |
| - name: upload artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: smtc2web-${{ matrix.target }}-${{ github.sha }} | |
| path: src-tauri/target/${{ matrix.target }}/release/bundle | |
| fail-on-missing: true |