-
Notifications
You must be signed in to change notification settings - Fork 12
37 lines (32 loc) · 972 Bytes
/
main.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
37
name: Build
on: [push]
jobs:
build:
name: Build for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Building proj on Windows is a mess, so not enabled yet. https://github.com/georust/proj/pull/79
build: [linux, macos]
include:
- build: linux
os: ubuntu-latest
- build: macos
os: macos-latest
steps:
- uses: actions/checkout@master
- uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
- name: Install protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Cache build
uses: actions/cache@v2
with:
path: target
# The key could include hashFiles('Cargo.lock'), but cargo will figure out what can be reused.
key: build-${{ matrix.os }}
- name: Build
run: cargo check