forked from whizzes/imagekit
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.1 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
name: build
on:
pull_request:
push:
branches:
- main
jobs:
build:
name: Builds for ${{ matrix.os }} with ${{ matrix.features }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
name:
- linux
- macos
- windows
features:
- native-tls
- rustls-tls
include:
- name: linux
os: ubuntu-latest
- name: windows
os: windows-latest
- name: macos
os: macos-latest
steps:
- uses: actions/checkout@v2
- name: Cache .cargo and target
uses: actions/cache@v2
with:
path: |
~/.cargo
./target
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
${{ runner.os }}-cargo-build
- name: cargo build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --locked --no-default-features --features ${{ matrix.features }}