Skip to content

Commit a42be16

Browse files
committed
Simplified CI
1 parent 17e39c3 commit a42be16

File tree

5 files changed

+32
-49
lines changed

5 files changed

+32
-49
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
windows:
7+
runs-on: windows-latest
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v2
11+
with:
12+
persist-credentials: false
13+
- name: Configure Rust compiler
14+
run: |
15+
rustup update
16+
rustup default ${{ matrix.channel }}
17+
rustup target add ${{ matrix.target }}
18+
rustup component add clippy rustfmt
19+
- name: Formatting
20+
run: cargo fmt --check
21+
- name: Clippy
22+
run: cargo clippy --target ${{ matrix.target }} --workspace --examples --tests
23+
- name: Tests
24+
run: cargo test --target ${{ matrix.target }} --workspace --examples --tests
25+
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
channel: [stable]
30+
target:
31+
- x86_64-pc-windows-gnu
32+
- x86_64-pc-windows-msvc

.github/workflows/rust.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

ci/common.bash

Lines changed: 0 additions & 6 deletions
This file was deleted.

ci/set_rust_version.bash

Lines changed: 0 additions & 5 deletions
This file was deleted.

ci/test.bash

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)