feat(ci): readd build action

This commit is contained in:
DJMrTV 2025-02-05 16:48:30 +01:00
commit 7e65691129

30
.github/workflows/build.yml vendored Normal file
View file

@ -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