diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml new file mode 100644 index 0000000..c0297d1 --- /dev/null +++ b/.forgejo/workflows/build.yaml @@ -0,0 +1,36 @@ +name: Cargo Build & Test + +on: + push: + pull_request: + +env: + CARGO_TERM_COLOR: always + +jobs: + build_and_test: + name: Rust project - latest + runs-on: node-bookworm + strategy: + matrix: + toolchain: + - nightly + steps: + - uses: actions/checkout@v4 + - run: ls . && pwd && whoami + shell: bash + - uses: actions/cache/restore@v4 + id: cargo-cache-restore + with: + path: | + ~/.cargo/ + key: ${{ runner.os }}-cargo + - uses: https://github.com/dtolnay/rust-toolchain@stable + with: + toolchain: nightly + - uses: actions/cache/save@v4 + with: + path: | + ~/.cargo/ + key: ${{ steps.cargo-cache-restore.outputs.cache-primary-key }} + - run: cargo test --all-features \ No newline at end of file