-
Notifications
You must be signed in to change notification settings - Fork 13
66 lines (52 loc) · 1.33 KB
/
rust.yml
File metadata and controls
66 lines (52 loc) · 1.33 KB
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
name: Rust
on:
pull_request:
types:
- opened
- synchronize
- ready_for_review
schedule: [cron: "0 */5 * * *"]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Run tests with tokio
run: make test
- name: Archive test log
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: test log
path: /tmp/test_crossfire.log
- name: cleanup logs
run: /bin/rm /tmp/test_crossfire.log
- name: Run tests with --release
run: make test_release
- name: Archive test log
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: test log
path: /tmp/test_crossfire.log
- name: Run tests with async_std
run: make test_async_std
- name: Archive test log
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: test log
path: /tmp/test_crossfire.log
- name: Run tests with async_std --releaes
run: make test_async_std_release
- name: Archive test log
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: test log
path: /tmp/test_crossfire.log