mirror of
https://github.com/ivabus/gui
synced 2025-06-07 15:50:27 +03:00
#10 implement caching on build per platform
This commit is contained in:
parent
cfa9e0ac11
commit
d60d31dd2e
1 changed files with 10 additions and 7 deletions
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
|
@ -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
|
Loading…
Reference in a new issue