Skip to content
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
8 changes: 3 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ jobs:
uses: actions/checkout@v4

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
run: |
rustup toolchain add --profile=minimal --component rustfmt,clippy nightly
rustup override set nightly
- name: Update version in Cargo.toml
run: |
VERSION=$(echo ${{ github.ref }} | sed 's/refs\/tags\/v//')
Expand Down
19 changes: 8 additions & 11 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,14 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.target == 'i686-pc-windows-gnu' && format('{0}-i686-pc-windows-gnu', matrix.channel) || matrix.channel }}
target: ${{ matrix.target }}
override: true
components: rustfmt
- name: Setup toolchain
env:
TOOLCHAIN: ${{ matrix.target == 'i686-pc-windows-gnu' && format('{0}-i686-pc-windows-gnu', matrix.channel) || matrix.channel }}
run: |
rustup toolchain add --component rustfmt --target ${{ matrix.target }} $TOOLCHAIN

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

- uses: actions/setup-java@v4
with:
Expand Down Expand Up @@ -157,7 +154,7 @@ jobs:
# os: ubuntu-latest

- target: x86_64-apple-darwin
os: macos-latest
os: macos-13
- target: aarch64-apple-darwin
os: macos-14

Expand Down
Loading