Use stable rust in CI

This commit is contained in:
elkowar 2024-02-17 13:09:17 +01:00 committed by ElKowar
parent 9ca98448cc
commit 091b630072
2 changed files with 21 additions and 13 deletions

View File

@ -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

View File

@ -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)