support logup-shuffle-1.0 #722
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: rust-build | |
| on: | |
| pull_request: | |
| branches: [ "**" ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| - name: Install Rust | |
| run: rustup component add clippy rustfmt | |
| - name: Code Style Check | |
| run: cargo fmt --check | |
| - name: Downgrade CMAKE | |
| run: | | |
| wget -qO cmake.sh "https://github.com/Kitware/CMake/releases/download/v3.22.1/cmake-3.22.1-linux-x86_64.sh" | |
| sudo mkdir -p /opt/cmake | |
| sudo sh cmake.sh --prefix=/opt/cmake --skip-license | |
| echo "/opt/cmake/bin" >> $GITHUB_PATH | |
| - name: Cargo clippy | |
| run: cargo clippy && cargo clippy --features continuation | |
| - name: Build | |
| run: cargo build && cargo clean |