mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 05:17:02 +08:00
revert: ci: use sccache-action for caching compilation artifacts (#1880)
This commit is contained in:
11
.github/workflows/CI-pr.yml
vendored
11
.github/workflows/CI-pr.yml
vendored
@ -35,9 +35,6 @@ env:
|
||||
RUST_BACKTRACE: short
|
||||
# Use cargo's sparse index protocol
|
||||
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
|
||||
# Enable and use the sccache action for caching
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
|
||||
jobs:
|
||||
formatting:
|
||||
@ -87,7 +84,9 @@ jobs:
|
||||
with:
|
||||
toolchain: 1.65
|
||||
|
||||
- uses: mozilla-actions/sccache-action@v0.0.3
|
||||
- uses: Swatinem/rust-cache@v2.4.0
|
||||
with:
|
||||
save-if: ${{ github.event_name == 'push' }}
|
||||
|
||||
- name: Install cargo-hack
|
||||
uses: baptiste0928/cargo-install@v2.1.0
|
||||
@ -294,7 +293,9 @@ jobs:
|
||||
# with:
|
||||
# crate: cargo-nextest
|
||||
|
||||
- uses: mozilla-actions/sccache-action@v0.0.3
|
||||
- uses: Swatinem/rust-cache@v2.4.0
|
||||
with:
|
||||
save-if: ${{ github.event_name == 'push' }}
|
||||
|
||||
# - name: Setup Embark Studios lint rules
|
||||
# shell: bash
|
||||
|
||||
34
.github/workflows/CI-push.yml
vendored
34
.github/workflows/CI-push.yml
vendored
@ -19,32 +19,6 @@ concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
# Disable incremental compilation.
|
||||
#
|
||||
# Incremental compilation is useful as part of an edit-build-test-edit cycle,
|
||||
# as it lets the compiler avoid recompiling code that hasn't changed. However,
|
||||
# on CI, we're not making small edits; we're almost always building the entire
|
||||
# project from scratch. Thus, incremental compilation on CI actually
|
||||
# introduces *additional* overhead to support making future builds
|
||||
# faster...but no future builds will ever occur in any given CI environment.
|
||||
#
|
||||
# See https://matklad.github.io/2021/09/04/fast-rust-builds.html#ci-workflow
|
||||
# for details.
|
||||
CARGO_INCREMENTAL: 0
|
||||
# Allow more retries for network requests in cargo (downloading crates) and
|
||||
# rustup (installing toolchains). This should help to reduce flaky CI failures
|
||||
# from transient network timeouts or other issues.
|
||||
CARGO_NET_RETRY: 10
|
||||
RUSTUP_MAX_RETRIES: 10
|
||||
# Don't emit giant backtraces in the CI logs.
|
||||
RUST_BACKTRACE: short
|
||||
# Use cargo's sparse index protocol
|
||||
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
|
||||
# Enable and use the sccache action for caching
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
|
||||
jobs:
|
||||
formatting:
|
||||
name: Check formatting
|
||||
@ -89,7 +63,9 @@ jobs:
|
||||
with:
|
||||
toolchain: 1.65
|
||||
|
||||
- uses: mozilla-actions/sccache-action@v0.0.3
|
||||
- uses: Swatinem/rust-cache@v2.4.0
|
||||
with:
|
||||
save-if: ${{ github.event_name == 'push' }}
|
||||
|
||||
- name: Install cargo-hack
|
||||
uses: baptiste0928/cargo-install@v2.0.0
|
||||
@ -162,7 +138,9 @@ jobs:
|
||||
# with:
|
||||
# crate: cargo-nextest
|
||||
|
||||
- uses: mozilla-actions/sccache-action@v0.0.3
|
||||
- uses: Swatinem/rust-cache@v2.4.0
|
||||
with:
|
||||
save-if: ${{ github.event_name == 'push' }}
|
||||
|
||||
# - name: Setup Embark Studios lint rules
|
||||
# shell: bash
|
||||
|
||||
5
.github/workflows/connector-sanity-tests.yml
vendored
5
.github/workflows/connector-sanity-tests.yml
vendored
@ -38,9 +38,6 @@ env:
|
||||
RUST_BACKTRACE: short
|
||||
# Use cargo's sparse index protocol
|
||||
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
|
||||
# Enable and use the sccache action for caching
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
|
||||
jobs:
|
||||
test_connectors:
|
||||
@ -89,7 +86,7 @@ jobs:
|
||||
with:
|
||||
toolchain: stable
|
||||
|
||||
- uses: mozilla-actions/sccache-action@v0.0.3
|
||||
- uses: Swatinem/rust-cache@v2.4.0
|
||||
|
||||
- name: Decrypt connector auth file
|
||||
env:
|
||||
|
||||
@ -26,7 +26,7 @@ env:
|
||||
#
|
||||
# See https://matklad.github.io/2021/09/04/fast-rust-builds.html#ci-workflow
|
||||
# for details.
|
||||
CARGO_INCREMENTAL: 0
|
||||
CARGO_INCREMENTAL: 1
|
||||
# Allow more retries for network requests in cargo (downloading crates) and
|
||||
# rustup (installing toolchains). This should help to reduce flaky CI failures
|
||||
# from transient network timeouts or other issues.
|
||||
@ -36,9 +36,6 @@ env:
|
||||
RUST_BACKTRACE: short
|
||||
# Use cargo's sparse index protocol
|
||||
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
|
||||
# Enable and use the sccache action for caching
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
|
||||
jobs:
|
||||
test_connectors:
|
||||
@ -77,6 +74,7 @@ jobs:
|
||||
- stripe,airwallex,bluesnap,checkout,trustpay_3ds,payu,authorizedotnet,aci,noon
|
||||
- adyen_uk,shift4,worldline,multisafepay,paypal,mollie,nexinets
|
||||
|
||||
|
||||
steps:
|
||||
- name: Ignore Tests incase of pull request
|
||||
if: github.event_name == 'pull_request' || github.event_name == 'merge_group'
|
||||
@ -117,7 +115,7 @@ jobs:
|
||||
with:
|
||||
toolchain: stable
|
||||
|
||||
- uses: mozilla-actions/sccache-action@v0.0.3
|
||||
- uses: Swatinem/rust-cache@v2.4.0
|
||||
|
||||
- uses: baptiste0928/cargo-install@v2.1.0
|
||||
if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')
|
||||
|
||||
@ -16,9 +16,7 @@ env:
|
||||
RUSTUP_MAX_RETRIES: 10
|
||||
RUST_BACKTRACE: short
|
||||
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
|
||||
CONNECTORS: "aci, adyen_uk, airwallex, authorizedotnet, bambora, bambora_3ds, bluesnap, checkout, globalpay, mollie, nexinets, nmi, shift4, stripe, trustpay, worldline"
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
CONNECTORS: aci, adyen_uk, airwallex, authorizedotnet, bambora, bambora_3ds, bluesnap, checkout, globalpay, mollie, nexinets, nmi, shift4, stripe, trustpay, worldline
|
||||
|
||||
jobs:
|
||||
runner:
|
||||
@ -35,7 +33,6 @@ jobs:
|
||||
--health-retries 5
|
||||
ports:
|
||||
- 6379:6379
|
||||
|
||||
postgres:
|
||||
image: "${{ github.event_name != 'pull_request' && 'postgres:14.5' || '' }}"
|
||||
env:
|
||||
@ -90,8 +87,9 @@ jobs:
|
||||
with:
|
||||
toolchain: stable
|
||||
|
||||
- uses: mozilla-actions/sccache-action@v0.0.3
|
||||
- name: Build and Cache Rust Dependencies
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: Swatinem/rust-cache@v2.4.0
|
||||
|
||||
- name: Install Diesel CLI with Postgres Support
|
||||
if: github.event_name != 'pull_request'
|
||||
|
||||
28
.github/workflows/validate-openapi-spec.yml
vendored
28
.github/workflows/validate-openapi-spec.yml
vendored
@ -11,32 +11,6 @@ concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
# Disable incremental compilation.
|
||||
#
|
||||
# Incremental compilation is useful as part of an edit-build-test-edit cycle,
|
||||
# as it lets the compiler avoid recompiling code that hasn't changed. However,
|
||||
# on CI, we're not making small edits; we're almost always building the entire
|
||||
# project from scratch. Thus, incremental compilation on CI actually
|
||||
# introduces *additional* overhead to support making future builds
|
||||
# faster...but no future builds will ever occur in any given CI environment.
|
||||
#
|
||||
# See https://matklad.github.io/2021/09/04/fast-rust-builds.html#ci-workflow
|
||||
# for details.
|
||||
CARGO_INCREMENTAL: 0
|
||||
# Allow more retries for network requests in cargo (downloading crates) and
|
||||
# rustup (installing toolchains). This should help to reduce flaky CI failures
|
||||
# from transient network timeouts or other issues.
|
||||
CARGO_NET_RETRY: 10
|
||||
RUSTUP_MAX_RETRIES: 10
|
||||
# Don't emit giant backtraces in the CI logs.
|
||||
RUST_BACKTRACE: short
|
||||
# Use cargo's sparse index protocol
|
||||
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
|
||||
# Enable and use the sccache action for caching
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
|
||||
jobs:
|
||||
validate_json:
|
||||
name: Validate generated OpenAPI spec file
|
||||
@ -61,8 +35,6 @@ jobs:
|
||||
with:
|
||||
toolchain: stable
|
||||
|
||||
- uses: mozilla-actions/sccache-action@v0.0.3
|
||||
|
||||
- name: Generate the OpenAPI spec file
|
||||
shell: bash
|
||||
run: cargo run --features openapi -- generate-openapi-spec
|
||||
|
||||
Reference in New Issue
Block a user