Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 25 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,37 @@ env:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions-rs/toolchain@v1
with:
components: rustfmt, clippy
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
- name: Build Playground
working-directory: ./crates/playground
run: cargo build --examples
# build-playground:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: recursive
# - 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: Build Playground
# working-directory: ./crates/playground
# run: cargo build --examples
Loading