From 12513be8d8996d51b3dd9d3e96cc8ce88c5e07e1 Mon Sep 17 00:00:00 2001 From: liuqiang Date: Thu, 23 Jan 2025 19:08:51 +0800 Subject: [PATCH] fix: arm ci --- .github/workflows/ci.yml | 68 ++++++++++++++++++---------------------- 1 file changed, 31 insertions(+), 37 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index da3f1fb..f7a965e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,58 +9,52 @@ env: jobs: test-stable: - name: Rust stable ${{matrix.os}} - runs-on: ${{matrix.os}}-latest - strategy: - fail-fast: false - matrix: - os: [ubuntu, macos-latest] + name: Rust stable ubuntu-latest + runs-on: ubuntu-latest timeout-minutes: 45 steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - - uses: Swatinem/rust-cache@v1 - run: ./scripts/test.sh - test-stable-self: - name: Rust stable on self-hosted - runs-on: [self-hosted] - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - - uses: Swatinem/rust-cache@v1 - - run: ./scripts/test.sh - - test-nightly: - name: Rust nightly ${{matrix.os}} - runs-on: ${{matrix.os}}-latest + test-stable-hosted: strategy: fail-fast: false matrix: - os: [ubuntu, macos-latest] + os: [X64, ARM64] + name: Rust stable + runs-on: [self-hosted, Linux, ${{matrix.os}}] timeout-minutes: 45 steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@nightly - - uses: Swatinem/rust-cache@v1 + - uses: dtolnay/rust-toolchain@stable - run: ./scripts/test.sh - test-nightlye-self: - name: Rust nightly on self-hosted - runs-on: [self-hosted] + test-nightly: + name: Rust nightly ubuntu-latest + runs-on: ubuntu-latest + timeout-minutes: 45 steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@nightly - - uses: Swatinem/rust-cache@v1 - - run: ./scripts/test.sh + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@nightly + - run: ./scripts/test.sh - clippy_lint: - name: Format check ${{matrix.os}} - runs-on: ${{matrix.os}}-latest + test-nightly-hosted: strategy: - fail-fast: false - matrix: - os: [ubuntu, macos-latest] + fail-fast: false + matrix: + os: [X64, ARM64] + name: Rust nightly ${{matrix.os}} + runs-on: [self-hosted, Linux, ${{matrix.os}}] + timeout-minutes: 45 + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@nightly + - run: ./scripts/test.sh + + clippy_lint: + name: Format check + runs-on: ubuntu-latest timeout-minutes: 45 steps: - uses: actions/checkout@v3 @@ -73,7 +67,7 @@ jobs: cargo fmt -- --check sanitize: - runs-on: [self-hosted, X64] + runs-on: [self-hosted, Linux, X64] steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@stable @@ -86,7 +80,7 @@ jobs: run: ./scripts/sanitize.sh fuzz: - runs-on: [self-hosted, X64] + runs-on: [self-hosted, Linux, X64] steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@stable