Skip to content

Commit 33e9d4c

Browse files
committed
Tweak CI config
1 parent 2b6e452 commit 33e9d4c

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,28 @@ jobs:
99
matrix:
1010
rust: [stable, beta, nightly]
1111
steps:
12-
- uses: actions/checkout@master
12+
- uses: actions/checkout@v2
1313
- name: Install Rust
1414
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
1515
- run: cargo build --all
1616
- run: cargo test --all
1717

18+
fuzz_targets:
19+
name: Fuzz Targets
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v2
23+
# Note that building with fuzzers requires nightly since it uses unstable
24+
# flags to rustc.
25+
- run: rustup update nightly && rustup default nightly
26+
- run: cargo install cargo-fuzz --vers "^0.10"
27+
- run: cargo fuzz build --dev
28+
1829
rustfmt:
1930
name: Rustfmt
2031
runs-on: ubuntu-latest
2132
steps:
22-
- uses: actions/checkout@master
33+
- uses: actions/checkout@v2
2334
- name: Install Rust
2435
run: rustup update stable && rustup default stable && rustup component add rustfmt
2536
- run: cargo fmt -- --check
@@ -28,7 +39,7 @@ jobs:
2839
name: Publish Documentation
2940
runs-on: ubuntu-latest
3041
steps:
31-
- uses: actions/checkout@master
42+
- uses: actions/checkout@v2
3243
- name: Install Rust
3344
run: rustup update stable && rustup default stable
3445
- name: Build documentation
@@ -40,4 +51,4 @@ jobs:
4051
git add .
4152
git -c user.name='ci' -c user.email='ci' commit -m init
4253
git push -f -q https://git:${{ secrets.github_token }}@github.com/${{ github.repository }} HEAD:gh-pages
43-
if: github.event_name == 'push' && github.event.ref == 'refs/heads/master'
54+
if: github.event_name == 'push' && github.event.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)