File tree Expand file tree Collapse file tree 2 files changed +23
-23
lines changed Expand file tree Collapse file tree 2 files changed +23
-23
lines changed Original file line number Diff line number Diff line change @@ -3,23 +3,9 @@ on: [push, pull_request]
3
3
name : continuous integration
4
4
5
5
jobs :
6
- build :
7
- name : build
8
- runs-on : ubuntu-latest
9
- steps :
10
- - uses : actions/checkout@v2
11
- - uses : actions-rs/toolchain@v1
12
- with :
13
- profile : minimal
14
- toolchain : stable
15
- override : true
16
- - uses : actions-rs/cargo@v1
17
- with :
18
- command : build
19
-
20
6
test :
21
7
name : test
22
- runs-on : ubuntu-latest
8
+ runs-on : ubuntu-20.04
23
9
steps :
24
10
- uses : actions/checkout@v2
25
11
- uses : actions-rs/toolchain@v1
@@ -29,19 +15,31 @@ jobs:
29
15
override : true
30
16
- uses : actions-rs/cargo@v1
31
17
with :
32
- command : test
18
+ command : build
19
+ args : --release
20
+ - name : Install LLVM
21
+ run : |
22
+ wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
23
+ sudo add-apt-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-13 main"
24
+ sudo apt-get update
25
+ sudo apt-get install --no-install-recommends --yes llvm-13 llvm-13-tools
26
+ - name : Install lit
27
+ run : pip install lit
28
+ - name : Run lit testsuite
29
+ run : lit -v --path "$PWD/target/release/:/usr/lib/llvm-13/bin/" ./tests
33
30
34
31
fmt :
35
32
name : rustfmt
36
- runs-on : ubuntu-latest
33
+ runs-on : ubuntu-20.04
37
34
steps :
38
35
- uses : actions/checkout@v2
39
36
- uses : actions-rs/toolchain@v1
40
37
with :
41
38
profile : minimal
42
39
toolchain : stable
43
40
override : true
44
- - run : rustup component add rustfmt
41
+ - name : Add rustup component
42
+ run : rustup component add rustfmt
45
43
- uses : actions-rs/cargo@v1
46
44
with :
47
45
command : fmt
Original file line number Diff line number Diff line change @@ -42,16 +42,18 @@ $ cargo build
42
42
To run the tests, first install the relevant dependencies:
43
43
44
44
``` shell-session
45
+ $ apt install --no-install-recommends --yes llvm-13 llvm-13-tools
45
46
$ pip install lit
46
- $ wget clang+llvm-13.0.0-x86_64-linux-gnu-ubuntu-20.04.tar.xz -O llvm.tar.xz # (you might want to update or change architecture)
47
- $ tar xvf llvm.tar.xz
48
47
```
49
48
50
- Next, run the ` lit ` testsuite, replacing ` $LLVM ` with the path to the extracted LLVM.
49
+ Next, run the ` lit ` testsuite (replacing ` /path/to/llvm/bin ` with the correct path to your LLVM
50
+ installation, if required):
51
51
52
52
``` shell-session
53
- $ cargo build
54
- $ lit -v --path $PWD/target/debug/ --path $LLVM/build/bin/ ./tests
53
+ $ cargo build # in debug mode..
54
+ $ lit -v --path "$PWD/target/debug/:/path/to/llvm/bin/" ./tests
55
+ $ cargo build --release # ..or in release mode
56
+ $ lit -v --path "$PWD/target/release/:/path/to/llvm/bin/" ./tests
55
57
```
56
58
57
59
We use ` rustfmt ` to automatically format and style all of our code. To install and use ` rustfmt ` :
You can’t perform that action at this time.
0 commit comments