From 6ec33708f863e1222fbc7f7f584fcba299d22e77 Mon Sep 17 00:00:00 2001 From: kould Date: Sun, 14 Jun 2026 20:21:47 +0800 Subject: [PATCH 1/5] ci: use self-hosted runners --- .github/workflows/ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e85c69e7..775f0971 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: # 1 check: name: Rust project check - runs-on: ubuntu-latest + runs-on: [self-hosted, Linux, X64] steps: - uses: actions/checkout@v2 - name: Install latest nightly @@ -41,7 +41,7 @@ jobs: # 2 fmt: name: Rust fmt - runs-on: ubuntu-latest + runs-on: [self-hosted, Linux, X64] steps: - uses: actions/checkout@v2 - name: Install latest nightly @@ -59,7 +59,7 @@ jobs: # 3 e2e: name: Rust e2e sqllogictest - runs-on: ubuntu-latest + runs-on: [self-hosted, Linux, X64] steps: - uses: actions/checkout@v2 - name: Install latest nightly @@ -80,7 +80,7 @@ jobs: # 4 wasm-tests: name: Wasm cargo tests - runs-on: ubuntu-latest + runs-on: [self-hosted, Linux, X64] steps: - uses: actions/checkout@v2 @@ -106,7 +106,7 @@ jobs: # 5 wasm-examples: name: Wasm examples (nodejs) - runs-on: ubuntu-latest + runs-on: [self-hosted, Linux, X64] steps: - uses: actions/checkout@v2 @@ -135,7 +135,7 @@ jobs: # 6 native-examples: name: Native examples - runs-on: ubuntu-latest + runs-on: [self-hosted, Linux, X64] steps: - uses: actions/checkout@v2 @@ -150,7 +150,7 @@ jobs: # 7 python-tests: name: Python bindings tests - runs-on: ubuntu-latest + runs-on: [self-hosted, Linux, X64] steps: - uses: actions/checkout@v2 From 53cd247bc9ffc15e93d1f56734d3c07b03865a4e Mon Sep 17 00:00:00 2001 From: kould Date: Sun, 14 Jun 2026 20:29:49 +0800 Subject: [PATCH 2/5] ci: avoid duplicate branch runs --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 775f0971..935ef135 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,8 @@ name: CI on: push: + branches: + - main pull_request: env: From f3946df07a0f13223c55ee9bbc197dd9e6153cd6 Mon Sep 17 00:00:00 2001 From: kould Date: Sun, 14 Jun 2026 20:52:44 +0800 Subject: [PATCH 3/5] ci: rely on preinstalled rust toolchain --- .github/workflows/ci.yml | 58 ---------------------------------------- 1 file changed, 58 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 935ef135..23ecdbe0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,27 +17,15 @@ jobs: runs-on: [self-hosted, Linux, X64] steps: - uses: actions/checkout@v2 - - name: Install latest nightly - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - components: rustfmt, clippy - - name: Install Protoc uses: arduino/setup-protoc@v2 - # `cargo check` command here will use installed `nightly` - # as it is set as an "override" for current directory - - name: Run cargo check run: make cargo-check - - name: Run cargo build run: make build - - name: Run cargo test run: make test # 2 @@ -46,16 +34,6 @@ jobs: runs-on: [self-hosted, Linux, X64] steps: - uses: actions/checkout@v2 - - name: Install latest nightly - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - components: rustfmt, clippy - - # `cargo check` command here will use installed `nightly` - # as it is set as an "override" for current directory - - name: Run cargo fmt run: make fmt # 3 @@ -64,19 +42,9 @@ jobs: runs-on: [self-hosted, Linux, X64] steps: - uses: actions/checkout@v2 - - name: Install latest nightly - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - components: rustfmt, clippy - - name: Install Protoc uses: arduino/setup-protoc@v2 - # `cargo check` command here will use installed `nightly` - # as it is set as an "override" for current directory - - name: Run sqllogictest suite run: make test-slt # 4 @@ -86,13 +54,6 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Install stable with wasm target - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - target: wasm32-unknown-unknown - override: true - - name: Setup Node.js uses: actions/setup-node@v4 with: @@ -112,13 +73,6 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Install stable with wasm target - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - target: wasm32-unknown-unknown - override: true - - name: Setup Node.js uses: actions/setup-node@v4 with: @@ -141,12 +95,6 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Install stable toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - - name: Run native examples run: make native-examples # 7 @@ -156,12 +104,6 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Install stable toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - - name: Setup Python uses: actions/setup-python@v5 with: From bc43bef6a7c96bd7e5ad93bdebffb6415e98e7be Mon Sep 17 00:00:00 2001 From: kould Date: Sun, 14 Jun 2026 20:56:51 +0800 Subject: [PATCH 4/5] ci: use runner rust path --- .github/workflows/ci.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 23ecdbe0..d30ec6a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,8 +17,8 @@ jobs: runs-on: [self-hosted, Linux, X64] steps: - uses: actions/checkout@v2 - - name: Install Protoc - uses: arduino/setup-protoc@v2 + - name: Use preinstalled Rust + run: echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" - name: Run cargo check run: make cargo-check @@ -34,6 +34,9 @@ jobs: runs-on: [self-hosted, Linux, X64] steps: - uses: actions/checkout@v2 + - name: Use preinstalled Rust + run: echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" + - name: Run cargo fmt run: make fmt # 3 @@ -42,8 +45,8 @@ jobs: runs-on: [self-hosted, Linux, X64] steps: - uses: actions/checkout@v2 - - name: Install Protoc - uses: arduino/setup-protoc@v2 + - name: Use preinstalled Rust + run: echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" - name: Run sqllogictest suite run: make test-slt @@ -54,6 +57,9 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Use preinstalled Rust + run: echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" + - name: Setup Node.js uses: actions/setup-node@v4 with: @@ -73,6 +79,9 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Use preinstalled Rust + run: echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" + - name: Setup Node.js uses: actions/setup-node@v4 with: @@ -95,6 +104,9 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Use preinstalled Rust + run: echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" + - name: Run native examples run: make native-examples # 7 @@ -104,6 +116,9 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Use preinstalled Rust + run: echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" + - name: Setup Python uses: actions/setup-python@v5 with: From 13fcf4ea723ece716f4d06b876c8ff43dceb80b7 Mon Sep 17 00:00:00 2001 From: kould Date: Sun, 14 Jun 2026 21:57:07 +0800 Subject: [PATCH 5/5] ci: use preinstalled node and wasm tools --- .github/workflows/ci.yml | 67 +++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 39 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d30ec6a5..cb79780a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,8 +17,10 @@ jobs: runs-on: [self-hosted, Linux, X64] steps: - uses: actions/checkout@v2 - - name: Use preinstalled Rust - run: echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" + - name: Use preinstalled tools + run: | + echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" + echo "$HOME/actions-runner/externals/node20/bin" >> "$GITHUB_PATH" - name: Run cargo check run: make cargo-check @@ -34,8 +36,10 @@ jobs: runs-on: [self-hosted, Linux, X64] steps: - uses: actions/checkout@v2 - - name: Use preinstalled Rust - run: echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" + - name: Use preinstalled tools + run: | + echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" + echo "$HOME/actions-runner/externals/node20/bin" >> "$GITHUB_PATH" - name: Run cargo fmt run: make fmt @@ -45,8 +49,10 @@ jobs: runs-on: [self-hosted, Linux, X64] steps: - uses: actions/checkout@v2 - - name: Use preinstalled Rust - run: echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" + - name: Use preinstalled tools + run: | + echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" + echo "$HOME/actions-runner/externals/node20/bin" >> "$GITHUB_PATH" - name: Run sqllogictest suite run: make test-slt @@ -57,18 +63,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Use preinstalled Rust - run: echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: 20 - - - name: Install wasm-pack - uses: jetli/wasm-pack-action@v0.4.0 - with: - version: latest + - name: Use preinstalled tools + run: | + echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" + echo "$HOME/actions-runner/externals/node20/bin" >> "$GITHUB_PATH" - name: Run wasm-bindgen tests (wasm32 target) run: make test-wasm @@ -79,18 +77,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Use preinstalled Rust - run: echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: 20 - - - name: Install wasm-pack - uses: jetli/wasm-pack-action@v0.4.0 - with: - version: latest + - name: Use preinstalled tools + run: | + echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" + echo "$HOME/actions-runner/externals/node20/bin" >> "$GITHUB_PATH" - name: Build wasm package run: make wasm-build @@ -104,8 +94,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Use preinstalled Rust - run: echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" + - name: Use preinstalled tools + run: | + echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" + echo "$HOME/actions-runner/externals/node20/bin" >> "$GITHUB_PATH" - name: Run native examples run: make native-examples @@ -116,13 +108,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Use preinstalled Rust - run: echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" - - - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version: "3.12" + - name: Use preinstalled tools + run: | + echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" + echo "$HOME/actions-runner/externals/node20/bin" >> "$GITHUB_PATH" - name: Run python binding tests run: make test-python