12
12
# config file whose registered Rust flags are *appended* to the parent profile's ones.
13
13
env :
14
14
CARGO_TERM_COLOR : always
15
+ RUSTUP_TOOLCHAIN : nightly
16
+
17
+ # @Task add back dependency caching once we've figured out how to do it properly
18
+ # (before: always cache misses)
15
19
16
20
jobs :
17
21
build-on-linux :
18
- name : Build on Linux (Ubuntu)
22
+ name : Build on (Ubuntu) Linux
19
23
20
24
runs-on : ubuntu-latest
21
25
22
26
steps :
23
- - uses : actions/checkout@v3
24
- - uses : dtolnay/rust-toolchain@master
25
- with :
26
- toolchain : nightly
27
+ - name : Check out the repository
28
+ uses : actions/checkout@v3
29
+ - name : Install Rust
30
+ run : rustup update --no-self-update nightly
27
31
- name : Build in release mode
28
32
# @Task build with LLVM
29
33
run : cargo build --profile ci --features cranelift,lsp
@@ -37,29 +41,30 @@ jobs:
37
41
runs-on : windows-latest
38
42
39
43
steps :
40
- - uses : actions/checkout@v3
41
- - uses : dtolnay/rust-toolchain@master
42
- with :
43
- toolchain : nightly
44
+ - name : Check out the repository
45
+ uses : actions/checkout@v3
46
+ - name : Install Rust
47
+ run : rustup update --no-self-update nightly
44
48
- name : Build in release mode
45
49
# @Task build with LLVM
46
50
run : cargo build --profile ci --features cranelift,lsp
47
51
48
52
test-on-linux :
49
- name : Run tests on Linux (Ubuntu)
53
+ name : Run tests on (Ubuntu) Linux
50
54
51
55
needs : build-on-linux
52
56
runs-on : ubuntu-latest
53
57
54
58
steps :
55
- - uses : actions/checkout@v3
56
- - uses : dtolnay/rust-toolchain@master
57
- with :
58
- toolchain : nightly
59
- - name : Run unit tests (via the rust testing framework)
60
- run : cargo test
61
- - name : Run UI tests (via the golden UI testing framework)
62
- # @Task build with LLVM and Cranelift
59
+ - name : Check out the repository
60
+ uses : actions/checkout@v3
61
+ - name : Install Rust
62
+ run : rustup update --no-self-update nightly
63
+ - name : Run unit tests
64
+ # @Task test with LLVM
65
+ run : cargo test --workspace --exclude llvm_codegen --features cranelift,lsp
66
+ - name : Run UI tests
67
+ # @Task test with LLVM and Cranelift
63
68
run : ./test/ui/run --release --timeout=20
64
69
65
70
test-on-windows :
@@ -72,29 +77,30 @@ jobs:
72
77
runs-on : windows-latest
73
78
74
79
steps :
75
- - uses : actions/checkout@v3
76
- - uses : dtolnay/rust-toolchain@master
77
- with :
78
- toolchain : nightly
79
- - name : Run unit tests (via the rust testing framework)
80
- run : cargo test
81
- - name : Run UI tests (via the golden UI testing framework)
80
+ - name : Check out the repository
81
+ uses : actions/checkout@v3
82
+ - name : Install Rust
83
+ run : rustup update --no-self-update nightly
84
+ - name : Run unit tests
85
+ # @Task test with LLVM
86
+ run : cargo test --workspace --exclude llvm_codegen --features cranelift,lsp
87
+ - name : Run UI tests
82
88
# @Task build with LLVM and Cranelift
83
89
run : ./tests/ui/run --release --timeout=20
84
90
85
91
build-documentation :
86
- name : Build Documentation (on Linux)
92
+ name : Build documentation (on Linux)
87
93
88
94
needs : build-on-linux
89
95
runs-on : ubuntu-latest
90
96
91
97
steps :
92
- - uses : actions/checkout@v3
93
- - uses : dtolnay/rust-toolchain@master
94
- with :
95
- toolchain : nightly
96
- - name : Build documentation with rustdoc excluding dependencies
97
- # @Task build with LLVM
98
+ - name : Check out the repository
99
+ uses : actions/checkout@v3
100
+ - name : Install Rust
101
+ run : rustup update --no-self-update nightly
102
+ - name : Build documentation with rustdoc
103
+ # @Task document with LLVM
98
104
run : cargo doc --profile ci --no-deps --features cranelift,lsp
99
105
100
106
clippy :
@@ -104,25 +110,27 @@ jobs:
104
110
runs-on : ubuntu-latest
105
111
106
112
steps :
107
- - uses : actions/checkout@v3
108
- - uses : dtolnay/rust-toolchain@master
109
- with :
110
- toolchain : nightly
111
- components : clippy
113
+ - name : Check out the repository
114
+ uses : actions/checkout@v3
115
+ - name : Install Rust
116
+ run : |
117
+ rustup update --no-self-update nightly
118
+ rustup component add clippy
112
119
- name : Run Clippy
113
- # @Task build with LLVM
120
+ # @Task check with LLVM
114
121
run : cargo clippy --profile ci --features cranelift,lsp
115
122
116
123
formatting :
117
- name : Check Code Formatting
124
+ name : Check code formatting
118
125
119
126
runs-on : ubuntu-latest
120
127
121
128
steps :
122
- - uses : actions/checkout@v3
123
- - uses : dtolnay/rust-toolchain@master
124
- with :
125
- toolchain : nightly
126
- components : rustfmt
127
- - name : Run rustfmt in check mode
128
- run : cargo fmt --check
129
+ - name : Check out the repository
130
+ uses : actions/checkout@v3
131
+ - name : Install Rust
132
+ run : |
133
+ rustup update --no-self-update nightly
134
+ rustup component add rustfmt
135
+ - name : Check code formatting
136
+ run : cargo fmt --all --check
0 commit comments