-
Notifications
You must be signed in to change notification settings - Fork 31
93 lines (74 loc) · 2.33 KB
/
ci.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: ci
on: [push, pull_request]
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v1
with:
fetch-depth: 1
submodules: true
- name: Install rust
uses: hecrj/setup-rust-action@v1
with:
rust-version: "nightly"
- name: Install rustfmt
run: rustup component add rustfmt
- name: Cargo Fmt
run: cargo fmt -- --check
# sanitizer:
# name: sanitizer
# runs-on: ubuntu-latest
# steps:
# - name: Clone repository
# uses: actions/checkout@v1
# with:
# fetch-depth: 1
# submodules: true
# - name: Install rust
# uses: hecrj/setup-rust-action@v1
# with:
# rust-version: "nightly"
# - name: ASAN Build Debug
# run: RUSTFLAGS="-Z sanitizer=address" cargo +nightly build --target x86_64-unknown-linux-gnu
# - name: ASAN Tests Debug
# run: ruby tools/tester.rb --binary=target/x86_64-unknown-linux-gnu/debug/dora --env ASAN_OPTIONS=detect_leaks=1
# - name: ASAN Build Release
# run: RUSTFLAGS="-Z sanitizer=address" cargo +nightly build --release --target x86_64-unknown-linux-gnu
# - name: ASAN Tests Release
# run: ruby tools/tester.rb --binary=target/x86_64-unknown-linux-gnu/release/dora --env ASAN_OPTIONS=detect_leaks=1
test:
name: test ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Clone repository
uses: actions/checkout@v1
with:
fetch-depth: 1
submodules: true
- name: Install rust
uses: hecrj/setup-rust-action@v1
with:
rust-version: "stable"
- name: Install ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
- name: Test
if: matrix.os != 'windows-latest'
run: tools/test
- name: Test (Windows)
if: matrix.os == 'windows-latest'
run: .\tools\test.bat
- name: Test Release
if: matrix.os != 'windows-latest'
run: tools/test-release
- name: Test Release (Windows)
if: matrix.os == 'windows-latest'
run: .\tools\test-release.bat