From 2258b1f1b8512a0389dd01fbbee6a6bb756a09e5 Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Sat, 24 May 2025 12:50:31 +0200 Subject: [PATCH 1/3] add ci --- .github/workflows/ubuntu.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/ubuntu.yml diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml new file mode 100644 index 0000000..9f4ea67 --- /dev/null +++ b/.github/workflows/ubuntu.yml @@ -0,0 +1,31 @@ +name: Linux arm64 +run-name: Build And Test + +on: [push] + + +env: + XMAKE_ROOT: y + +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: latest + actions-cache-folder: '.xmake-cache' + actions-cache-key: 'ubuntu' + + - name: XMake config + run: xmake f -p linux -y + + - name: Build + run: xmake + + - name: Test + run: xmake test \ No newline at end of file -- 2.49.1 From 4264e40674a0cd6ae1500fc6d68842a05cca8869 Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Sat, 24 May 2025 12:54:04 +0200 Subject: [PATCH 2/3] ci: fix sfml install --- .github/workflows/ubuntu.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 9f4ea67..8a2fbd5 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -20,6 +20,9 @@ jobs: xmake-version: latest actions-cache-folder: '.xmake-cache' actions-cache-key: 'ubuntu' + + - name: Install SFML + run: apt install libsfml-dev - name: XMake config run: xmake f -p linux -y -- 2.49.1 From d220ae4a55a3b923e20a4d85d24b55b514be6051 Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Sat, 24 May 2025 12:55:28 +0200 Subject: [PATCH 3/3] ci: fix apt --- .github/workflows/ubuntu.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 8a2fbd5..3a73fbb 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -22,7 +22,9 @@ jobs: actions-cache-key: 'ubuntu' - name: Install SFML - run: apt install libsfml-dev + run: | + apt update + apt install -y libsfml-dev - name: XMake config run: xmake f -p linux -y -- 2.49.1