From e77744377ed823ee388e6929b0bc9eaf0cdd8807 Mon Sep 17 00:00:00 2001 From: Magic Len Date: Mon, 11 Sep 2023 09:12:17 +0800 Subject: [PATCH] update GitHub workflows --- .github/workflows/ci-version.yml | 50 ++++++++++++++++++++++++++--- .github/workflows/ci.yml | 54 +++++++++++++++++++++++++++----- 2 files changed, 92 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci-version.yml b/.github/workflows/ci-version.yml index 0cd3f62..5d2d07e 100644 --- a/.github/workflows/ci-version.yml +++ b/.github/workflows/ci-version.yml @@ -16,7 +16,6 @@ jobs: os: - ubuntu-latest toolchain: - - "1.60" - stable - nightly target: @@ -27,7 +26,7 @@ jobs: name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} to ${{ matrix.target }} (${{ matrix.features }}) runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: ${{ matrix.toolchain }} @@ -42,7 +41,6 @@ jobs: os: - macos-latest toolchain: - - "1.60" - stable - nightly features: @@ -50,9 +48,51 @@ jobs: name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} (${{ matrix.features }}) runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: ${{ matrix.toolchain }} - run: cargo test --release ${{ matrix.features }} - - run: cargo doc --release ${{ matrix.features }} \ No newline at end of file + - run: cargo doc --release ${{ matrix.features }} + + MSRV-1: + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + toolchain: + - "1.60" + target: + - x86_64-unknown-linux-gnu + - x86_64-unknown-linux-musl + features: + - + name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} to ${{ matrix.target }} (${{ matrix.features }}) + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: ${{ matrix.toolchain }} + target: ${{ matrix.target }} + - run: cargo test --release --lib --bins --target ${{ matrix.target }} ${{ matrix.features }} + + MSRV-2: + strategy: + fail-fast: false + matrix: + os: + - macos-latest + toolchain: + - "1.60" + features: + - + name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} (${{ matrix.features }}) + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: ${{ matrix.toolchain }} + - run: cargo test --release --lib --bins ${{ matrix.features }} \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db1e292..46a165d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ jobs: rustfmt: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: nightly @@ -19,7 +19,7 @@ jobs: clippy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions-rust-lang/setup-rust-toolchain@v1 with: components: clippy @@ -32,7 +32,6 @@ jobs: os: - ubuntu-latest toolchain: - - "1.60" - stable - nightly target: @@ -43,7 +42,7 @@ jobs: name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} to ${{ matrix.target }} (${{ matrix.features }}) runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: ${{ matrix.toolchain }} @@ -58,7 +57,6 @@ jobs: os: - macos-latest toolchain: - - "1.60" - stable - nightly features: @@ -66,9 +64,51 @@ jobs: name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} (${{ matrix.features }}) runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: ${{ matrix.toolchain }} - run: cargo test ${{ matrix.features }} - - run: cargo doc ${{ matrix.features }} \ No newline at end of file + - run: cargo doc ${{ matrix.features }} + + MSRV-1: + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + toolchain: + - "1.60" + target: + - x86_64-unknown-linux-gnu + - x86_64-unknown-linux-musl + features: + - + name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} to ${{ matrix.target }} (${{ matrix.features }}) + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: ${{ matrix.toolchain }} + target: ${{ matrix.target }} + - run: cargo test --lib --bins --target ${{ matrix.target }} ${{ matrix.features }} + + MSRV-2: + strategy: + fail-fast: false + matrix: + os: + - macos-latest + toolchain: + - "1.60" + features: + - + name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} (${{ matrix.features }}) + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: ${{ matrix.toolchain }} + - run: cargo test --lib --bins ${{ matrix.features }} \ No newline at end of file