Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 19 additions & 8 deletions .github/workflows/plugins-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ jobs:
- uses: actions/setup-node@v6
with:
node-version: 20
cache: npm
cache-dependency-path: shared/plugins/sdk/node/package-lock.json

- name: Test
run: node --test shared/plugins/sdk/node/test/*.test.mjs
Expand Down Expand Up @@ -79,6 +81,7 @@ jobs:
with:
distribution: temurin
java-version: '21'
cache: maven

- name: Build and test on Java 8
env:
Expand All @@ -94,6 +97,12 @@ jobs:
# The SDK supports Rust 1.87 and newer: the tests run on that release,
# and formatting and lints on the toolchain rust-toolchain.toml pins.
- uses: dtolnay/rust-toolchain@1.87
- name: Cache Rust SDK dependencies
uses: Swatinem/rust-cache@v2
with:
workspaces: shared/plugins/sdk/rust -> target
shared-key: sdk-rust
cache-on-failure: true
- name: Test on the oldest supported Rust
run: cargo +1.87 test --locked --manifest-path shared/plugins/sdk/rust/Cargo.toml
- uses: dtolnay/rust-toolchain@1.100.0
Expand Down Expand Up @@ -137,6 +146,8 @@ jobs:
- uses: actions/setup-node@v6
with:
node-version: 20
cache: npm
cache-dependency-path: shared/plugins/sdk/node/package-lock.json
- name: Set up Java 8 runtime
id: java8
uses: actions/setup-java@v5
Expand All @@ -148,22 +159,22 @@ jobs:
with:
distribution: temurin
java-version: '21'
cache: maven
- uses: dtolnay/rust-toolchain@1.100.0
# The Go sample builds with the release the SDK's go.mod names.
- uses: actions/setup-go@v7
with:
go-version-file: shared/plugins/sdk/go/go.mod
cache: false

- uses: actions/cache@v6
- name: Cache Cargo dependencies
uses: Swatinem/rust-cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
rust/target
shared/plugins/sdk/rust/target
key: sdk-e2e-${{ runner.os }}-${{ hashFiles('rust/Cargo.lock', 'shared/plugins/sdk/rust/Cargo.lock') }}
restore-keys: sdk-e2e-${{ runner.os }}-
workspaces: |
rust -> target
shared/plugins/sdk/rust -> target
shared-key: sdk-e2e
cache-on-failure: true

- name: Run the SDK scenarios against this Core
env:
Expand Down
20 changes: 11 additions & 9 deletions .github/workflows/rust-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,12 @@ jobs:
with:
components: clippy, rustfmt
targets: x86_64-pc-windows-msvc
# Only downloaded crates are cached: build output would not fit the
# repository cache quota next to the SDK end-to-end cache.
- uses: actions/cache@v6
- name: Cache Cargo dependencies
uses: Swatinem/rust-cache@v2
with:
path: |
~/.cargo/registry/index
~/.cargo/registry/cache
~/.cargo/git/db
key: rust-core-cargo-${{ hashFiles('rust/Cargo.lock', 'scripts/rust-core/comment-lexer/Cargo.lock') }}
restore-keys: rust-core-cargo-
workspaces: rust -> target
shared-key: rust-core-linux
cache-on-failure: true

- name: Check formatting
run: cargo fmt --manifest-path rust/Cargo.toml --all -- --check
Expand Down Expand Up @@ -148,6 +144,12 @@ jobs:
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@1.100.0
- name: Cache Cargo dependencies
uses: Swatinem/rust-cache@v2
with:
workspaces: rust -> target
shared-key: rust-core-host
cache-on-failure: true

- name: Test
run: |
Expand Down
Loading