Skip to content

[CI] matrix-os build #2

[CI] matrix-os build

[CI] matrix-os build #2

Workflow file for this run

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