Skip to content

Commit

Permalink
Update CI actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski committed May 11, 2023
1 parent 20b25f2 commit 9e76127
Showing 1 changed file with 9 additions and 34 deletions.
43 changes: 9 additions & 34 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,19 @@ jobs:
uses: actions/checkout@v2

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true

- name: Run cargo test
uses: actions-rs/cargo@v1
# `x509_parser` dev-dependency has transitive dependency `time` which
# has a 6-month MSRV policy, don't run tests on MSRV version since they
# will always fail.
if: ${{ matrix.rust != '1.60.0' }}
with:
command: test
args: --all-features
run: cargo test --all-features

- name: Check default features
uses: actions-rs/cargo@v1
with:
command: check
run: cargo check

ios:
name: iOS compile-check
Expand All @@ -49,18 +42,13 @@ jobs:
uses: actions/checkout@v2

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
profile: minimal
toolchain: stable
target: aarch64-apple-ios
override: true

- name: Run check
uses: actions-rs/cargo@v1
with:
command: check
args: --all-features -p security-framework --target aarch64-apple-ios
run: cargo check --all-features -p security-framework --target aarch64-apple-ios

apple-silicon:
name: Apple Silicon compile-check
Expand All @@ -70,18 +58,12 @@ jobs:
uses: actions/checkout@v2

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
profile: minimal
toolchain: stable
target: aarch64-apple-darwin
override: true

- name: Run check
uses: actions-rs/cargo@v1
with:
command: check
args: --all-features -p security-framework --target aarch64-apple-darwin
run: cargo check --all-features -p security-framework --target aarch64-apple-darwin

lints:
name: Lints
Expand All @@ -91,15 +73,8 @@ jobs:
uses: actions/checkout@v2

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: clippy

- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features
run: cargo clippy --all-features

0 comments on commit 9e76127

Please sign in to comment.