diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2188cab..1d54349 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,11 +44,6 @@ jobs: uses: actions-rs/toolchain@v1 with: toolchain: stable - - name: install dependencies (ubuntu only) - if: matrix.platform == 'ubuntu-20.04' - run: | - sudo apt-get update - sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf - name: install app dependencies and build it run: pnpm install && pnpm --filter gui build @@ -58,7 +53,6 @@ jobs: strategy: fail-fast: false matrix: - # platform: [macos-latest, ubuntu-20.04, windows-latest] platform: [macos-latest, ubuntu-latest, windows-latest ] runs-on: ${{ matrix.platform }} @@ -79,12 +73,21 @@ jobs: with: toolchain: stable - name: install dependencies (ubuntu only) - if: matrix.platform == 'ubuntu-20.04' + if: matrix.platform == 'ubuntu-latest' run: | sudo apt-get update sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf - name: install app dependencies run: pnpm install + - name: Cache Tauri Target + uses: actions/cache@v3 + with: + path: | + ./packages/gui/src-tauri/target + key: ${{ matrix.platform }}-build-target + restore-keys: | + ${{ matrix.platform }}-build-target + - name: test build tauri run: pnpm --filter gui tauri build \ No newline at end of file