Skip to content

Commit 4cf00d4

Browse files
committed
ci: inline GitHub Actions workflows and upgrade dependencies
- Replace reusable workflow calls with inline job definitions in rust.yml and rust-publish.yml - Add explicit CI steps: checkout with submodules, Rust toolchain setup, caching, protoc installation - Add format, clippy, build, and test steps with workspace-wide flags - Implement sequential package publishing with 30s delay between meme and meme-cli - Upgrade lancedb from 0.26.2 to 0.27 - Move clippy::future_not_send allow from crate-level
1 parent f9b5d3f commit 4cf00d4

10 files changed

Lines changed: 278 additions & 549 deletions

File tree

‎.github/workflows/rust-publish.yml‎

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,36 @@ env:
99
CARGO_TERM_COLOR: always
1010

1111
jobs:
12-
call-publish:
13-
uses: qntx/workflows/.github/workflows/rust-publish.yml@main
14-
with:
15-
package: "meme meme-cli"
16-
secrets:
17-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
12+
publish:
13+
name: Build, Test & Publish
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v6
17+
with:
18+
submodules: true
19+
- uses: dtolnay/rust-toolchain@stable
20+
with:
21+
components: rustfmt, clippy
22+
- uses: Swatinem/rust-cache@v2
23+
- name: Install protoc
24+
uses: arduino/setup-protoc@v3
25+
with:
26+
repo-token: ${{ secrets.GITHUB_TOKEN }}
27+
- name: Format
28+
run: cargo fmt --all --check
29+
- name: Clippy
30+
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
31+
- name: Build
32+
run: cargo build --workspace --release --verbose
33+
- name: Test
34+
run: cargo test --workspace --verbose
35+
- name: Publish to crates.io
36+
env:
37+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
38+
run: |
39+
for pkg in meme meme-cli; do
40+
echo "Publishing $pkg..."
41+
cargo publish -p "$pkg"
42+
echo "Waiting for crates.io to index $pkg..."
43+
sleep 30
44+
done

‎.github/workflows/rust.yml‎

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,33 @@ name: Rust
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ["main"]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: ["main"]
88

99
env:
1010
CARGO_TERM_COLOR: always
1111

1212
jobs:
13-
call-ci:
14-
uses: qntx/workflows/.github/workflows/rust.yml@main
15-
with:
16-
submodules: true
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v6
17+
with:
18+
submodules: true
19+
- uses: dtolnay/rust-toolchain@stable
20+
with:
21+
components: rustfmt, clippy
22+
- uses: Swatinem/rust-cache@v2
23+
- name: Install protoc
24+
uses: arduino/setup-protoc@v3
25+
with:
26+
repo-token: ${{ secrets.GITHUB_TOKEN }}
27+
- name: Format
28+
run: cargo fmt --all --check
29+
- name: Clippy
30+
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
31+
- name: Build
32+
run: cargo build --workspace --verbose
33+
- name: Test
34+
run: cargo test --workspace --verbose

0 commit comments

Comments
 (0)