diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d4270166e2..75df1c526f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -99,16 +99,14 @@ jobs: include: - os: ubuntu-latest - os: macOS-latest + - os: windows-latest steps: - uses: actions/checkout@v2 - - name: Install Mac System dependencies - if: startsWith(matrix.os,'macOS') - run: | - brew install boost - - name: Install Linux dependencies - if: startsWith(matrix.os,'ubuntu') - run: | - sudo apt-get install -y libboost-all-dev + - name: Install boost + id: install-boost + uses: MarkusJx/install-boost@v2.1.0 + with: + boost_version: 1.78.0 - name: Install rust uses: actions-rs/toolchain@v1 with: @@ -119,8 +117,14 @@ jobs: uses: Swatinem/rust-cache@v1 - name: Build run: cargo test --workspace --all-features --no-run --locked + env: + BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }} + Boost_NO_BOOST_CMAKE: ON - name: Run tests run: cargo test --workspace --all-features --verbose + env: + BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }} + Boost_NO_BOOST_CMAKE: ON wasm-test: runs-on: ubuntu-latest