Fix new rustc and clippy warnings #291
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
| name: Build and Test | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| # This allows manually running CI through the github ui | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-22.04 | |
| env: | |
| CXX: clang++-14 | |
| CLANG_FORMAT: clang-format-14 | |
| CARGO_TERM_COLOR: always | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: install ninja | |
| run: | | |
| mkdir -p ${GITHUB_WORKSPACE}/ninja-bin; cd ${GITHUB_WORKSPACE}/ninja-bin | |
| wget https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-linux.zip | |
| unzip ninja-linux.zip | |
| rm ninja-linux.zip | |
| echo "${GITHUB_WORKSPACE}/ninja-bin" >> "$GITHUB_PATH" | |
| - name: install GNU Make | |
| run: | | |
| mkdir -p ${GITHUB_WORKSPACE}/make-bin/tmp; cd ${GITHUB_WORKSPACE}/make-bin/tmp | |
| wget http://mirrors.kernel.org/ubuntu/pool/main/m/make-dfsg/make_4.2.1-1.2_amd64.deb | |
| ar xv make_4.2.1-1.2_amd64.deb | |
| tar xf data.tar.xz | |
| mv usr/bin/make ../ | |
| cd .. | |
| rm -rf tmp/ | |
| echo "${GITHUB_WORKSPACE}/make-bin" >> "$GITHUB_PATH" | |
| - name: make info | |
| run: make info | |
| - name: make | |
| run: make -j4 ckati ckati_tests | |
| - name: clang format | |
| run: ./clang-format-check | |
| - name: run standalone tests | |
| run: go test | |
| - name: run ninja tests | |
| run: go test --ninja | |
| - name: run ninja all targets tests | |
| run: go test --ninja --all | |
| - name: run ninja unit tests | |
| run: ./ninja_test | |
| - name: run strutil unit tests | |
| run: ./strutil_test | |
| - name: run find unit tests | |
| run: ./find_test | |
| - name: run JSON dump tests | |
| run: testcase/dump/run.sh | |
| - name: get rust version | |
| run: rustup --version | |
| - name: build rkati | |
| run: cargo build | |
| - name: run rkati tests | |
| run: cargo test | |
| - name: check rustfmt | |
| run: cargo fmt --check | |
| - name: run clippy | |
| run: cargo clippy | |
| - name: run standalone tests with rkati | |
| run: go test --rkati | |
| - name: run ninja tests with rkati | |
| run: go test --ninja --rkati | |
| - name: run ninja all targets tests with rkati | |
| run: go test --ninja --all --rkati | |
| - name: run JSON dump tests with rkati | |
| run: KATI=$PWD/target/debug/rkati testcase/dump/run.sh |