Skip to content

Commit

Permalink
Adjust & simplify CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasKoch committed Sep 12, 2023
1 parent 298f657 commit 3b431f5
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 258 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/audit.yml

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
on:
push:
branches:
- master
pull_request:

name: CI

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
- uses: dsherret/rust-toolchain-file@v1
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --all --target thumbv7em-none-eabihf

- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --lib
env:
DEFMT_LOG: off

rustfmt:
name: rustfmt
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
- uses: dsherret/rust-toolchain-file@v1
- name: Rustfmt
run: cargo fmt -- --check

clippy:
name: clippy
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
- uses: dsherret/rust-toolchain-file@v1
- name: Run clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: -- ${{ env.CLIPPY_PARAMS }}
47 changes: 0 additions & 47 deletions .github/workflows/docs.yml

This file was deleted.

78 changes: 0 additions & 78 deletions .github/workflows/grcov.yml

This file was deleted.

84 changes: 0 additions & 84 deletions .github/workflows/lint.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/test.yml

This file was deleted.

7 changes: 7 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[toolchain]
channel = "nightly-2023-06-28"
components = [ "rust-src", "rustfmt", "llvm-tools-preview", "clippy" ]
targets = [
"x86_64-unknown-linux-gnu",
"thumbv7em-none-eabihf"
]

0 comments on commit 3b431f5

Please sign in to comment.