Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions .github/workflows/android-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ jobs:
with:
path: |
~/.bun/install/cache
frontend/node_modules
key: ${{ runner.os }}-bun-${{ hashFiles('frontend/bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-

- name: Install Rust
uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # was stable
Expand Down Expand Up @@ -90,14 +87,11 @@ jobs:
with:
path: ~/.cargo/bin/
key: ${{ runner.os }}-cargo-bin-tauri-cli-2.11.1
restore-keys: |
${{ runner.os }}-cargo-bin-tauri-cli-
${{ runner.os }}-cargo-bin-

- name: Install Linux dependencies
run: |
sudo apt-get update
sudo apt-get install -y libssl-dev
sudo apt-get install -y --no-install-recommends libssl-dev

- name: Install frontend dependencies
working-directory: ./frontend
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/android-pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ jobs:
with:
path: |
~/.bun/install/cache
frontend/node_modules
key: ${{ runner.os }}-bun-${{ hashFiles('frontend/bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-

- name: Install Rust
uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # was stable
Expand Down Expand Up @@ -90,14 +87,11 @@ jobs:
with:
path: ~/.cargo/bin/
key: ${{ runner.os }}-cargo-bin-tauri-cli-2.11.1
restore-keys: |
${{ runner.os }}-cargo-bin-tauri-cli-
${{ runner.os }}-cargo-bin-

- name: Install Linux dependencies
run: |
sudo apt-get update
sudo apt-get install -y libssl-dev
sudo apt-get install -y --no-install-recommends libssl-dev

- name: Install frontend dependencies
working-directory: ./frontend
Expand Down
32 changes: 23 additions & 9 deletions .github/workflows/desktop-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,33 @@ jobs:
with:
path: |
~/Library/Caches/Homebrew
/opt/homebrew/Cellar/sccache
/opt/homebrew/Cellar/openssl@3
key: ${{ runner.os }}-brew-${{ hashFiles('.github/workflows/desktop-build.yml') }}
restore-keys: |
${{ runner.os }}-brew-

- name: Install sccache
run: |
brew install sccache
brew link --overwrite --force sccache
SCCACHE_VERSION=0.8.2
case "$(uname -m)" in
arm64)
SCCACHE_TARGET="aarch64-apple-darwin"
SCCACHE_SHA256="32604da614ce679623a8de0d38eab91b87431d59f3344c5523c82e1b6e85ffc4"
;;
x86_64)
SCCACHE_TARGET="x86_64-apple-darwin"
SCCACHE_SHA256="fcbe1b76356f7183cee0b5bc150c0583abc01a5c42e9b2be94e9d17ed7dca3a4"
;;
*)
echo "Unsupported macOS architecture: $(uname -m)" >&2
exit 1
;;
esac
SCCACHE_ARCHIVE="sccache-v${SCCACHE_VERSION}-${SCCACHE_TARGET}.tar.gz"
SCCACHE_URL="https://github.com/mozilla/sccache/releases/download/v${SCCACHE_VERSION}/${SCCACHE_ARCHIVE}"
curl --fail --location --show-error --silent "$SCCACHE_URL" --output "$SCCACHE_ARCHIVE"
echo "${SCCACHE_SHA256} ${SCCACHE_ARCHIVE}" | shasum -a 256 -c -
tar xzf "$SCCACHE_ARCHIVE"
sudo mv "sccache-v${SCCACHE_VERSION}-${SCCACHE_TARGET}/sccache" /usr/local/bin/
chmod +x /usr/local/bin/sccache
sccache --version

- name: Cache sccache
Expand Down Expand Up @@ -163,14 +180,11 @@ jobs:
with:
path: ~/.cargo/bin/
key: ${{ runner.os }}-cargo-bin-tauri-cli-2.11.1
restore-keys: |
${{ runner.os }}-cargo-bin-tauri-cli-
${{ runner.os }}-cargo-bin-

- name: Install Linux dependencies
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev \
sudo apt-get install -y --no-install-recommends libwebkit2gtk-4.1-dev \
libssl-dev \
libgtk-3-dev \
libayatana-appindicator3-dev \
Expand Down
32 changes: 23 additions & 9 deletions .github/workflows/desktop-pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,33 @@ jobs:
with:
path: |
~/Library/Caches/Homebrew
/opt/homebrew/Cellar/sccache
/opt/homebrew/Cellar/openssl@3
key: ${{ runner.os }}-brew-${{ hashFiles('.github/workflows/desktop-build.yml') }}
restore-keys: |
${{ runner.os }}-brew-

- name: Install sccache
run: |
brew install sccache
brew link --overwrite --force sccache
SCCACHE_VERSION=0.8.2
case "$(uname -m)" in
arm64)
SCCACHE_TARGET="aarch64-apple-darwin"
SCCACHE_SHA256="32604da614ce679623a8de0d38eab91b87431d59f3344c5523c82e1b6e85ffc4"
;;
x86_64)
SCCACHE_TARGET="x86_64-apple-darwin"
SCCACHE_SHA256="fcbe1b76356f7183cee0b5bc150c0583abc01a5c42e9b2be94e9d17ed7dca3a4"
;;
*)
echo "Unsupported macOS architecture: $(uname -m)" >&2
exit 1
;;
esac
SCCACHE_ARCHIVE="sccache-v${SCCACHE_VERSION}-${SCCACHE_TARGET}.tar.gz"
SCCACHE_URL="https://github.com/mozilla/sccache/releases/download/v${SCCACHE_VERSION}/${SCCACHE_ARCHIVE}"
curl --fail --location --show-error --silent "$SCCACHE_URL" --output "$SCCACHE_ARCHIVE"
echo "${SCCACHE_SHA256} ${SCCACHE_ARCHIVE}" | shasum -a 256 -c -
tar xzf "$SCCACHE_ARCHIVE"
sudo mv "sccache-v${SCCACHE_VERSION}-${SCCACHE_TARGET}/sccache" /usr/local/bin/
chmod +x /usr/local/bin/sccache
sccache --version

