Skip to content

Commit

Permalink
Use stable rust in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
elkowar committed Feb 17, 2024
1 parent db631ea commit d09b879
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
33 changes: 20 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: build

on:
#push:
#branches: [master]
push:
branches: [master]
pull_request:
branches: [master]

Expand All @@ -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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit d09b879

Please sign in to comment.