-
Notifications
You must be signed in to change notification settings - Fork 1
114 lines (91 loc) · 2.84 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
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
compile-arm64:
name: compile arm64
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: "stable"
- name: Install ARM64 target
run: rustup target add aarch64-unknown-linux-gnu
- name: Build ARM64
run: cd dora && cargo check --target=aarch64-unknown-linux-gnu --no-default-features
test:
name: test ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
matrix:
os: [ubuntu-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