-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
CI: pin rust to 1.61.0 and check MSRV #2529
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,15 +11,21 @@ jobs: | |
| check: | ||
| name: Check | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| rust: [stable, msrv] | ||
| steps: | ||
| - name: Checkout sources | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Use MSRV rust toolchain | ||
| if: matrix.rust == 'msrv' | ||
| run: cp .github/workflows/msrv-rust-toolchain.toml rust-toolchain.toml | ||
|
|
||
| - name: Install stable toolchain | ||
| uses: actions-rs/toolchain@v1 | ||
| uses: helix-editor/rust-toolchain@v1 | ||
| with: | ||
| profile: minimal | ||
| toolchain: stable | ||
| override: true | ||
|
|
||
| - uses: Swatinem/rust-cache@v1 | ||
|
|
@@ -37,10 +43,9 @@ jobs: | |
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Install stable toolchain | ||
| uses: actions-rs/toolchain@v1 | ||
| uses: helix-editor/rust-toolchain@v1 | ||
| with: | ||
| profile: minimal | ||
| toolchain: ${{ matrix.rust }} | ||
| override: true | ||
|
|
||
| - uses: Swatinem/rust-cache@v1 | ||
|
|
@@ -52,8 +57,8 @@ jobs: | |
| uses: actions/cache@v3 | ||
| with: | ||
| path: runtime/grammars | ||
| key: ${{ runner.os }}-v2-tree-sitter-grammars-${{ hashFiles('languages.toml') }} | ||
| restore-keys: ${{ runner.os }}-v2-tree-sitter-grammars- | ||
| key: ${{ runner.os }}-stable-v${{ env.CACHE_VERSION }}-tree-sitter-grammars-${{ hashFiles('languages.toml') }} | ||
| restore-keys: ${{ runner.os }}-stable-v${{ env.CACHE_VERSION }}-tree-sitter-grammars- | ||
|
|
||
| - name: Run cargo test | ||
| uses: actions-rs/cargo@v1 | ||
|
|
@@ -64,7 +69,6 @@ jobs: | |
| strategy: | ||
| matrix: | ||
| os: [ubuntu-latest, macos-latest, windows-latest] | ||
| rust: [stable] | ||
|
|
||
| lints: | ||
| name: Lints | ||
|
|
@@ -74,10 +78,9 @@ jobs: | |
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Install stable toolchain | ||
| uses: actions-rs/toolchain@v1 | ||
| uses: helix-editor/rust-toolchain@v1 | ||
| with: | ||
| profile: minimal | ||
| toolchain: stable | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not run with both stable and the fixed version? That we can make sure helix code can still run on stable in case someone use it.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh yeah we could have smoke tests on stable running on a cron or something. I just don't want it to fail CI for PRs when rust does a release. |
||
| override: true | ||
| components: rustfmt, clippy | ||
|
|
||
|
|
@@ -103,10 +106,9 @@ jobs: | |
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Install stable toolchain | ||
| uses: actions-rs/toolchain@v1 | ||
| uses: helix-editor/rust-toolchain@v1 | ||
| with: | ||
| profile: minimal | ||
| toolchain: stable | ||
| override: true | ||
|
|
||
| - uses: Swatinem/rust-cache@v1 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [toolchain] | ||
| channel = "1.57.0" | ||
| components = ["rustfmt", "rust-src"] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| [toolchain] | ||
| channel = "stable" | ||
| channel = "1.61.0" | ||
| components = ["rustfmt", "rust-src"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need our own fork?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We merged in actions-rs/toolchain#209 - without it we would need to use the deprecated
rust-toolchainfile rather thanrust-toolchain.toml.Looks like upstream might be unmaintained at the moment as well but we'll leave #2528 open to switch back if 209 gets merged upstream.