chore(action): add self-host runner support. (#3155)

This commit is contained in:
majinghe
2026-06-01 15:11:50 +08:00
committed by GitHub
parent 97dd825468
commit 4d2f13af6f
8 changed files with 25 additions and 25 deletions
+2 -2
View File
@@ -40,7 +40,7 @@ env:
jobs: jobs:
security-audit: security-audit:
name: Security Audit name: Security Audit
runs-on: ubicloud-standard-2 runs-on: rustfs
timeout-minutes: 15 timeout-minutes: 15
steps: steps:
- name: Checkout repository - name: Checkout repository
@@ -65,7 +65,7 @@ jobs:
dependency-review: dependency-review:
name: Dependency Review name: Dependency Review
runs-on: ubicloud-standard-2 runs-on: rustfs
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
permissions: permissions:
contents: read contents: read
+7 -7
View File
@@ -73,7 +73,7 @@ jobs:
# Build strategy check - determine build type based on trigger # Build strategy check - determine build type based on trigger
build-check: build-check:
name: Build Strategy Check name: Build Strategy Check
runs-on: ubicloud-standard-2 runs-on: rustfs
outputs: outputs:
should_build: ${{ steps.check.outputs.should_build }} should_build: ${{ steps.check.outputs.should_build }}
build_type: ${{ steps.check.outputs.build_type }} build_type: ${{ steps.check.outputs.build_type }}
@@ -146,7 +146,7 @@ jobs:
# Build RustFS binaries # Build RustFS binaries
prepare-platform-matrix: prepare-platform-matrix:
name: Prepare Platform Matrix name: Prepare Platform Matrix
runs-on: ubicloud-standard-2 runs-on: rustfs
outputs: outputs:
matrix: ${{ steps.select.outputs.matrix }} matrix: ${{ steps.select.outputs.matrix }}
selected: ${{ steps.select.outputs.selected }} selected: ${{ steps.select.outputs.selected }}
@@ -549,7 +549,7 @@ jobs:
name: Build Summary name: Build Summary
needs: [ build-check, build-rustfs ] needs: [ build-check, build-rustfs ]
if: always() && needs.build-check.outputs.should_build == 'true' if: always() && needs.build-check.outputs.should_build == 'true'
runs-on: ubicloud-standard-2 runs-on: rustfs
steps: steps:
- name: Build completion summary - name: Build completion summary
shell: bash shell: bash
@@ -601,7 +601,7 @@ jobs:
name: Create GitHub Release name: Create GitHub Release
needs: [ build-check, build-rustfs ] needs: [ build-check, build-rustfs ]
if: startsWith(github.ref, 'refs/tags/') && needs.build-check.outputs.build_type != 'development' if: startsWith(github.ref, 'refs/tags/') && needs.build-check.outputs.build_type != 'development'
runs-on: ubicloud-standard-2 runs-on: rustfs
permissions: permissions:
contents: write contents: write
outputs: outputs:
@@ -687,7 +687,7 @@ jobs:
name: Upload Release Assets name: Upload Release Assets
needs: [ build-check, build-rustfs, create-release ] needs: [ build-check, build-rustfs, create-release ]
if: startsWith(github.ref, 'refs/tags/') && needs.build-check.outputs.build_type != 'development' if: startsWith(github.ref, 'refs/tags/') && needs.build-check.outputs.build_type != 'development'
runs-on: ubicloud-standard-2 runs-on: rustfs
permissions: permissions:
contents: write contents: write
actions: read actions: read
@@ -768,7 +768,7 @@ jobs:
name: Update Latest Version name: Update Latest Version
needs: [ build-check, upload-release-assets ] needs: [ build-check, upload-release-assets ]
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
runs-on: ubicloud-standard-2 runs-on: rustfs
steps: steps:
- name: Update latest.json - name: Update latest.json
env: env:
@@ -818,7 +818,7 @@ jobs:
name: Publish Release name: Publish Release
needs: [ build-check, create-release, upload-release-assets ] needs: [ build-check, create-release, upload-release-assets ]
if: startsWith(github.ref, 'refs/tags/') && needs.build-check.outputs.build_type != 'development' if: startsWith(github.ref, 'refs/tags/') && needs.build-check.outputs.build_type != 'development'
runs-on: ubicloud-standard-2 runs-on: rustfs
permissions: permissions:
contents: write contents: write
steps: steps:
+6 -6
View File
@@ -78,7 +78,7 @@ jobs:
permissions: permissions:
actions: write actions: write
contents: read contents: read
runs-on: ubicloud-standard-2 runs-on: rustfs
outputs: outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }} should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps: steps:
@@ -95,7 +95,7 @@ jobs:
name: Typos name: Typos
needs: skip-check needs: skip-check
if: needs.skip-check.outputs.should_skip != 'true' if: needs.skip-check.outputs.should_skip != 'true'
runs-on: ubicloud-standard-2 runs-on: rustfs
steps: steps:
- uses: actions/checkout@v6 - uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable - uses: dtolnay/rust-toolchain@stable
@@ -106,7 +106,7 @@ jobs:
name: Test and Lint name: Test and Lint
needs: skip-check needs: skip-check
if: needs.skip-check.outputs.should_skip != 'true' if: needs.skip-check.outputs.should_skip != 'true'
runs-on: ubicloud-standard-4 runs-on: rustfs
timeout-minutes: 60 timeout-minutes: 60
env: env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
@@ -143,7 +143,7 @@ jobs:
name: Build RustFS Debug Binary name: Build RustFS Debug Binary
needs: skip-check needs: skip-check
if: needs.skip-check.outputs.should_skip != 'true' if: needs.skip-check.outputs.should_skip != 'true'
runs-on: ubicloud-standard-4 runs-on: rustfs
timeout-minutes: 30 timeout-minutes: 30
env: env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
@@ -176,7 +176,7 @@ jobs:
name: End-to-End Tests name: End-to-End Tests
needs: [ skip-check, build-rustfs-debug-binary ] needs: [ skip-check, build-rustfs-debug-binary ]
if: needs.skip-check.outputs.should_skip != 'true' if: needs.skip-check.outputs.should_skip != 'true'
runs-on: ubicloud-standard-2 runs-on: rustfs
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- name: Checkout repository - name: Checkout repository
@@ -223,7 +223,7 @@ jobs:
name: S3 Implemented Tests name: S3 Implemented Tests
needs: [ skip-check, build-rustfs-debug-binary ] needs: [ skip-check, build-rustfs-debug-binary ]
if: needs.skip-check.outputs.should_skip != 'true' if: needs.skip-check.outputs.should_skip != 'true'
runs-on: ubicloud-standard-4 runs-on: rustfs
timeout-minutes: 60 timeout-minutes: 60
steps: steps:
- name: Checkout repository - name: Checkout repository
+3 -3
View File
@@ -73,7 +73,7 @@ jobs:
# Check if we should build Docker images # Check if we should build Docker images
build-check: build-check:
name: Docker Build Check name: Docker Build Check
runs-on: ubicloud-standard-2 runs-on: rustfs
outputs: outputs:
should_build: ${{ steps.check.outputs.should_build }} should_build: ${{ steps.check.outputs.should_build }}
should_push: ${{ steps.check.outputs.should_push }} should_push: ${{ steps.check.outputs.should_push }}
@@ -263,7 +263,7 @@ jobs:
name: Build Docker Images name: Build Docker Images
needs: build-check needs: build-check
if: needs.build-check.outputs.should_build == 'true' if: needs.build-check.outputs.should_build == 'true'
runs-on: ubicloud-standard-2 runs-on: rustfs
timeout-minutes: 60 timeout-minutes: 60
strategy: strategy:
fail-fast: false fail-fast: false
@@ -421,7 +421,7 @@ jobs:
name: Docker Build Summary name: Docker Build Summary
needs: [ build-check, build-docker ] needs: [ build-check, build-docker ]
if: always() && needs.build-check.outputs.should_build == 'true' if: always() && needs.build-check.outputs.should_build == 'true'
runs-on: ubicloud-standard-2 runs-on: rustfs
steps: steps:
- name: Docker build completion summary - name: Docker build completion summary
run: | run: |
+2 -2
View File
@@ -63,7 +63,7 @@ defaults:
jobs: jobs:
s3tests-single: s3tests-single:
if: github.event.inputs['test-mode'] == 'single' if: github.event.inputs['test-mode'] == 'single'
runs-on: ubicloud-standard-2 runs-on: rustfs
timeout-minutes: 120 timeout-minutes: 120
steps: steps:
- uses: actions/checkout@v6 - uses: actions/checkout@v6
@@ -225,7 +225,7 @@ jobs:
s3tests-multi: s3tests-multi:
if: github.event_name == 'workflow_dispatch' && github.event.inputs['test-mode'] == 'multi' if: github.event_name == 'workflow_dispatch' && github.event.inputs['test-mode'] == 'multi'
runs-on: ubicloud-standard-2 runs-on: rustfs
timeout-minutes: 150 timeout-minutes: 150
steps: steps:
- uses: actions/checkout@v6 - uses: actions/checkout@v6
+2 -2
View File
@@ -31,7 +31,7 @@ permissions:
jobs: jobs:
build-helm-package: build-helm-package:
runs-on: ubicloud-standard-2 runs-on: rustfs
if: | if: |
github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_dispatch' ||
( (
@@ -99,7 +99,7 @@ jobs:
retention-days: 1 retention-days: 1
publish-helm-package: publish-helm-package:
runs-on: ubicloud-standard-2 runs-on: rustfs
needs: [ build-helm-package ] needs: [ build-helm-package ]
if: needs.build-helm-package.result == 'success' if: needs.build-helm-package.result == 'success'
+1 -1
View File
@@ -25,7 +25,7 @@ permissions:
jobs: jobs:
build: build:
runs-on: ubicloud-standard-4 runs-on: rustfs
steps: steps:
- uses: usthe/issues-translate-action@v2.7 - uses: usthe/issues-translate-action@v2.7
with: with:
+2 -2
View File
@@ -40,7 +40,7 @@ env:
jobs: jobs:
performance-profile: performance-profile:
name: Performance Profiling name: Performance Profiling
runs-on: ubicloud-standard-2 runs-on: rustfs
timeout-minutes: 30 timeout-minutes: 30
env: env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
@@ -117,7 +117,7 @@ jobs:
benchmark: benchmark:
name: Benchmark Tests name: Benchmark Tests
runs-on: ubicloud-standard-2 runs-on: rustfs
timeout-minutes: 45 timeout-minutes: 45
env: env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"