Skip to content

Commit

Permalink
ci: add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vthib committed Nov 7, 2022
1 parent 30e1dee commit 1e3a99e
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: CI

on:
pull_request:
push:
branches:
- master
schedule:
- cron: '45 4 * * 3'

env:
RUSTFLAGS: -Dwarnings

jobs:
test:
name: Test ${{matrix.build}}
runs-on: ${{matrix.os}}

steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
target: ${{matrix.target}}
- run: cargo test --all-features

strategy:
fail-fast: false
matrix:
build: [linux, linux32, windows, windows32, macos]
include:
- build: linux
os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- build: linux32
os: ubuntu-latest
target: i686-unknown-linux-gnu
- build: windows
os: windows-latest
target: x86_64-pc-windows-msvc
- build: windows32
os: windows-latest
target: i686-pc-windows-msvc
- build: macos
os: macos-latest
target: x86_64-apple-darwin

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: cargo clippy --tests --all-features

rustmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --all --check

deny:
name: Deny
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: EmbarkStudios/cargo-deny-action@v1

0 comments on commit 1e3a99e

Please sign in to comment.