-
Notifications
You must be signed in to change notification settings - Fork 594
36 lines (30 loc) · 905 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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