Merge pull request #47 from cloudflavor/dependabot/cargo/cargo-4f8ad3… #61
This file contains 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 | |
on: | |
push: | |
branches: [ "main" ] | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install latest nightly | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
override: true | |
components: rustfmt, clippy | |
- name: Clone Skyforge repo and copy wit API | |
run: | | |
git clone https://github.com/cloudflavor/skyforge.git | |
rm wit || true && ln -s skyforge/spec/wit | |
- name: Run clippy | |
run: cargo clippy | |
- name: Build skycrane | |
run: cargo build | |
- name: Run tests | |
run: cargo test |