diff --git a/.github/workflows/CI-pr.yml b/.github/workflows/CI-pr.yml index 369da734da5a..d01c26d51129 100644 --- a/.github/workflows/CI-pr.yml +++ b/.github/workflows/CI-pr.yml @@ -259,7 +259,7 @@ jobs: - name: Run clippy shell: bash - run: just clippy + run: just clippy --jobs 2 - name: Check Cargo.lock changed if: ${{ (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) }} diff --git a/.github/workflows/CI-push.yml b/.github/workflows/CI-push.yml index 7bc55995888e..e17ce46d850e 100644 --- a/.github/workflows/CI-push.yml +++ b/.github/workflows/CI-push.yml @@ -42,6 +42,8 @@ jobs: runs-on: ${{ matrix.runner }} env: + # Use `sccache` for caching compilation artifacts + RUSTC_WRAPPER: sccache RUSTFLAGS: "-D warnings" strategy: @@ -75,10 +77,16 @@ jobs: uses: arduino/setup-protoc@v3 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - - - uses: Swatinem/rust-cache@v2.7.0 + + - name: Install sccache + uses: taiki-e/install-action@v2.33.28 with: - save-if: ${{ github.event_name == 'push' }} + tool: sccache + checksum: true + + # - uses: Swatinem/rust-cache@v2.7.0 + # with: + # save-if: ${{ github.event_name == 'push' }} - name: Install cargo-hack uses: baptiste0928/cargo-install@v2.2.0 @@ -131,6 +139,8 @@ jobs: runs-on: ${{ matrix.runner }} env: + # Use `sccache` for caching compilation artifacts + RUSTC_WRAPPER: sccache RUSTFLAGS: "-D warnings" strategy: @@ -160,6 +170,12 @@ jobs: with: repo-token: ${{ secrets.GITHUB_TOKEN }} + - name: Install sccache + uses: taiki-e/install-action@v2.33.28 + with: + tool: sccache + checksum: true + - name: Install cargo-hack uses: baptiste0928/cargo-install@v2.2.0 with: @@ -180,13 +196,13 @@ jobs: # with: # crate: cargo-nextest - - uses: Swatinem/rust-cache@v2.7.0 - with: - save-if: ${{ github.event_name == 'push' }} + # - uses: Swatinem/rust-cache@v2.7.0 + # with: + # save-if: ${{ github.event_name == 'push' }} - name: Run clippy shell: bash - run: just clippy + run: just clippy --jobs 2 - name: Cargo hack if: ${{ github.event_name == 'push' }} diff --git a/crates/common_enums/Cargo.toml b/crates/common_enums/Cargo.toml index 92fc2f02066b..5db5393644aa 100644 --- a/crates/common_enums/Cargo.toml +++ b/crates/common_enums/Cargo.toml @@ -13,7 +13,7 @@ openapi = [] payouts = [] [dependencies] -diesel = { version = "2.2.3", features = ["postgres"] } +diesel = { version = "2.2.3", features = ["postgres", "128-column-tables"] } serde = { version = "1.0.197", features = ["derive"] } serde_json = "1.0.115" strum = { version = "0.26", features = ["derive"] } diff --git a/crates/diesel_models/Cargo.toml b/crates/diesel_models/Cargo.toml index 5da67eb30759..4f02cc4aea87 100644 --- a/crates/diesel_models/Cargo.toml +++ b/crates/diesel_models/Cargo.toml @@ -17,7 +17,7 @@ payment_methods_v2 = [] [dependencies] async-bb8-diesel = { git = "https://github.com/jarnura/async-bb8-diesel", rev = "53b4ab901aab7635c8215fd1c2d542c8db443094" } -diesel = { version = "2.2.3", features = ["postgres", "serde_json", "time", "64-column-tables"] } +diesel = { version = "2.2.3", features = ["postgres", "serde_json", "time", "128-column-tables"] } error-stack = "0.4.1" rustc-hash = "1.1.0" serde = { version = "1.0.197", features = ["derive"] }