Skip to content

Commit 7d5579d

Browse files
authored
Merge pull request #20118 from Veykril/push-nolsxzxmykls
ci: Fix up release workflow
2 parents 9cd5826 + 0f93d8a commit 7d5579d

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

src/tools/rust-analyzer/.github/workflows/ci.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ jobs:
8484
CC: deny_c
8585

8686
strategy:
87+
fail-fast: false
8788
matrix:
8889
os: [ubuntu-latest, windows-latest, macos-latest]
8990

@@ -326,12 +327,12 @@ jobs:
326327
327328
cancel-if-matrix-failed:
328329
needs: rust
330+
if: ${{ always() }}
329331
runs-on: ubuntu-latest
330332
steps:
331333
- name: Cancel parallel jobs
332-
if: failure()
333334
run: |
334-
if [ jq --exit-status 'all(.result == "success" or .result == "skipped")' <<< '${{ toJson(needs) }}' ]; then
335+
if jq --exit-status 'all(.result == "success" or .result == "skipped")' <<< '${{ toJson(needs) }}'; then
335336
exit 0
336337
fi
337338
# https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#cancel-a-workflow-run

src/tools/rust-analyzer/.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,13 @@ jobs:
134134

135135
- name: Run analysis-stats on rust-analyzer
136136
if: matrix.target == 'x86_64-unknown-linux-gnu'
137-
run: target/${{ matrix.target }}/release/rust-analyzer analysis-stats .
137+
run: target/${{ matrix.target }}/release/rust-analyzer analysis-stats . -q
138138

139139
- name: Run analysis-stats on rust std library
140140
if: matrix.target == 'x86_64-unknown-linux-gnu'
141141
env:
142142
RUSTC_BOOTSTRAP: 1
143-
run: target/${{ matrix.target }}/release/rust-analyzer analysis-stats --with-deps $(rustc --print sysroot)/lib/rustlib/src/rust/library/std
143+
run: target/${{ matrix.target }}/release/rust-analyzer analysis-stats --with-deps $(rustc --print sysroot)/lib/rustlib/src/rust/library/std -q
144144

145145
- name: Upload artifacts
146146
uses: actions/upload-artifact@v4

src/tools/rust-analyzer/crates/hir-ty/src/mir/eval.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3044,7 +3044,10 @@ impl IntValue {
30443044
(8, true) => Self::I64(i64::from_le_bytes(bytes.try_into().unwrap())),
30453045
(16, false) => Self::U128(u128::from_le_bytes(bytes.try_into().unwrap())),
30463046
(16, true) => Self::I128(i128::from_le_bytes(bytes.try_into().unwrap())),
3047-
_ => panic!("invalid integer size"),
3047+
(len, is_signed) => {
3048+
never!("invalid integer size: {len}, signed: {is_signed}");
3049+
Self::I32(0)
3050+
}
30483051
}
30493052
}
30503053

0 commit comments

Comments
 (0)