Skip to content

Commit cd09f56

Browse files
authored
Merge pull request #6 from jnises/updates
Updates
2 parents c342259 + c6943bb commit cd09f56

File tree

4 files changed

+299
-123
lines changed

4 files changed

+299
-123
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ jobs:
1919
~/.cargo/git/db/
2020
target/
2121
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
22-
- uses: actions-rs/toolchain@v1
23-
with:
24-
profile: minimal
25-
toolchain: stable
22+
- uses: dtolnay/rust-toolchain@stable
2623
- name: Build
2724
run: |
2825
cargo build --release
@@ -45,11 +42,9 @@ jobs:
4542
~/.cargo/git/db/
4643
target/
4744
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
48-
- uses: actions-rs/toolchain@v1
45+
- uses: dtolnay/rust-toolchain@stable
4946
with:
50-
profile: minimal
51-
toolchain: stable
52-
target: aarch64-apple-darwin
47+
targets: aarch64-apple-darwin, x86_64-apple-darwin
5348
- name: Build x86_64
5449
run: |
5550
cargo build --release --target x86_64-apple-darwin

.github/workflows/test.yml

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,18 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v3
19-
- uses: actions/cache@v3
20-
with:
21-
path: |
22-
~/.cargo/bin/
23-
~/.cargo/registry/index/
24-
~/.cargo/registry/cache/
25-
~/.cargo/git/db/
26-
target/
27-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
28-
- uses: actions-rs/toolchain@v1
29-
with:
30-
profile: minimal
31-
toolchain: stable
32-
component: clippy, rustfmt
33-
- name: Build
34-
run: cargo build --verbose
35-
- name: Run tests
36-
run: cargo test --verbose
37-
- name: fmt
38-
run: cargo fmt --all -- --check
39-
- name: clippy
40-
run: cargo clippy -- -D warnings
18+
- uses: actions/checkout@v3
19+
- uses: actions/cache@v3
20+
with:
21+
path: |
22+
~/.cargo/bin/
23+
~/.cargo/registry/index/
24+
~/.cargo/registry/cache/
25+
~/.cargo/git/db/
26+
target/
27+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
28+
- uses: dtolnay/rust-toolchain@stable
29+
- run: cargo check
30+
- run: cargo test
31+
- run: cargo fmt --all -- --check
32+
- run: cargo clippy -- -D warnings

0 commit comments

Comments
 (0)