mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 09:50:01 +00:00
ci: migrate Rust workflow jobs from self-hosted to standard GitHub runners
Self-hosted DH-runners have been decommissioned. Switch all Rust build, test, and lint workflows to ubuntu-latest and use apt-based dependency installation (install-deps: true default) instead of the self-hosted path. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ef10b5d2cc
commit
0a9a709a3f
7 changed files with 13 additions and 28 deletions
10
.github/workflows/actions/setup-env/action.yml
vendored
10
.github/workflows/actions/setup-env/action.yml
vendored
|
|
@ -8,7 +8,7 @@ inputs:
|
|||
default: "cache"
|
||||
|
||||
install-deps:
|
||||
description: "Whether to install system dependencies. Set to false for self-hosted runners with pre-installed deps"
|
||||
description: "Whether to install system dependencies via apt. Set to false to install dependencies locally without sudo."
|
||||
required: false
|
||||
default: "true"
|
||||
|
||||
|
|
@ -128,9 +128,9 @@ runs:
|
|||
shell: bash
|
||||
run: sudo apt-get update && sudo apt-get install -y libpq-dev libclang-dev
|
||||
|
||||
# Auto-install missing dependencies when install-deps is false (for self-hosted runners)
|
||||
# Auto-install missing dependencies locally when install-deps is false (no sudo required)
|
||||
# Note: PATH and env vars are already set up in "Setup paths for cached tools" step
|
||||
- name: Setup system dependencies (self-hosted)
|
||||
- name: Setup system dependencies (local install)
|
||||
if: inputs.install-deps == 'false'
|
||||
shell: bash
|
||||
run: |
|
||||
|
|
@ -226,8 +226,8 @@ runs:
|
|||
with:
|
||||
repo-token: ${{ github.token }}
|
||||
|
||||
# Auto-install protoc when install-deps is false (for self-hosted runners)
|
||||
- name: Setup Protoc (self-hosted)
|
||||
# Auto-install protoc locally when install-deps is false (no sudo required)
|
||||
- name: Setup Protoc (local install)
|
||||
if: inputs.install-deps == 'false'
|
||||
shell: bash
|
||||
run: |
|
||||
|
|
|
|||
4
.github/workflows/task-build-operator.yml
vendored
4
.github/workflows/task-build-operator.yml
vendored
|
|
@ -20,8 +20,7 @@ jobs:
|
|||
outputs:
|
||||
binary-hash: ${{ steps.hash-binary.outputs.datahaven-node-hash }}
|
||||
name: Build operator binary
|
||||
runs-on:
|
||||
group: DH-runners
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
CARGO_INCREMENTAL: "0"
|
||||
|
|
@ -42,7 +41,6 @@ jobs:
|
|||
- uses: ./.github/workflows/actions/setup-env
|
||||
with:
|
||||
cache-key: BUILD-RELEASE
|
||||
install-deps: false
|
||||
|
||||
- name: Set build flags
|
||||
run: echo "RUSTFLAGS=${{ env.RUSTFLAGS }} -C linker=clang -C link-arg=-fuse-ld=mold" >> $GITHUB_ENV
|
||||
|
|
|
|||
|
|
@ -10,8 +10,7 @@ on:
|
|||
jobs:
|
||||
build-node:
|
||||
name: Build operator binary
|
||||
runs-on:
|
||||
group: DH-runners
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
CARGO_INCREMENTAL: "0"
|
||||
|
|
@ -29,8 +28,6 @@ jobs:
|
|||
- uses: ./.github/workflows/actions/setup-env
|
||||
with:
|
||||
cache-key: BUILD-RELEASE
|
||||
install-deps: false
|
||||
skip-libpq: true
|
||||
|
||||
- name: Set build flags
|
||||
run: echo "RUSTFLAGS=-C linker=clang -C link-arg=-fuse-ld=mold" >> $GITHUB_ENV
|
||||
|
|
|
|||
3
.github/workflows/task-publish-binary.yml
vendored
3
.github/workflows/task-publish-binary.yml
vendored
|
|
@ -31,8 +31,7 @@ jobs:
|
|||
retention-days: 1
|
||||
|
||||
build-binary:
|
||||
runs-on:
|
||||
group: DH-runners
|
||||
runs-on: ubuntu-latest
|
||||
needs: ["prepare-sources"]
|
||||
permissions:
|
||||
contents: read
|
||||
|
|
|
|||
11
.github/workflows/task-rust-lint.yml
vendored
11
.github/workflows/task-rust-lint.yml
vendored
|
|
@ -27,8 +27,7 @@ env:
|
|||
jobs:
|
||||
cargo-fmt:
|
||||
name: "Check format with rustfmt"
|
||||
runs-on:
|
||||
group: DH-runners
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ${{ env.WORKING_DIR }}
|
||||
|
|
@ -38,15 +37,13 @@ jobs:
|
|||
- uses: ./.github/workflows/actions/setup-env
|
||||
with:
|
||||
cache-key: FMT
|
||||
install-deps: false # Self-hosted runners have deps pre-installed
|
||||
|
||||
- name: Run cargo fmt
|
||||
run: cargo fmt --all -- --check
|
||||
|
||||
check-rust-lint:
|
||||
name: "Check lint with clippy"
|
||||
runs-on:
|
||||
group: DH-runners
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ${{ env.WORKING_DIR }}
|
||||
|
|
@ -56,7 +53,6 @@ jobs:
|
|||
- uses: ./.github/workflows/actions/setup-env
|
||||
with:
|
||||
cache-key: LINT
|
||||
install-deps: false # Self-hosted runners have deps pre-installed
|
||||
|
||||
- name: Set build flags
|
||||
run: echo "RUSTFLAGS=${{ env.RUSTFLAGS }} -C linker=clang -C link-arg=-fuse-ld=mold" >> $GITHUB_ENV
|
||||
|
|
@ -66,8 +62,7 @@ jobs:
|
|||
|
||||
check-cargo-sort:
|
||||
name: "Check Cargo sort"
|
||||
runs-on:
|
||||
group: DH-runners
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
defaults:
|
||||
run:
|
||||
|
|
|
|||
4
.github/workflows/task-rust-tests.yml
vendored
4
.github/workflows/task-rust-tests.yml
vendored
|
|
@ -13,8 +13,7 @@ permissions:
|
|||
jobs:
|
||||
rust-tests:
|
||||
name: Run Operator Rust tests
|
||||
runs-on:
|
||||
group: DH-runners
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
CARGO_INCREMENTAL: "0"
|
||||
|
|
@ -32,7 +31,6 @@ jobs:
|
|||
- uses: ./.github/workflows/actions/setup-env
|
||||
with:
|
||||
cache-key: "TEST"
|
||||
install-deps: false
|
||||
|
||||
- name: Set build flags
|
||||
run: echo "RUSTFLAGS=${{ env.RUSTFLAGS }} -C linker=clang -C link-arg=-fuse-ld=mold" >> $GITHUB_ENV
|
||||
|
|
|
|||
4
.github/workflows/task-warm-sccache.yml
vendored
4
.github/workflows/task-warm-sccache.yml
vendored
|
|
@ -15,8 +15,7 @@ permissions:
|
|||
jobs:
|
||||
warm-cache:
|
||||
name: Warm sccache cache
|
||||
runs-on:
|
||||
group: DH-runners
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
CARGO_INCREMENTAL: "0"
|
||||
|
|
@ -34,7 +33,6 @@ jobs:
|
|||
- uses: ./.github/workflows/actions/setup-env
|
||||
with:
|
||||
cache-key: WARM
|
||||
install-deps: false
|
||||
|
||||
- name: Set build flags
|
||||
run: echo "RUSTFLAGS=${{ env.RUSTFLAGS }} -C linker=clang -C link-arg=-fuse-ld=mold" >> $GITHUB_ENV
|
||||
|
|
|
|||
Loading…
Reference in a new issue