incorrect here #150
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: CI | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| pull_request: | |
| branches: | |
| - "**" | |
| jobs: | |
| build-tauri: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - platform: ubuntu-22.04 | |
| args: "" | |
| - platform: windows-latest | |
| args: "" | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| cache: 'npm' | |
| - name: Install Rust stable | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Rust cache | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: src-tauri | |
| shared-key: ${{ matrix.platform }}-${{ matrix.args }} | |
| - name: Install dependencies (ubuntu only) | |
| if: matrix.platform == 'ubuntu-22.04' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf | |
| - name: Cache Wine build | |
| if: matrix.platform == 'ubuntu-22.04' | |
| id: cache-wine | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| src-tauri/wine.tar.zst | |
| src-tauri/winetricks | |
| src-tauri/cabextract | |
| key: wine-10.5-${{ hashFiles('scripts/download-wine.sh') }} | |
| - name: Download Wine (ubuntu only) | |
| if: matrix.platform == 'ubuntu-22.04' && steps.cache-wine.outputs.cache-hit != 'true' | |
| run: ./scripts/download-wine.sh | |
| - name: Install frontend dependencies | |
| run: npm install | |
| - name: Build Tauri app | |
| run: npm run tauri -- build --features cm_ss13 --config src-tauri/tauri.cm.conf.json ${{ matrix.args }} |