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 83ab68b
Showing 1 changed file with 20 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

0 comments on commit 83ab68b

Please sign in to comment.