From a378cf7a35bd0a116af3f21747e093611cf8bea5 Mon Sep 17 00:00:00 2001 From: ahoneybun Date: Wed, 10 Dec 2025 18:06:10 -0700 Subject: [PATCH] feat: add CI --- .gitea/workflows/ci.yml | 56 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..17e5c97 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,56 @@ +name: build + +on: + push: + branches: [ main ] + +jobs: + build-amd64: + runs-on: [rust-latest, amd64-builder] + steps: + - name: System Info + run: uname -m + + - name: Setup + run: | + apt update -y + apt install -y curl gnupg + curl -fsSL https://deb.nodesource.com/setup_20.x | bash - + apt install -y nodejs + + - name: Checkout + uses: actions/checkout@v5 + + - name: Build + run: cargo build --release + + - name: Upload + uses: actions/upload-artifact@v3 + with: + name: servus-amd64 + path: target/release/servus + + build-arm64: + runs-on: [rust-latest, arm64-builder] + steps: + - name: System Info + run: uname -m + + - name: Setup + run: | + apt update -y + apt install -y curl gnupg + curl -fsSL https://deb.nodesource.com/setup_20.x | bash - + apt install -y nodejs + + - name: Checkout + uses: actions/checkout@v5 + + - name: Build + run: cargo build --release + + - name: Upload + uses: actions/upload-artifact@v3 + with: + name: servus-arm64 + path: target/release/servus