- name: Cache sccache
Expand Down Expand Up @@ -131,14 +148,11 @@ jobs:
with:
path: ~/.cargo/bin/
key: ${{ runner.os }}-cargo-bin-tauri-cli-2.11.1
restore-keys: |
${{ runner.os }}-cargo-bin-tauri-cli-
${{ runner.os }}-cargo-bin-

- name: Install Linux dependencies
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev \
sudo apt-get install -y --no-install-recommends libwebkit2gtk-4.1-dev \
libssl-dev \
libgtk-3-dev \
libayatana-appindicator3-dev \
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/frontend-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ jobs:
with:
path: |
~/.bun/install/cache
frontend/node_modules
key: ${{ runner.os }}-bun-${{ hashFiles('frontend/bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-

- name: Install dependencies
working-directory: ./frontend
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/mobile-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ jobs:
~/Library/Caches/Homebrew
/opt/homebrew/Cellar/openssl@3
key: ${{ runner.os }}-brew-${{ hashFiles('.github/workflows/mobile-build.yml') }}
restore-keys: |
${{ runner.os }}-brew-

- name: Cache Xcode DerivedData and SourcePackages
uses: irgaly/xcode-cache@4141f139f00e335c6e1031fb93e667181f86146f # was v1
Expand All @@ -54,9 +52,6 @@ jobs:
with:
path: ~/.cargo/bin/
key: ${{ runner.os }}-cargo-bin-tauri-cli-2.11.1
restore-keys: |
${{ runner.os }}-cargo-bin-tauri-cli-
${{ runner.os }}-cargo-bin-

- name: Install frontend dependencies
working-directory: ./frontend
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/mobile-pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ jobs:
~/Library/Caches/Homebrew
/opt/homebrew/Cellar/openssl@3
key: ${{ runner.os }}-brew-${{ hashFiles('.github/workflows/mobile-build.yml') }}
restore-keys: |
${{ runner.os }}-brew-

- name: Cache Xcode DerivedData and SourcePackages
uses: irgaly/xcode-cache@4141f139f00e335c6e1031fb93e667181f86146f # was v1
Expand All @@ -54,9 +52,6 @@ jobs:
with:
path: ~/.cargo/bin/
key: ${{ runner.os }}-cargo-bin-tauri-cli-2.11.1
restore-keys: |
${{ runner.os }}-cargo-bin-tauri-cli-
${{ runner.os }}-cargo-bin-

- name: Install frontend dependencies
working-directory: ./frontend
Expand Down
Loading
Loading