Skip to content

Commit

Permalink
Merge pull request #41 from tweedegolf/ci-binary-size
Browse files Browse the repository at this point in the history
Reenable other jobs
  • Loading branch information
diondokter authored Apr 8, 2024
2 parents 7e70609 + 72afa87 commit 857a54e
Showing 1 changed file with 40 additions and 36 deletions.
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/[email protected]
with:
old: binsize_old.txt
old: binsize_master.txt
new: binsize_new.txt
token: $GITHUB_TOKEN
notify_issue: true

0 comments on commit 857a54e

Please sign in to comment.