From d09b879ff6031f3b1c7a88c1cb4ed8f7a58ac35a Mon Sep 17 00:00:00 2001 From: elkowar <5300871+elkowar@users.noreply.github.com> Date: Sat, 17 Feb 2024 13:09:17 +0100 Subject: [PATCH] Use stable rust in CI --- .github/workflows/build.yml | 33 ++++++++++++++++++++------------- CHANGELOG.md | 1 + 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 92fcae450..011ac1475 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,8 +1,8 @@ name: build on: - #push: - #branches: [master] + push: + branches: [master] pull_request: branches: [master] @@ -15,24 +15,31 @@ jobs: steps: - name: Install dependencies run: sudo apt-get update && sudo apt-get install libgtk-3-dev libgtk-layer-shell-dev - - name: Set up - uses: actions-rs/toolchain@v1 + + - uses: actions/checkout@v4 + + - name: Setup rust + uses: dtolnay/rust-toolchain@stable with: - toolchain: nightly - override: true - components: rustfmt - - uses: actions/checkout@v2 - - uses: Swatinem/rust-cache@v1 - - uses: r7kamura/rust-problem-matchers@v1 + components: clippy,rustfmt + + - name: Load rust cache + uses: Swatinem/rust-cache@v2 + + - name: Setup problem matchers + uses: r7kamura/rust-problem-matchers@v1 + - name: Check formatting run: cargo fmt -- --check - name: Check with default features run: cargo check + - name: Run tests run: cargo test - - name: Build x11 only + + - name: Check x11 only run: cargo check --no-default-features --features=x11 - - name: Build wayland only + - name: Check wayland only run: cargo check --no-default-features --features=wayland - - name: Build no-backend + - name: Check no-backend run: cargo check --no-default-features diff --git a/CHANGELOG.md b/CHANGELOG.md index 86a57d198..8e7559aed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ All notable changes to eww will be listed here, starting at changes since versio - Add support for multiple matchers in `monitor` field - Add `stack` widget (By: vladaviedov) - Add `unindent` property to the label widget, allowing to disable removal of leading spaces (By: nrv) +- Switch to stable rust toolchain (1.76) ## [0.4.0] (04.09.2022)