Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI #258

Merged
merged 3 commits into from
Jul 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,10 @@ jobs:
- uses: actions/checkout@v3

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

- name: build libraries
run: |
Expand Down
28 changes: 8 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,16 @@ jobs:
runs-on: ubuntu-latest
name: Check formatting
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: install stable toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
profile: minimal
components: rustfmt
override: true

- name: cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all -- --check

- name: clang-format
uses: jidicula/clang-format-action@v4.11.0
Expand All @@ -40,29 +35,22 @@ jobs:
os: [macOS-latest, windows-2019, ubuntu-latest]
name: cargo clippy+test
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

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

- name: restore cache
uses: Swatinem/rust-cache@v1
uses: Swatinem/rust-cache@v2

- name: cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets -- -D warnings
run: cargo clippy --all-targets -- -D warnings

- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test
run: cargo test

generate-headers:
uses: AccessKit/accesskit/.github/workflows/generate-headers.yml@main
6 changes: 1 addition & 5 deletions .github/workflows/generate-headers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ jobs:
- uses: actions/checkout@v3

- name: install nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
override: true
uses: dtolnay/rust-toolchain@nightly

- uses: dtolnay/install@master
with:
Expand Down
Loading