diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2022-12-21 23:51:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-21 23:51:32 +0100 |
commit | 5b4c70830f5b66f0d8f2ef62ceb77b2888c08b29 (patch) | |
tree | c322b325317c9b65d5a77b678bd3d25ae5560292 /.github | |
parent | 3144efd5ad22904d1e566f8e0e187003362ae9ba (diff) | |
download | FlightCore-5b4c70830f5b66f0d8f2ef62ceb77b2888c08b29.tar.gz FlightCore-5b4c70830f5b66f0d8f2ef62ceb77b2888c08b29.zip |
build: Cache Rust build artifacts (#118)
* build: Attempt caching Rust build artifacts
* temp: Change to force recompile to test cache
* build: Set Rust workspace dir correctly
* temp: Change to force recompile to test cache
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/push-test.yml | 4 | ||||
-rw-r--r-- | .github/workflows/release.yml | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/push-test.yml b/.github/workflows/push-test.yml index ec5fde87..25314e58 100644 --- a/.github/workflows/push-test.yml +++ b/.github/workflows/push-test.yml @@ -44,6 +44,10 @@ jobs: jq '.tauri.updater.active = false' src-tauri/tauri.conf.json > src-tauri/tauri.conf.json.new rm src-tauri/tauri.conf.json mv src-tauri/tauri.conf.json.new src-tauri/tauri.conf.json + - uses: Swatinem/rust-cache@v2 # Cache Rust build artifacts + with: + workspaces: | + src-tauri - name: install app dependencies and build it env: TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c9d22155..6279d126 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,6 +39,10 @@ jobs: run: | sudo apt-get update sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf + - uses: Swatinem/rust-cache@v2 # Cache Rust build artifacts + with: + workspaces: | + src-tauri - name: install app dependencies and build it env: TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} |