From 68989c6050d2472b23e0c75e66425d3e1e551f02 Mon Sep 17 00:00:00 2001 From: yufeng <321353225@qq.com> Date: Sat, 4 May 2024 19:03:35 +0800 Subject: [PATCH] ci: use matrix --- .github/workflows/example.yaml | 14 ++++++-------- example/Cargo.lock | 4 ++-- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/example.yaml b/.github/workflows/example.yaml index 6253d3f..8ed8334 100644 --- a/.github/workflows/example.yaml +++ b/.github/workflows/example.yaml @@ -7,14 +7,12 @@ on: jobs: test: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + arch: [x86_64, riscv64, aarch64, loongarch64] steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@nightly - - name: Test riscv64 - run: cd example && make ARCH=riscv64 build - - name: Test aarch64 - run: cd example && make ARCH=aarch64 build - - name: Test x86_64 - run: cd example && make ARCH=x86_64 build - - name: Test loongarch64 - run: cd example && make ARCH=loongarch64 build + - name: Test ${{ matrix.arch }} + run: cd example && make ARCH=${{ matrix.arch }} build diff --git a/example/Cargo.lock b/example/Cargo.lock index 2f37d8b..c5c238a 100644 --- a/example/Cargo.lock +++ b/example/Cargo.lock @@ -164,7 +164,7 @@ checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" [[package]] name = "percpu" version = "0.1.0" -source = "git+https://github.com/Byte-OS/percpu.git?rev=a71e60e#a71e60e376ac28cdf1a46312e2705b864c07732e" +source = "git+https://github.com/Byte-OS/percpu.git#a71e60e376ac28cdf1a46312e2705b864c07732e" dependencies = [ "cfg-if", "percpu_macros", @@ -175,7 +175,7 @@ dependencies = [ [[package]] name = "percpu_macros" version = "0.1.0" -source = "git+https://github.com/Byte-OS/percpu.git?rev=a71e60e#a71e60e376ac28cdf1a46312e2705b864c07732e" +source = "git+https://github.com/Byte-OS/percpu.git#a71e60e376ac28cdf1a46312e2705b864c07732e" dependencies = [ "proc-macro2", "quote",