Skip to content

Commit 730df64

Browse files
committed
disable clippy --all on windows for now (due to frida issues)
1 parent 9ee427a commit 730df64

File tree

1 file changed

+83
-73
lines changed

1 file changed

+83
-73
lines changed

.github/workflows/build_and_test.yml

Lines changed: 83 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,83 @@
1-
name: Build and Test
2-
3-
on:
4-
push:
5-
branches: [ main, dev ]
6-
pull_request:
7-
branches: [ main, dev ]
8-
9-
env:
10-
CARGO_TERM_COLOR: always
11-
12-
jobs:
13-
lint:
14-
strategy:
15-
matrix:
16-
os: [ubuntu-latest, windows-latest]
17-
runs-on: ${{ matrix.os }}
18-
steps:
19-
- uses: actions/checkout@v2
20-
- name: Cache cargo registry
21-
uses: actions/cache@v2
22-
with:
23-
path: |
24-
~/.cargo/registry
25-
~/.cargo/git
26-
key: clippy-cargo-${{ hashFiles('**/Cargo.toml') }}
27-
- name: Add clippy
28-
run: rustup component add clippy
29-
- name: Run clippy
30-
uses: actions-rs/cargo@v1
31-
with:
32-
command: clippy
33-
args: --all
34-
ubuntu:
35-
runs-on: ubuntu-latest
36-
steps:
37-
- uses: actions/checkout@v2
38-
- name: Default Build
39-
run: cargo build --verbose
40-
- name: Default Test
41-
run: cargo test --verbose
42-
- name: Build all features
43-
run: cd libafl && cargo build --all-features --verbose
44-
- name: Test all features
45-
run: cd libafl && cargo test --all-features --verbose
46-
- name: Build no_std
47-
run: cd libafl && cargo build --no-default-features --verbose
48-
- name: Test no_std
49-
run: cd libafl && cargo test --no-default-features --verbose
50-
- name: Build examples
51-
run: cargo build --examples --verbose
52-
- uses: actions/checkout@v2
53-
- name: Format
54-
run: cargo fmt -- --check
55-
- uses: actions/checkout@v2
56-
- name: Build Docs
57-
run: cargo doc
58-
- name: Test Docs
59-
run: cargo test --doc
60-
windows:
61-
runs-on: windows-latest
62-
steps:
63-
- uses: actions/checkout@v2
64-
- name: Windows Build
65-
run: cargo build --verbose
66-
# TODO: Figure out how to properly build stuff with clang
67-
#- name: Add clang path to $PATH env
68-
# if: runner.os == 'Windows'
69-
# run: echo "C:\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8
70-
#- name: Try if clang works
71-
# run: clang -v
72-
#- name: Windows Test
73-
# run: C:\Rust\.cargo\bin\cargo.exe test --verbose
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches: [ main, dev ]
6+
pull_request:
7+
branches: [ main, dev ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
lint:
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest, windows-latest]
17+
runs-on: ${{ matrix.os }}
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Cache cargo registry
21+
uses: actions/cache@v2
22+
with:
23+
path: |
24+
~/.cargo/registry
25+
~/.cargo/git
26+
key: clippy-cargo-${{ hashFiles('**/Cargo.toml') }}
27+
- name: Add clippy
28+
run: rustup component add clippy
29+
#- name: Run clippy
30+
# uses: actions-rs/cargo@v1
31+
# with:
32+
# command: clippy
33+
# args: --all
34+
35+
ubuntu:
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: actions/checkout@v2
39+
- name: Default Build
40+
run: cargo build --verbose
41+
- name: Default Test
42+
run: cargo test --verbose
43+
- name: Build all features
44+
run: cd libafl && cargo build --all-features --verbose
45+
- name: Test all features
46+
run: cd libafl && cargo test --all-features --verbose
47+
- name: Build no_std
48+
run: cd libafl && cargo build --no-default-features --verbose
49+
- name: Test no_std
50+
run: cd libafl && cargo test --no-default-features --verbose
51+
- name: Build examples
52+
run: cargo build --examples --verbose
53+
- uses: actions/checkout@v2
54+
- name: Format
55+
run: cargo fmt -- --check
56+
- uses: actions/checkout@v2
57+
- name: Build Docs
58+
run: cargo doc
59+
- name: Test Docs
60+
run: cargo test --doc
61+
- name: Run clippy
62+
uses: actions-rs/cargo@v1
63+
with:
64+
command: clippy
65+
args: --all
66+
windows:
67+
runs-on: windows-latest
68+
steps:
69+
- uses: actions/checkout@v2
70+
- name: Windows Build
71+
run: cargo build --verbose
72+
- name: Run clippy
73+
uses: actions-rs/cargo@v1
74+
with:
75+
command: clippy
76+
# TODO: Figure out how to properly build stuff with clang
77+
#- name: Add clang path to $PATH env
78+
# if: runner.os == 'Windows'
79+
# run: echo "C:\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8
80+
#- name: Try if clang works
81+
# run: clang -v
82+
#- name: Windows Test
83+
# run: C:\Rust\.cargo\bin\cargo.exe test --verbose

0 commit comments

Comments
 (0)