diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 579ada44..9be0cdfd 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -20,14 +20,19 @@ jobs: profile: minimal toolchain: 1.60.0 override: true - - run: sudo apt-get update && sudo apt-get install libspeechd-dev libgtk-3-dev + - name: Install packages (Linux) + if: runner.os == 'Linux' + run: sudo apt-get update && sudo apt-get install libspeechd-dev libgtk-3-dev - uses: actions-rs/cargo@v1 with: command: check check_all_features: name: cargo check --all-features - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-20.04, windows-latest, macOS-latest] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 @@ -35,7 +40,9 @@ jobs: profile: minimal toolchain: 1.60.0 override: true - - run: sudo apt-get update && sudo apt-get install libspeechd-dev libgtk-3-dev + - name: Install packages (Linux) + if: runner.os == 'Linux' + run: sudo apt-get update && sudo apt-get install libspeechd-dev libgtk-3-dev - uses: actions-rs/cargo@v1 with: command: check @@ -110,7 +117,9 @@ jobs: profile: minimal toolchain: 1.60.0 override: true - - run: sudo apt-get update && sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libspeechd-dev libxkbcommon-dev libssl-dev libgtk-3-dev # libgtk-3-dev is used by rfd + - name: Install packages (Linux) + if: runner.os == 'Linux' + run: sudo apt-get update && sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libspeechd-dev libxkbcommon-dev libssl-dev libgtk-3-dev # libgtk-3-dev is used by rfd - uses: actions-rs/cargo@v1 with: command: test @@ -143,7 +152,9 @@ jobs: toolchain: 1.60.0 override: true - run: rustup component add clippy - - run: sudo apt-get update && sudo apt-get install libspeechd-dev libgtk-3-dev # libgtk-3-dev is used by rfd + - name: Install packages (Linux) + if: runner.os == 'Linux' + run: sudo apt-get update && sudo apt-get install libspeechd-dev libgtk-3-dev # libgtk-3-dev is used by rfd - uses: actions-rs/cargo@v1 with: command: clippy @@ -159,7 +170,9 @@ jobs: profile: minimal toolchain: 1.60.0 override: true - - run: sudo apt-get update && sudo apt-get install libspeechd-dev + - name: Install packages (Linux) + if: runner.os == 'Linux' + run: sudo apt-get update && sudo apt-get install libspeechd-dev - run: cargo doc --lib --no-deps --all-features cargo-deny: