mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-07-07 21:25:37 +00:00
ci: Fix up release workflow
This commit is contained in:
parent
6d465579f9
commit
968d2467a8
3 changed files with 9 additions and 5 deletions
5
.github/workflows/ci.yaml
vendored
5
.github/workflows/ci.yaml
vendored
|
@ -84,6 +84,7 @@ jobs:
|
||||||
CC: deny_c
|
CC: deny_c
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
|
|
||||||
|
@ -326,12 +327,12 @@ jobs:
|
||||||
|
|
||||||
cancel-if-matrix-failed:
|
cancel-if-matrix-failed:
|
||||||
needs: rust
|
needs: rust
|
||||||
|
if: ${{ always() }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Cancel parallel jobs
|
- name: Cancel parallel jobs
|
||||||
if: failure()
|
|
||||||
run: |
|
run: |
|
||||||
if [ jq --exit-status 'all(.result == "success" or .result == "skipped")' <<< '${{ toJson(needs) }}' ]; then
|
if jq --exit-status 'all(.result == "success" or .result == "skipped")' <<< '${{ toJson(needs) }}'; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
# https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#cancel-a-workflow-run
|
# https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#cancel-a-workflow-run
|
||||||
|
|
4
.github/workflows/release.yaml
vendored
4
.github/workflows/release.yaml
vendored
|
@ -134,13 +134,13 @@ jobs:
|
||||||
|
|
||||||
- name: Run analysis-stats on rust-analyzer
|
- name: Run analysis-stats on rust-analyzer
|
||||||
if: matrix.target == 'x86_64-unknown-linux-gnu'
|
if: matrix.target == 'x86_64-unknown-linux-gnu'
|
||||||
run: target/${{ matrix.target }}/release/rust-analyzer analysis-stats .
|
run: target/${{ matrix.target }}/release/rust-analyzer analysis-stats . -q
|
||||||
|
|
||||||
- name: Run analysis-stats on rust std library
|
- name: Run analysis-stats on rust std library
|
||||||
if: matrix.target == 'x86_64-unknown-linux-gnu'
|
if: matrix.target == 'x86_64-unknown-linux-gnu'
|
||||||
env:
|
env:
|
||||||
RUSTC_BOOTSTRAP: 1
|
RUSTC_BOOTSTRAP: 1
|
||||||
run: target/${{ matrix.target }}/release/rust-analyzer analysis-stats --with-deps $(rustc --print sysroot)/lib/rustlib/src/rust/library/std
|
run: target/${{ matrix.target }}/release/rust-analyzer analysis-stats --with-deps $(rustc --print sysroot)/lib/rustlib/src/rust/library/std -q
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|
|
@ -3044,7 +3044,10 @@ impl IntValue {
|
||||||
(8, true) => Self::I64(i64::from_le_bytes(bytes.try_into().unwrap())),
|
(8, true) => Self::I64(i64::from_le_bytes(bytes.try_into().unwrap())),
|
||||||
(16, false) => Self::U128(u128::from_le_bytes(bytes.try_into().unwrap())),
|
(16, false) => Self::U128(u128::from_le_bytes(bytes.try_into().unwrap())),
|
||||||
(16, true) => Self::I128(i128::from_le_bytes(bytes.try_into().unwrap())),
|
(16, true) => Self::I128(i128::from_le_bytes(bytes.try_into().unwrap())),
|
||||||
_ => panic!("invalid integer size"),
|
(len, is_signed) => {
|
||||||
|
never!("invalid integer size: {len}, signed: {is_signed}");
|
||||||
|
Self::I32(0)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue