Optimize ci ubicloud (#1208)

This commit is contained in:
loverustfs
2025-12-19 23:22:45 +08:00
committed by GitHub
parent abe8a50b5a
commit 8e0aeb4fdc
4 changed files with 197 additions and 58 deletions
+23 -7
View File
@@ -101,11 +101,19 @@ jobs:
uses: crate-ci/typos@master
test-and-lint:
name: Test and Lint
name: Test and Lint (${{ matrix.arch }})
needs: skip-check
if: needs.skip-check.outputs.should_skip != 'true'
runs-on: ubicloud-standard-4
runs-on: ${{ matrix.runner }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
include:
- arch: x86_64
runner: ubicloud-standard-4
- arch: aarch64
runner: ubicloud-standard-4-arm
steps:
- name: Checkout repository
uses: actions/checkout@v6
@@ -114,7 +122,7 @@ jobs:
uses: ./.github/actions/setup
with:
rust-version: stable
cache-shared-key: ci-test-${{ hashFiles('**/Cargo.lock') }}
cache-shared-key: ci-test-${{ matrix.arch }}-${{ hashFiles('**/Cargo.lock') }}
github-token: ${{ secrets.GITHUB_TOKEN }}
cache-save-if: ${{ github.ref == 'refs/heads/main' }}
@@ -133,17 +141,25 @@ jobs:
run: cargo clippy --all-targets --all-features -- -D warnings
e2e-tests:
name: End-to-End Tests
name: End-to-End Tests (${{ matrix.arch }})
needs: skip-check
if: needs.skip-check.outputs.should_skip != 'true'
runs-on: ubicloud-standard-4
runs-on: ${{ matrix.runner }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
include:
- arch: x86_64
runner: ubicloud-standard-4
- arch: aarch64
runner: ubicloud-standard-4-arm
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Clean up previous test run
run: |
run: |matrix.arch }}-${{
rm -rf /tmp/rustfs
rm -f /tmp/rustfs.log
@@ -169,7 +185,7 @@ jobs:
cargo build -p rustfs --bins --jobs 4
- name: Run end-to-end tests
run: |
run: |matrix.arch }}-${{
s3s-e2e --version
./scripts/e2e-run.sh ./target/debug/rustfs /tmp/rustfs