8000 Simplify CI by Phantomical · Pull Request #13 · Phantomical/perf-event · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Simplify CI #13

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.

B 8000 y 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

Merged
merged 2 commits into from
May 17, 2023
Merged
Show file tree
Hide file tree
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
29 changes: 17 additions & 12 deletions .github/workflows/cargo.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: cargo

on:
workflow_call:
push:
pull_request:

jobs:
test:
Expand Down Expand Up @@ -31,17 +32,6 @@ jobs:
shell: bash
run: cargo fmt --all -- --check

doc:
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: -D warnings
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: cargo doc
shell: bash
run: cargo doc --all-features

clippy:
runs-on: ubuntu-latest
steps:
Expand All @@ -66,6 +56,21 @@ jobs:
with:
name: clippy-sarif
path: clippy.sarif

clippy-upload:
if: ${{ github.event_name == 'pull_request' || github.ref == 'refs/heads/master' }}
runs-on: ubuntu-latest
needs: [ clippy ]
permissions:
security-events: write
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: clippy-sarif
- uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: clippy.sarif

check-success:
name: verify all checks pass
Expand Down
52 changes: 0 additions & 52 deletions .github/workflows/dispatch.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## perf-event: a Rust interface to Linux performance monitoring

![example workflow](https://github.com/jimblandy/perf-event/actions/workflows/master.yml/badge.svg)
![example workflow](https://img.shields.io/github/actions/workflow/status/phantomical/perf-event/cargo.yml?style=flat-square)

*This is a nascent project. Tests are lacking. The design may change.*

Expand Down
0