This repository was archived by the owner on Sep 4, 2025. It is now read-only.
Bump EmbarkStudios/cargo-deny-action from 2.0.11 to 2.0.12 #560
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| paths-ignore: | |
| - "**.md" | |
| pull_request: | |
| paths-ignore: | |
| - "**.md" | |
| workflow_dispatch: | |
| name: Library Crates Unit Test | |
| env: | |
| AS: nasm | |
| AR: llvm-ar | |
| CC: clang | |
| NIGHTLY_RUST_TOOLCHAIN: nightly-2023-12-31 | |
| TOOLCHAIN_PROFILE: minimal | |
| jobs: | |
| lib-test: | |
| name: Build Library Crates | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout sources | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Initialize and update submodules | |
| run: | | |
| git config --global http.postBuffer 524288000 | |
| git config --global http.sslVerify "false" | |
| git submodule update --init --recursive --depth 1 | |
| # Install first since it's needed to build NASM | |
| - name: Install LLVM and Clang | |
| uses: KyleMayes/install-llvm-action@a7a1a882e2d06ebe05d5bb97c3e1f8c984ae96fc # v2.0.7 | |
| with: | |
| version: "10.0" | |
| directory: ${{ runner.temp }}/llvm | |
| - name: Install libtinfo5 | |
| run: sudo apt-get update -y && sudo apt-get install libtinfo5 -y | |
| - name: install NASM | |
| uses: ilammy/setup-nasm@72793074d3c8cdda771dba85f6deafe00623038b # v1.5.2 | |
| - name: Install nightly toolchain | |
| uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7 | |
| with: | |
| profile: ${{ env.TOOLCHAIN_PROFILE }} | |
| toolchain: ${{ env.NIGHTLY_RUST_TOOLCHAIN }} | |
| override: true | |
| - name: Preparation Work | |
| run: bash sh_script/pre-build.sh | |
| - name: Unit Test for src/protocol | |
| run: | | |
| pushd src/protocol | |
| cargo test | |
| popd | |
| - name: Unit Test for src/global | |
| run: | | |
| pushd src/global | |
| cargo test | |
| popd | |
| - name: Unit Test for src/spdm | |
| run: | | |
| pushd src/spdm | |
| cargo test | |
| popd |