From 7e6569112960c646de243e184a879cdd986ddb0b Mon Sep 17 00:00:00 2001 From: DJMrTV Date: Wed, 5 Feb 2025 16:48:30 +0100 Subject: [PATCH] feat(ci): readd build action --- .github/workflows/build.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a1f51b3 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,30 @@ +name: Build + +on: + push: + branches: + - main + pull_request: + branches: + - main + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: self-hosted + steps: + - name: Checkout Repository And Submodules + uses: actions/checkout@v1 + with: + submodules: recursive + + - name: Setup Rust + run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -q -y + + - name: Build + run: . "$HOME/.cargo/env" && cargo build --verbose + + - name: Run tests + run: . "$HOME/.cargo/env" && cargo test --verbose \ No newline at end of file