From 21a7268cbcab3894b42b1e0101c12dfc5865b60c Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Sat, 10 Feb 2024 14:31:54 +0100 Subject: [PATCH] add actions --- .gitea/workflows/ubuntu.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitea/workflows/ubuntu.yaml diff --git a/.gitea/workflows/ubuntu.yaml b/.gitea/workflows/ubuntu.yaml new file mode 100644 index 0000000..308f361 --- /dev/null +++ b/.gitea/workflows/ubuntu.yaml @@ -0,0 +1,27 @@ +name: Linux arm64 +run-name: Build And Test + +on: [push] + +jobs: + Build: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v3 + + - name: Prepare XMake + uses: xmake-io/github-action-setup-xmake@v1 + with: + xmake-version: branch@master + actions-cache-folder: '.xmake-cache' + actions-cache-key: 'ubuntu' + + - name: XMake config + run: xmake f -p linux -y --root + + - name: Build + run: xmake --root + + - name: Test + run: xmake test --root