Skip to content

Commit

Permalink
CI: re-enable benches and security audit (#287)
Browse files Browse the repository at this point in the history
These were temporarily disabled to complete upgrading dependencies
  • Loading branch information
tarcieri authored Apr 29, 2021
1 parent 89e99a2 commit 4fddf91
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 60 deletions.
69 changes: 34 additions & 35 deletions .github/workflows/benches.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,34 @@
# TODO(tarcieri): re-enable after UHFs are bumped
#name: benches
#
#on:
# pull_request:
# paths:
# - "benches/**"
# - "Cargo.*"
# push:
# branches: master
#
#defaults:
# run:
# working-directory: benches
#
#env:
# CARGO_INCREMENTAL: 0
# RUSTFLAGS: "-Dwarnings"
#
#jobs:
# build:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# rust:
# - 1.41.0 # MSRV
# - stable
# steps:
# - uses: actions/checkout@v1
# - uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: ${{ matrix.rust }}
# override: true
# - run: cargo build --release
name: benches

on:
pull_request:
paths:
- "benches/**"
- "Cargo.*"
push:
branches: master

defaults:
run:
working-directory: benches

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- run: cargo build --release
49 changes: 24 additions & 25 deletions .github/workflows/security-audit.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
# TODO(tarcieri): re-enable after UHFs are bumped
#name: Security Audit
#on:
# pull_request:
# paths: Cargo.lock
# push:
# branches: master
# paths: Cargo.lock
# schedule:
# - cron: "0 0 * * *"
#
#jobs:
# security_audit:
# name: Security Audit
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - name: Cache cargo bin
# uses: actions/cache@v1
# with:
# path: ~/.cargo/bin
# key: ${{ runner.os }}-cargo-audit-v0.12
# - uses: actions-rs/audit-check@v1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
name: Security Audit
on:
pull_request:
paths: Cargo.lock
push:
branches: master
paths: Cargo.lock
schedule:
- cron: "0 0 * * *"

jobs:
security_audit:
name: Security Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Cache cargo bin
uses: actions/cache@v1
with:
path: ~/.cargo/bin
key: ${{ runner.os }}-cargo-audit-v0.12
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4fddf91

Please sign in to comment.