File tree 1 file changed +23
-5
lines changed
1 file changed +23
-5
lines changed Original file line number Diff line number Diff line change 1
- on : push
2
- name : Clippy check
1
+ on : [ push, pull_request]
2
+ name : check
3
3
jobs :
4
- clippy_check :
4
+ check :
5
5
runs-on : ubuntu-latest
6
6
steps :
7
7
- uses : actions/checkout@v1
8
+ - uses : actions-rs/toolchain@v1
9
+ with :
10
+ toolchain : nightly
8
11
- run : rustup component add clippy
9
- - uses : actions-rs/clippy-check@v1
12
+ - name : prepare cross compile toolchain
13
+ run : |
14
+ sudo apt install -qq crossbuild-essential-arm64 libssl-dev
15
+ rustup target add aarch64-unknown-linux-gnu
16
+
17
+ # specified linker, it's needed for cross compile on linux
18
+ cat >> ~/.cargo/config << EOF
19
+ [target.aarch64-unknown-linux-gnu]
20
+ linker = "aarch64-linux-gnu-gcc"
21
+ EOF
22
+ - name : clippy check
23
+ uses : actions-rs/clippy-check@v1
10
24
with :
11
25
token : ${{ secrets.GITHUB_TOKEN }}
12
- args : --all-features
26
+ args : --all-features
27
+ - name : check cross compile
28
+ run : |
29
+ cargo install resalloc-kubernetes --root . --target aarch64-unknown-linux-gnu
30
+ cargo install resalloc-kubernetes --root .
You can’t perform that action at this time.
0 commit comments