Skip to content

Commit 782d454

Browse files
add github workflow
1 parent 20c758c commit 782d454

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/main.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Main
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
main:
7+
name: ${{ matrix.os }} - ${{ matrix.rust }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [ubuntu-latest, macos-latest, windows-latest]
12+
rust: [stable, beta, nightly]
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions-rs/toolchain@v1
16+
with:
17+
toolchain: ${{ matrix.rust }}
18+
override: true
19+
components: clippy, rustfmt
20+
- run: cargo build
21+
- run: cargo test
22+
- run: cargo fmt -- --check
23+
if: ${{ matrix.os == 'ubuntu-latest' }}
24+
- run: cargo clippy
25+
continue-on-error: true

0 commit comments

Comments
 (0)