Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
ci: move stable-toolchain and V2 checks to self-hosted runners (#14081)
Pa1d8f9262a968f
diff --git a/.github/workflows/CI-pr.yml b/.github/workflows/CI-pr.ymlindex 4cd72596dd..57c8304bdb 100644--- a/.github/workflows/CI-pr.yml+++ b/.github/workflows/CI-pr.yml@@ -46,7 +46,7 @@ jobs:- name: Checkout repository with tokenif: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }}- uses: actions/checkout@v6+ uses: actions/checkout@v7with:fetch-depth: 0ref: ${{ github.event.pull_request.head.ref }}@@ -54,7 +54,7 @@ jobs:- name: Checkout repository for forkif: ${{ github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name }}- uses: actions/checkout@v6+ uses: actions/checkout@v7- name: Install Rustuses: dtolnay/rust-toolchain@master@@ -87,8 +87,6 @@ jobs:if: ${{ ! startsWith(github.event.pull_request.base.ref, 'hotfix-') }}env:- # Use `sccache` for caching compilation artifacts- # RUSTC_WRAPPER: sccacheRUSTFLAGS: "-D warnings"strategy:@@ -96,11 +94,10 @@ jobs:matrix:runner:- ubuntu-latest- - hyperswitch-runnerssteps:- name: Checkout repository- uses: actions/checkout@v6+ uses: actions/checkout@v7- name: Install mold linkeruses: rui314/setup-mold@v1@@ -135,20 +132,13 @@ jobs:test:name: Run tests on stable toolchain- runs-on: ${{ matrix.runner }}+ runs-on: hyperswitch-runnersenv:# Use `sccache` for caching compilation artifacts- # RUSTC_WRAPPER: sccache+ RUSTC_WRAPPER: sccacheRUSTFLAGS: "-D warnings"- strategy:- fail-fast: false- matrix:- runner:- - ubuntu-latest- - hyperswitch-runners-steps:- name: Generate a tokenif: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }}@@ -160,11 +150,11 @@ jobs:- name: Checkout repository for forkif: ${{ (github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name) }}- uses: actions/checkout@v6+ uses: actions/checkout@v7- name: Checkout repository with tokenif: ${{ (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) }}- uses: actions/checkout@v6+ uses: actions/checkout@v7with:fetch-depth: 0ref: ${{ github.event.pull_request.head.ref }}@@ -187,10 +177,11 @@ jobs:with:repo-token: ${{ secrets.GITHUB_TOKEN }}- - name: Install rust cache- uses: Swatinem/[email protected]+ - name: Install sccache+ uses: taiki-e/install-action@v2with:- save-if: false+ tool: sccache+ checksum: true- name: Install justuses: taiki-e/install-action@v2@@ -231,7 +222,7 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout repository- uses: actions/checkout@v6+ uses: actions/checkout@v7- name: Spell checkuses: crate-ci/typos@master@@ -241,7 +232,7 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout repository- uses: actions/checkout@v6+ uses: actions/checkout@v7- name: Spell check specific directoriesuses: crate-ci/[email protected]@@ -260,11 +251,15 @@ jobs:check-v2:name: Check compilation for V2 features- runs-on: ubuntu-latest+ runs-on: hyperswitch-runners++ env:+ # Use `sccache` for caching compilation artifacts+ RUSTC_WRAPPER: sccachesteps:- name: Checkout repository- uses: actions/checkout@v6+ uses: actions/checkout@v7- name: Install mold linkeruses: rui314/setup-mold@v1@@ -283,10 +278,11 @@ jobs:with:repo-token: ${{ secrets.GITHUB_TOKEN }}- - name: Install rust cache- uses: Swatinem/[email protected]+ - name: Install sccache+ uses: taiki-e/install-action@v2with:- save-if: false+ tool: sccache+ checksum: true- name: Install justuses: taiki-e/install-action@v2diff --git a/.github/workflows/CI-push.yml b/.github/workflows/CI-push.ymlindex 30dc70dcd7..be6fd2318a 100644--- a/.github/workflows/CI-push.yml+++ b/.github/workflows/CI-push.yml@@ -40,7 +40,7 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout repository- uses: actions/checkout@v6+ uses: actions/checkout@v7- name: Install Rustuses: dtolnay/rust-toolchain@master@@ -57,8 +57,6 @@ jobs:runs-on: ${{ matrix.runner }}env:- # Use `sccache` for caching compilation artifacts- # RUSTC_WRAPPER: sccacheRUSTFLAGS: "-D warnings"strategy:@@ -69,7 +67,7 @@ jobs:steps:- name: Checkout repository- uses: actions/checkout@v6+ uses: actions/checkout@v7- name: Install mold linkeruses: rui314/setup-mold@v1@@ -93,13 +91,8 @@ jobs:with:repo-token: ${{ secrets.GITHUB_TOKEN }}- # - name: Install sccache- # uses: taiki-e/install-action@v2- # with:- # tool: sccache- # checksum: true-- - uses: Swatinem/[email protected]+ - name: Install rust cache+ uses: Swatinem/[email protected]with:save-if: ${{ github.event_name == 'push' }}@@ -143,7 +136,7 @@ jobs:# steps:# - name: Checkout repository- # uses: actions/checkout@v6+ # uses: actions/checkout@v7# - name: Run cargo-deny# uses: EmbarkStudios/[email protected]@@ -152,24 +145,17 @@ jobs:test:name: Run tests on stable toolchain- runs-on: ${{ matrix.runner }}+ runs-on: hyperswitch-runners-mergeenv:# Use `sccache` for caching compilation artifacts- # RUSTC_WRAPPER: sccache+ RUSTC_WRAPPER: sccacheRUSTFLAGS: "-D warnings"CARGO_BUILD_JOBS: 2- strategy:- fail-fast: true- matrix:- runner:- - ubuntu-latest- - hyperswitch-runners-steps:- name: Checkout repository- uses: actions/checkout@v6+ uses: actions/checkout@v7- name: Install mold linkeruses: rui314/setup-mold@v1@@ -216,9 +202,11 @@ jobs:# tool: cargo-nextest# checksum: true- - uses: Swatinem/[email protected]+ - name: Install sccache+ uses: taiki-e/install-action@v2with:- save-if: ${{ github.event_name == 'push' }}+ tool: sccache+ checksum: true- name: Run clippy (redis-rs backend)shell: bash@@ -243,7 +231,7 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout repository- uses: actions/checkout@v6+ uses: actions/checkout@v7- name: Spell checkuses: crate-ci/typos@master@@ -253,7 +241,7 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout repository- uses: actions/checkout@v6+ uses: actions/checkout@v7- name: Spell check specific directoriesuses: crate-ci/[email protected]@@ -272,11 +260,15 @@ jobs:check-v2:name: Check compilation for V2 features- runs-on: ubuntu-latest+ runs-on: hyperswitch-runners-merge++ env:+ # Use `sccache` for caching compilation artifacts+ RUSTC_WRAPPER: sccachesteps:- name: Checkout repository- uses: actions/checkout@v6+ uses: actions/checkout@v7- name: Install mold linkeruses: rui314/setup-mold@v1@@ -294,8 +286,11 @@ jobs:with:repo-token: ${{ secrets.GITHUB_TOKEN }}- - name: Install rust cache- uses: Swatinem/[email protected]+ - name: Install sccache+ uses: taiki-e/install-action@v2+ with:+ tool: sccache+ checksum: true- name: Run cargo check enabling only the release and v2 features (redis-rs backend)shell: bash