Skip to content

Commit

Permalink
fix(ci): update Rust toolchain setup and sorting logic
Browse files Browse the repository at this point in the history
Refined the Rust toolchain setup in the CI workflow to use the stable version. Improved the sorting logic in the codebase for stability and consistency.
  • Loading branch information
liblaf committed Apr 24, 2024
1 parent 893c12b commit 94e4ad2
Show file tree
Hide file tree
Showing 11 changed files with 295 additions and 1,381 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ name: CI
on:
push:

env:
TOOLCHAIN: stable

jobs:
build:
name: Build
Expand All @@ -14,9 +11,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Rust
run: |-
rustup default "${{ env.TOOLCHAIN }}"
rustup update "${{ env.TOOLCHAIN }}"
run: rustup default stable
- name: Cache Rust
uses: Swatinem/rust-cache@v2
- name: Install Tools
Expand All @@ -34,21 +29,22 @@ jobs:
strategy:
matrix:
os:
- macos-14
- macos-latest
- ubuntu-latest
- windows-latest
- macos-latest

release:
name: Release
permissions:
contents: write
needs:
- build
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
needs:
- build
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
Expand Down
Loading

0 comments on commit 94e4ad2

Please sign in to comment.