[CI] matrix-os build #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [push, pull_request] | |
jobs: | |
build-and-test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies on Ubuntu | |
if: runner.os == 'Linux' | |
run: | | |
git clone https://github.com/Microsoft/vcpkg.git | |
./vcpkg/bootstrap-vcpkg.sh | |
.\vcpkg\vcpkg integrate install | |
.\vcpkg\vcpkg install osg | |
.\vcpkg\vcpkg install gdal | |
- name: Install dependencies on Windows | |
if: runner.os == 'Windows' | |
run: | | |
git clone https://github.com/Microsoft/vcpkg.git | |
.\vcpkg\bootstrap-vcpkg.bat | |
.\vcpkg\vcpkg integrate install | |
.\vcpkg\vcpkg install osg | |
.\vcpkg\vcpkg install gdal | |
- name: Build | |
run: cargo build --verbose --release | |
- name: Test | |
run: cargo test --verbose |