Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reenable other jobs #41

Merged
merged 2 commits into from
Apr 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 40 additions & 36 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,44 +8,44 @@ on:
pull_request:

jobs:
# fmt:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: dtolnay/rust-toolchain@stable
# - run: cargo fmt --all -- --check
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo fmt --all -- --check

# test:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: dtolnay/rust-toolchain@stable
# - run: cargo test
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo test

# clippy:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: dtolnay/rust-toolchain@stable
# - run: cargo clippy -- -D warnings
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo clippy -- -D warnings

# fuzz:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: dtolnay/rust-toolchain@stable
fuzz:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable

# - name: Install cargo fuzz
# uses: taiki-e/install-action@v2
# with:
# tool: cargo-fuzz
- name: Install cargo fuzz
uses: taiki-e/install-action@v2
with:
tool: cargo-fuzz

# - name: Smoke-test fuzz targets
# run: |
# cargo fuzz build --sanitizer none
# for target in $(cargo fuzz list) ; do
# cargo fuzz run --sanitizer none $target -- -max_total_time=10
# done
- name: Smoke-test fuzz targets
run: |
cargo fuzz build --sanitizer none
for target in $(cargo fuzz list) ; do
cargo fuzz run --sanitizer none $target -- -max_total_time=10
done

binary-size:
runs-on: ubuntu-latest
Expand All @@ -64,26 +64,30 @@ jobs:
working-directory: ./example
run: cargo size --release -- -A > ../binsize_new.txt

- name: Rename binsize artifact
if: github.ref_name == 'master'
run: cp binsize_new.txt binsize_master.txt

- name: Store binsize artifact
if: github.ref_name == 'master'
uses: actions/upload-artifact@v4
with:
name: master-binsize
path: binsize_new.txt
path: binsize_master.txt
overwrite: true

- name: Retrieve master binsize artifact
if: github.ref_name != 'master'
uses: actions/download-artifact@v4
with:
name: master-binsize
path: binsize_old.txt
path: binsize_master.txt

- name: Run diff
if: github.ref_name != 'master'
uses: LouisBrunner/diff-action@v2.0.0
with:
old: binsize_old.txt
old: binsize_master.txt
new: binsize_new.txt
token: $GITHUB_TOKEN
notify_issue: true
Loading