diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..1438a63 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI + +on: + pull_request: + types: [opened, synchronize, reopened] + push: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: dtolnay/rust-toolchain@stable + with: + components: clippy + targets: x86_64-unknown-linux-musl + + - uses: Swatinem/rust-cache@v2 + + - name: Clippy (inkl. Check) + run: cargo clippy --all-targets -- -D warnings + + - name: Tests + run: cargo test + + - name: Build (musl static, x86_64) + run: | + sudo apt-get update && sudo apt-get install -y musl-tools + cargo build --release --target x86_64-unknown-linux-musl --bin dtrack-stdio