-
Notifications
You must be signed in to change notification settings - Fork 0
100 lines (74 loc) · 2.09 KB
/
rust.yml
File metadata and controls
100 lines (74 loc) · 2.09 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
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
name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --release
- name: Upload Binaries
uses: actions/upload-artifact@v4
with:
name: FilesLink binaries
path: |
target/release/fileslink
target/release/fileslink-cli
test_main:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- name: Download Binaries
uses: actions/download-artifact@v4
with:
name: FilesLink binaries
- name: Run build for main
run: cargo build --release
- name: Run tests for main
run: cargo test --release
test_shared:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- name: Download Binaries
uses: actions/download-artifact@v4
with:
name: FilesLink binaries
- name: Run build for shared
run: cargo build --manifest-path shared/Cargo.toml --release
- name: Run tests for shared
run: cargo test --manifest-path shared/Cargo.toml --release
test_cli:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- name: Download Binaries
uses: actions/download-artifact@v4
with:
name: FilesLink binaries
- name: Run build for cli
run: cargo build --manifest-path cli/Cargo.toml --release
- name: Run tests for cli
run: cargo test --manifest-path cli/Cargo.toml --release
test_bot:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- name: Download Binaries
uses: actions/download-artifact@v4
with:
name: FilesLink binaries
- name: Run build for bot
run: cargo build --manifest-path bot/Cargo.toml --release
- name: Run tests for crate3
run: cargo test --manifest-path bot/Cargo.toml --release