-
Notifications
You must be signed in to change notification settings - Fork 5
54 lines (51 loc) · 1.38 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
50
51
52
53
54
name: build
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
push:
branches: [master]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- name: Checks-out repository
uses: actions/checkout@v2
- name: Set env variable
run: echo "PEARL_COMMIT_HASH=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_ENV
- name: Install latest stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --all
- name: Build async rio
uses: actions-rs/cargo@v1
with:
command: build
args: --features async-io-rio
- name: Build benchmarks
uses: actions-rs/cargo@v1
with:
command: build
args: --features benchmark
build-windows:
runs-on: windows-latest
steps:
- name: Checks-out repository
uses: actions/checkout@v2
- name: Set env variable
run: echo "PEARL_COMMIT_HASH=$($env:GITHUB_SHA.Substring(0, 8))" >> $env:GITHUB_ENV
- name: Install latest stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --all