fixes to run on spike #1127
Workflow file for this run
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
| # SPDX-FileCopyrightText: 2023 Rivos Inc. | |
| # | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: Rust | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| workflow_dispatch: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| fetch-depth: 0 | |
| - name: Check all commits build | |
| if: ${{ github.event_name == 'pull_request' }} | |
| run: | | |
| set -e | |
| commits=$(git rev-list --reverse origin/${{ github.base_ref }}..${{ github.sha }}) | |
| for commit in $commits; do git checkout $commit; git submodule update; bazel build //:salus-all; done | |
| - name: Build | |
| run: bazel build //:salus-all | |
| - name: Lint | |
| run: bazel build //:clippy-all | |
| - name: Format | |
| run: bazel test //:rustfmt-all | |
| - name: Run tests | |
| run: bazel test //:test-all | |
| - name: Copy bins | |
| run: mkdir test-bins && cp bazel-bin/salus test-bins/ && cp bazel-bin/test-workloads/tellus_guestvm test-bins/ | |
| - name: QEMU test | |
| uses: rivosinc/rivos-run-salus-qemu@v1 |