diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 85a953e..1c590b7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,14 +1,20 @@ name: "Build pull request" on: - #pull_request: - #types: ['opened', 'synchronize'] + pull_request: + types: ['opened', 'synchronize'] jobs: publish-tauri: strategy: fail-fast: false matrix: - platform: [macos-latest, ubuntu-20.04, windows-latest] + include: + - platform: 'macos-latest' + args: '--target universal-apple-darwin' + - platform: 'ubuntu-22.04' + args: '' + - platform: 'windows-latest' + args: '' runs-on: ${{ matrix.platform }} steps: @@ -26,10 +32,10 @@ jobs: with: toolchain: stable - name: Install dependencies (ubuntu only) - if: matrix.platform == 'ubuntu-20.04' + if: matrix.platform == 'ubuntu-22.04' run: | sudo apt-get update - sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf + sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf - name: Install cinny dependencies run: cd cinny && npm ci - name: Install tauri dependencies @@ -37,4 +43,7 @@ jobs: - name: Build desktop app with Tauri uses: tauri-apps/tauri-action@v0.5.14 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TAURI_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} + TAURI_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }} + NODE_OPTIONS: "--max_old_space_size=4096"