Skip to content

Commit

Permalink
Add CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
exellentcoin26 committed Jul 2, 2023
1 parent 0bb829b commit 27c5495
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI

on: [pull_request, push]

env:
CARGO_TERM_COLOR: always

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

strategy:
matrix:
build:
- stable
include:
- build: stable
os: ubuntu-latest
rust: stable

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install rust toolchain
uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}

- name: Basic build
run: cargo build --verbose

rustfmt:
name: rustfmt
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install rust toolchain
uses: dtolnay/rust-toolchain@stablea
with:
components: rustfmt

- name: Check formatting
run: cargo fmt --all -- --check

0 comments on commit 27c5495

Please sign in to comment.