Support rust analysis
This is supposed to enable rust analysis for the staff ship only.
This commit is contained in:
parent
d99c7e8e5b
commit
a7b17782a9
16 changed files with 186 additions and 13 deletions
23
pr-checks/checks/rust.yml
Normal file
23
pr-checks/checks/rust.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
name: "Rust analysis"
|
||||
description: "Tests creation of a Rust database"
|
||||
versions: ["linked", "default", "nightly-latest"]
|
||||
operatingSystems: ["ubuntu"]
|
||||
steps:
|
||||
- uses: ./../action/init
|
||||
with:
|
||||
languages: rust
|
||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||
env:
|
||||
CODEQL_ACTION_RUST_ANALYSIS: true
|
||||
- uses: ./../action/analyze
|
||||
id: analysis
|
||||
with:
|
||||
upload-database: false
|
||||
- name: Check database
|
||||
shell: bash
|
||||
run: |
|
||||
RUST_DB="${{ fromJson(steps.analysis.outputs.db-locations).rust }}"
|
||||
if [[ ! -d "$RUST_DB" ]]; then
|
||||
echo "Did not create a database for Rust."
|
||||
exit 1
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue