-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: minor refactors and improvements (#7308)
- Loading branch information
1 parent
9032165
commit 9ba5ee6
Showing
16 changed files
with
104 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,6 @@ name: CI-pr | |
|
||
on: | ||
pull_request: | ||
# paths: | ||
# - ".github/workflows/**" | ||
# - "crates/**" | ||
# - "examples/**" | ||
# - "Cargo.lock" | ||
# - "Cargo.toml" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
|
@@ -128,24 +122,24 @@ jobs: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Install sccache | ||
# uses: taiki-e/install-action@v2.33.28 | ||
# uses: taiki-e/install-action@v2 | ||
# with: | ||
# tool: sccache | ||
# checksum: true | ||
|
||
- name: Install rust cache | ||
uses: Swatinem/[email protected] | ||
with: | ||
save-if: false | ||
with: | ||
save-if: false | ||
|
||
- name: Install cargo-hack | ||
uses: taiki-e/install-action@v2.33.28 | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: cargo-hack | ||
checksum: true | ||
|
||
- name: Install just | ||
uses: taiki-e/install-action@v2.41.10 | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: just | ||
checksum: true | ||
|
@@ -236,24 +230,24 @@ jobs: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Install sccache | ||
# uses: taiki-e/install-action@v2.33.28 | ||
# uses: taiki-e/install-action@v2 | ||
# with: | ||
# tool: sccache | ||
# checksum: true | ||
|
||
- name: Install rust cache | ||
uses: Swatinem/[email protected] | ||
with: | ||
save-if: false | ||
with: | ||
save-if: false | ||
|
||
- name: Install cargo-hack | ||
uses: taiki-e/install-action@v2.33.28 | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: cargo-hack | ||
checksum: true | ||
|
||
- name: Install just | ||
uses: taiki-e/install-action@v2.41.10 | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: just | ||
checksum: true | ||
|
@@ -263,7 +257,7 @@ jobs: | |
run: .github/scripts/install-jq.sh | ||
|
||
# - name: Install cargo-nextest | ||
# uses: taiki-e/install-action@v2.33.28 | ||
# uses: taiki-e/install-action@v2 | ||
# with: | ||
# tool: cargo-nextest | ||
# checksum: true | ||
|
@@ -333,11 +327,11 @@ jobs: | |
|
||
- name: Install rust cache | ||
uses: Swatinem/[email protected] | ||
with: | ||
save-if: false | ||
with: | ||
save-if: false | ||
|
||
- name: Install just | ||
uses: taiki-e/install-action@v2.41.10 | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: just | ||
checksum: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,6 @@ on: | |
push: | ||
branches: | ||
- main | ||
# paths: | ||
# - ".github/workflows/**" | ||
# - "crates/**" | ||
# - "examples/**" | ||
# - "Cargo.lock" | ||
# - "Cargo.toml" | ||
|
||
merge_group: | ||
types: | ||
|
@@ -19,6 +13,27 @@ 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 | ||
|
||
jobs: | ||
formatting: | ||
name: Check formatting | ||
|
@@ -77,9 +92,9 @@ jobs: | |
uses: arduino/setup-protoc@v3 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Install sccache | ||
# uses: taiki-e/install-action@v2.33.28 | ||
# uses: taiki-e/install-action@v2 | ||
# with: | ||
# tool: sccache | ||
# checksum: true | ||
|
@@ -89,12 +104,13 @@ jobs: | |
save-if: ${{ github.event_name == 'push' }} | ||
|
||
- name: Install cargo-hack | ||
uses: baptiste0928/cargo-install@v2.2.0 | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
crate: cargo-hack | ||
tool: cargo-hack | ||
checksum: true | ||
|
||
- name: Install just | ||
uses: taiki-e/install-action@v2.41.10 | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: just | ||
checksum: true | ||
|
@@ -171,18 +187,19 @@ jobs: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Install sccache | ||
# uses: taiki-e/install-action@v2.33.28 | ||
# uses: taiki-e/install-action@v2 | ||
# with: | ||
# tool: sccache | ||
# checksum: true | ||
|
||
- name: Install cargo-hack | ||
uses: baptiste0928/cargo-install@v2.2.0 | ||
uses: taiki-e/install-action@v2.41.10 | ||
with: | ||
crate: cargo-hack | ||
tool: cargo-hack | ||
checksum: true | ||
|
||
- name: Install just | ||
uses: taiki-e/install-action@v2.41.10 | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: just | ||
checksum: true | ||
|
@@ -192,9 +209,10 @@ jobs: | |
run: .github/scripts/install-jq.sh | ||
|
||
# - name: Install cargo-nextest | ||
# uses: baptiste0928/cargo-install@v2.2.0 | ||
# uses: taiki-e/install-action@v2 | ||
# with: | ||
# crate: cargo-nextest | ||
# tool: cargo-nextest | ||
# checksum: true | ||
|
||
- uses: Swatinem/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,8 +36,6 @@ env: | |
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 | ||
|
||
jobs: | ||
test_connectors: | ||
|
@@ -87,7 +85,7 @@ jobs: | |
toolchain: stable 2 weeks ago | ||
|
||
- uses: Swatinem/[email protected] | ||
with: | ||
with: | ||
save-if: false | ||
|
||
- name: Decrypt connector auth file | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,8 +31,6 @@ env: | |
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 | ||
RUST_MIN_STACK: 10485760 | ||
|
||
jobs: | ||
|
@@ -77,7 +75,7 @@ jobs: | |
if: (github.event_name == 'merge_group') || (github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name) | ||
shell: bash | ||
run: | | ||
echo "Skipped tests as the event is merge_group or pull_request from external repository" | ||
echo "Skipped tests as the event is merge_group or pull_request from external repository" | ||
exit 0 | ||
- name: Checkout repository | ||
|
@@ -123,16 +121,16 @@ jobs: | |
|
||
- name: Build and Cache Rust Dependencies | ||
uses: Swatinem/[email protected] | ||
with: | ||
save-if: false | ||
with: | ||
save-if: false | ||
|
||
- name: Install Diesel CLI with Postgres Support | ||
uses: baptiste0928/cargo-install@v2.2.0 | ||
uses: baptiste0928/cargo-install@v3.3.0 | ||
if: ${{ (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) }} | ||
with: | ||
crate: diesel_cli | ||
features: postgres | ||
args: "--no-default-features" | ||
args: --no-default-features | ||
|
||
- name: Diesel migration run | ||
if: ${{ (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) }} | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.