diff --git a/.github/workflows/tauri ci.yml b/.github/workflows/tauri ci.yml index cc7953f..3399d63 100644 --- a/.github/workflows/tauri ci.yml +++ b/.github/workflows/tauri ci.yml @@ -16,6 +16,30 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Cache cargo registry + uses: actions/cache@v3 + with: + path: ~/.cargo/registry + key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo-registry- + + - name: Cache cargo index + uses: actions/cache@v3 + with: + path: ~/.cargo/git + key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo-index- + + - name: Cache bun dependencies + uses: actions/cache@v3 + with: + path: ~/.bun + key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }} + restore-keys: | + ${{ runner.os }}-bun- + - name: Install bun run: powershell -c "irm bun.sh/install.ps1 | iex" @@ -28,6 +52,24 @@ jobs: - name: Install dependencies run: bun install + - name: Cache Rust build + uses: actions/cache@v3 + with: + path: target + key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo-build- + + - name: Cache Gradle files + uses: actions/cache@v3 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle- + - name: Install Rust Android Target run: rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android diff --git a/.github/workflows/tauri release.yml b/.github/workflows/tauri release.yml index ae6bbd3..cf2a986 100644 --- a/.github/workflows/tauri release.yml +++ b/.github/workflows/tauri release.yml @@ -13,6 +13,60 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Cache cargo registry + uses: actions/cache@v3 + with: + path: ~/.cargo/registry + key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo-registry- + + - name: Cache cargo index + uses: actions/cache@v3 + with: + path: ~/.cargo/git + key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo-index- + + - name: Cache bun dependencies + uses: actions/cache@v3 + with: + path: ~/.bun + key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }} + restore-keys: | + ${{ runner.os }}-bun- + + - name: Install bun + run: powershell -c "irm bun.sh/install.ps1 | iex" + + - name: Add bun to PATH + run: echo "C:\Users\runneradmin\.bun\bin" >> $env:GITHUB_PATH + + - name: Verify bun installation + run: bun --version + + - name: Install dependencies + run: bun install + + - name: Cache Rust build + uses: actions/cache@v3 + with: + path: target + key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo-build- + + - name: Cache Gradle files + uses: actions/cache@v3 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle- + - name: Install bun run: powershell -c "irm bun.sh/install.ps1 | iex"