Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Merge #366
Browse files Browse the repository at this point in the history
366: Update CI r=Urhengulas a=Urhengulas



Co-authored-by: Urhengulas <[email protected]>
Co-authored-by: Johann Hemmann <[email protected]>
  • Loading branch information
bors[bot] and Urhengulas authored Nov 29, 2022
2 parents 8add0cf + 0daae30 commit db2b270
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 23 deletions.
30 changes: 7 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,22 @@ on:
pull_request:
branches: [ main ]

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "--deny warnings"

# NOTE if you add, remove or rename a job you'll need to update the list of
# jobs in the `ci` step (at the bottom of this file)
jobs:
test:
strategy:
matrix:
rust:
- stable
- nightly
os:
- ubuntu-latest
- macOS-latest
- windows-latest
runs-on: ${{ matrix.os }}
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- uses: actions/checkout@v3
- name: Use the latest stable release
run: rustup update stable && rustup default stable
- name: Install C libraries for tooling
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update && sudo apt-get install libudev-dev libusb-1.0-0-dev
Expand All @@ -42,20 +32,14 @@ jobs:
static:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: clippy, rustfmt
- uses: actions/checkout@v3
- name: Use the latest stable release
run: rustup update stable && rustup default stable
- name: Install C libraries for tooling
run: sudo apt-get update && sudo apt-get install libudev-dev libusb-1.0-0-dev

- run: cargo fmt -- --check
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- run: cargo clippy -- -D warnings

# Refs: https://github.com/rust-lang/crater/blob/9ab6f9697c901c4a44025cf0a39b73ad5b37d198/.github/workflows/bors.yml#L125-L149
# bors.tech integration
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

## [Unreleased]

- [#366] Update CI

[#366]: https://github.com/knurling-rs/probe-run/pull/366

## [v0.3.5] - 2022-10-07

- [#357] Update to `clap 4.0`
Expand Down

0 comments on commit db2b270

Please sign in to comment.