From 5757fa2007d84ef9aa36c51c7b6c99b8ad654690 Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Fri, 23 Jun 2023 23:12:56 -0700 Subject: [PATCH] adjust ci to provide libpcsclite --- .github/workflows/ci.yml | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b50c3d79..b00a7164 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,15 +11,22 @@ env: jobs: build: - runs-on: ubuntu-latest strategy: matrix: - platform: - - ubuntu-latest - - macos-latest - toolchain: - - stable - - 1.65.0 # MSRV + include: + - platform: ubuntu-latest + toolchain: stable + deps: sudo apt-get install libpcsclite-dev + - platform: macos-latest + toolchain: stable + deps: true + - platform: ubuntu-latest + toolchain: 1.65.0 # MSRV + deps: sudo apt-get install libpcsclite-dev + - platform: macos-latest + toolchain: 1.65.0 # MSRV + deps: true + runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v1 - name: cache .cargo/registry @@ -41,14 +48,15 @@ jobs: with: toolchain: ${{ matrix.toolchain }} override: true + - run: ${{ matrix.deps }} - run: cargo build --release - run: cargo build --release --no-default-features - run: cargo build --release --no-default-features --features=passwords - run: cargo build --release --features=usb + - run: cargo build --release --features=yubihsm-auth - run: cargo build --benches test: - runs-on: ubuntu-latest strategy: matrix: platform: @@ -57,6 +65,7 @@ jobs: toolchain: - stable - 1.65.0 # MSRV + runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v1 - name: cache .cargo/registry @@ -103,6 +112,7 @@ jobs: toolchain: 1.65.0 # MSRV components: clippy override: true + - run: sudo apt-get install libpcsclite-dev - uses: actions-rs/cargo@v1 with: command: clippy