File tree 1 file changed +46
-7
lines changed
1 file changed +46
-7
lines changed Original file line number Diff line number Diff line change 11
11
12
12
jobs :
13
13
build :
14
- runs-on : ubuntu-latest
14
+ strategy :
15
+ fail-fast : false
16
+ matrix :
17
+ include :
18
+ - TARGET : x86_64-unknown-linux-gnu
19
+ OS : ubuntu-latest
20
+ - TARGET : aarch64-unknown-linux-gnu
21
+ OS : ubuntu-latest
22
+ - TARGET : i686-unknown-linux-gnu
23
+ OS : ubuntu-latest
24
+
25
+ runs-on : ${{ matrix.OS }}
26
+ env :
27
+ TARGET : ${{ matrix.TARGET }}
15
28
16
29
steps :
17
30
- uses : actions/checkout@v2
18
31
with :
19
32
submodules : ' recursive'
33
+
34
+ - name : Create Cargo config file
35
+ run : |
36
+ cat >>~/.cargo/config <<EOF
37
+ [target.aarch64-unknown-linux-gnu]
38
+ rustflags = ["-C", "link-arg=-fuse-ld=lld"]
39
+ [target.i686-unknown-linux-gnu]
40
+ rustflags = ["-C", "link-arg=-fuse-ld=lld"]
41
+ EOF
42
+
43
+ - name : Install LLD
44
+ run : sudo apt install lld
20
45
21
46
- name : Install Rust
22
47
uses : actions-rs/toolchain@v1
23
48
with :
24
49
toolchain : nightly
25
50
default : true
26
51
profile : minimal
27
-
28
- - name : Install dependencies
29
- run : |
30
- sudo apt-get install -y acpica-tools
52
+ target : ${{ matrix.target }}
53
+ components : llvm-tools-preview
31
54
32
55
- name : Build
33
- run : cargo build --all
34
-
56
+ run : cargo build --all --target $TARGET
57
+
58
+ test :
59
+ runs-on : ubuntu-latest
60
+ steps :
61
+ - uses : actions/checkout@v2
62
+ with :
63
+ submodules : ' recursive'
64
+ - name : Install Rust
65
+ uses : actions-rs/toolchain@v1
66
+ with :
67
+ toolchain : nightly
68
+ default : true
69
+ profile : minimal
70
+
71
+ - name : Install dependencies
72
+ run : sudo apt-get install -y acpica-tools
73
+
35
74
- name : Run tests
36
75
run : cargo test --all
37
76
You can’t perform that action at this time.
0 commit comments