Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisduerr committed Apr 5, 2024
1 parent cb11149 commit 071ea2f
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Dependencies
run: |
sudo apt-get update
sudo apt-get install libwpe-1.0-1 libwpebackend-fdo-1.0-1 libwpewebkit-1.0-3
- uses: actions/checkout@v2
- name: Stable
run: cargo test
- name: Oldstable
run: |
oldstable=$(cat Cargo.toml | grep "rust-version" | sed 's/.*"\(.*\)".*/\1/')
rustup toolchain install --profile minimal $oldstable
rustup default $oldstable
cargo test
- name: Clippy
run: |
rustup component add clippy
cargo clippy --all-targets
- name: Rustfmt
run: |
rustup toolchain install nightly -c rustfmt
cargo +nightly fmt -- --check

0 comments on commit 071ea2f

Please sign in to comment.