From 3216ebb9ca5d0e9b38b1f9b21416f827e3583915 Mon Sep 17 00:00:00 2001 From: nm17 Date: Thu, 6 Feb 2025 18:47:55 +0400 Subject: [PATCH] ci: initial prototype --- .forgejo/workflows/build.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .forgejo/workflows/build.yaml diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml new file mode 100644 index 0000000..958e786 --- /dev/null +++ b/.forgejo/workflows/build.yaml @@ -0,0 +1,31 @@ +name: Cargo Build & Test + +on: + push: + pull_request: + +env: + CARGO_TERM_COLOR: always + +jobs: + build_and_test: + name: Rust project - latest + runs-on: ubuntu-latest + strategy: + matrix: + toolchain: + - nightly + steps: + - uses: actions/checkout@v4 + - run: ls . && pwd && whoami + shell: bash + - uses: actions/cache@v4 + with: + path: | + ~/.cargo/ + key: ${{ runner.os }}-cargo + - uses: https://github.com/dtolnay/rust-toolchain@stable + with: + toolchain: nightly + + - run: cargo test --all-features \ No newline at end of file