mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-28 07:57:01 +00:00
ci: update all workflows to use ubicloud-standard-2 runner
This commit is contained in:
@@ -40,7 +40,7 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
security-audit:
|
security-audit:
|
||||||
name: Security Audit
|
name: Security Audit
|
||||||
runs-on: ubicloud-standard-4
|
runs-on: ubicloud-standard-2
|
||||||
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-4
|
runs-on: ubicloud-standard-2
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|||||||
+10
-10
@@ -83,7 +83,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-4
|
runs-on: ubicloud-standard-2
|
||||||
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 }}
|
||||||
@@ -167,19 +167,19 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
# Linux builds
|
# Linux builds
|
||||||
- os: ubicloud-standard-4
|
- os: ubicloud-standard-2
|
||||||
target: x86_64-unknown-linux-musl
|
target: x86_64-unknown-linux-musl
|
||||||
cross: false
|
cross: false
|
||||||
platform: linux
|
platform: linux
|
||||||
- os: ubicloud-standard-4
|
- os: ubicloud-standard-2
|
||||||
target: aarch64-unknown-linux-musl
|
target: aarch64-unknown-linux-musl
|
||||||
cross: true
|
cross: true
|
||||||
platform: linux
|
platform: linux
|
||||||
- os: ubicloud-standard-4
|
- os: ubicloud-standard-2
|
||||||
target: x86_64-unknown-linux-gnu
|
target: x86_64-unknown-linux-gnu
|
||||||
cross: false
|
cross: false
|
||||||
platform: linux
|
platform: linux
|
||||||
- os: ubicloud-standard-4
|
- os: ubicloud-standard-2
|
||||||
target: aarch64-unknown-linux-gnu
|
target: aarch64-unknown-linux-gnu
|
||||||
cross: true
|
cross: true
|
||||||
platform: linux
|
platform: linux
|
||||||
@@ -532,7 +532,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-4
|
runs-on: ubicloud-standard-2
|
||||||
steps:
|
steps:
|
||||||
- name: Build completion summary
|
- name: Build completion summary
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -584,7 +584,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-4
|
runs-on: ubicloud-standard-2
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
outputs:
|
outputs:
|
||||||
@@ -670,7 +670,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-4
|
runs-on: ubicloud-standard-2
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
actions: read
|
actions: read
|
||||||
@@ -751,7 +751,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-4
|
runs-on: ubicloud-standard-2
|
||||||
steps:
|
steps:
|
||||||
- name: Update latest.json
|
- name: Update latest.json
|
||||||
env:
|
env:
|
||||||
@@ -801,7 +801,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-4
|
runs-on: ubicloud-standard-2
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
actions: write
|
actions: write
|
||||||
contents: read
|
contents: read
|
||||||
runs-on: ubicloud-standard-4
|
runs-on: ubicloud-standard-2
|
||||||
outputs:
|
outputs:
|
||||||
should_skip: ${{ steps.skip_check.outputs.should_skip }}
|
should_skip: ${{ steps.skip_check.outputs.should_skip }}
|
||||||
steps:
|
steps:
|
||||||
@@ -93,7 +93,7 @@ jobs:
|
|||||||
|
|
||||||
typos:
|
typos:
|
||||||
name: Typos
|
name: Typos
|
||||||
runs-on: ubicloud-standard-4
|
runs-on: ubicloud-standard-2
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
@@ -104,7 +104,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: ubicloud-standard-2
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@@ -136,7 +136,7 @@ jobs:
|
|||||||
name: End-to-End Tests
|
name: End-to-End Tests
|
||||||
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: ubicloud-standard-2
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|||||||
@@ -72,7 +72,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-4
|
runs-on: ubicloud-standard-2
|
||||||
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 }}
|
||||||
@@ -264,7 +264,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-4
|
runs-on: ubicloud-standard-2
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@@ -404,7 +404,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-4
|
runs-on: ubicloud-standard-2
|
||||||
steps:
|
steps:
|
||||||
- name: Docker build completion summary
|
- name: Docker build completion summary
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
mint-single:
|
mint-single:
|
||||||
runs-on: ubicloud-standard-4
|
runs-on: ubicloud-standard-2
|
||||||
timeout-minutes: 40
|
timeout-minutes: 40
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -114,7 +114,7 @@ jobs:
|
|||||||
mint-multi:
|
mint-multi:
|
||||||
if: github.event_name == 'workflow_dispatch' && github.event.inputs.run-multi == 'true'
|
if: github.event_name == 'workflow_dispatch' && github.event.inputs.run-multi == 'true'
|
||||||
needs: mint-single
|
needs: mint-single
|
||||||
runs-on: ubicloud-standard-4
|
runs-on: ubicloud-standard-2
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|||||||
@@ -58,7 +58,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-4
|
runs-on: ubicloud-standard-2
|
||||||
timeout-minutes: 120
|
timeout-minutes: 120
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
@@ -212,7 +212,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-4
|
runs-on: ubicloud-standard-2
|
||||||
timeout-minutes: 150
|
timeout-minutes: 150
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-helm-package:
|
build-helm-package:
|
||||||
runs-on: ubicloud-standard-4
|
runs-on: ubicloud-standard-2
|
||||||
# Only run on successful builds triggered by tag pushes (version format: x.y.z or x.y.z-suffix)
|
# Only run on successful builds triggered by tag pushes (version format: x.y.z or x.y.z-suffix)
|
||||||
if: |
|
if: |
|
||||||
github.event.workflow_run.conclusion == 'success' &&
|
github.event.workflow_run.conclusion == 'success' &&
|
||||||
@@ -63,7 +63,7 @@ jobs:
|
|||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
publish-helm-package:
|
publish-helm-package:
|
||||||
runs-on: ubicloud-standard-4
|
runs-on: ubicloud-standard-2
|
||||||
needs: [ build-helm-package ]
|
needs: [ build-helm-package ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
performance-profile:
|
performance-profile:
|
||||||
name: Performance Profiling
|
name: Performance Profiling
|
||||||
runs-on: ubicloud-standard-4
|
runs-on: ubicloud-standard-2
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@@ -115,7 +115,7 @@ jobs:
|
|||||||
|
|
||||||
benchmark:
|
benchmark:
|
||||||
name: Benchmark Tests
|
name: Benchmark Tests
|
||||||
runs-on: ubicloud-standard-4
|
runs-on: ubicloud-standard-2
|
||||||
timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|||||||
Reference in New Issue
Block a user