From 1d111464f9e77c7209bb55cfbcc6719313c20493 Mon Sep 17 00:00:00 2001 From: loverustfs Date: Fri, 19 Dec 2025 09:15:26 +0800 Subject: [PATCH] Return to GitHub hosting Return to GitHub hosting Signed-off-by: loverustfs --- .github/workflows/ci.yml | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af5731c8..2aa60f5c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, @@ -62,7 +62,6 @@ on: permissions: contents: read - concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -70,7 +69,6 @@ concurrency: env: CARGO_TERM_COLOR: always RUST_BACKTRACE: 1 - CARGO_BUILD_JOBS: 4 jobs: @@ -95,10 +93,9 @@ jobs: typos: name: Typos - - runs-on: [self-hosted, linux, x64] + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - name: Typos check with custom config file uses: crate-ci/typos@master @@ -107,30 +104,24 @@ jobs: name: Test and Lint needs: skip-check if: needs.skip-check.outputs.should_skip != 'true' - - runs-on: [self-hosted, linux, x64] + runs-on: ubuntu-latest timeout-minutes: 60 steps: - - - name: Checkout repository - uses: actions/checkout@v6 + uses: actions/checkout@v4 - name: Setup Rust environment uses: ./.github/actions/setup with: rust-version: stable - cache-shared-key: ci-test-${{ hashFiles('**/Cargo.lock') }} github-token: ${{ secrets.GITHUB_TOKEN }} cache-save-if: ${{ github.ref == 'refs/heads/main' }} - - name: Install cargo-nextest uses: taiki-e/install-action@nextest - name: Run tests - run: | cargo nextest run --all --exclude e2e_test cargo test --all --doc @@ -145,19 +136,16 @@ jobs: name: End-to-End Tests needs: skip-check if: needs.skip-check.outputs.should_skip != 'true' - - runs-on: [self-hosted, linux, x64] + runs-on: ubuntu-latest timeout-minutes: 30 steps: - name: Checkout repository - uses: actions/checkout@v6 - + uses: actions/checkout@v4 - name: Clean up previous test run run: | rm -rf /tmp/rustfs rm -f /tmp/rustfs.log - # 如果有 docker 容器残留,也建议清理 - name: Setup Rust environment uses: ./.github/actions/setup @@ -177,7 +165,7 @@ jobs: - name: Build debug binary run: | touch rustfs/build.rs - # 限制并发,防止 build --bins 导致 OOM + # Limit concurrency to prevent OOM cargo build -p rustfs --bins --jobs 4 - name: Run end-to-end tests