From 92fd4165eb5ed1ae97d56aa511e1e703d4d96bb9 Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Sat, 1 Mar 2025 19:25:19 +0100 Subject: [PATCH 1/3] add action --- .github/workflows/ubuntu.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..c4b6e00 --- /dev/null +++ b/.github/workflows/ubuntu.yml @@ -0,0 +1,25 @@ +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: latest + + - 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 249477fdd429871315cefe3152c93121d864edc1 Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Sat, 1 Mar 2025 19:33:03 +0100 Subject: [PATCH 2/3] action: cache xmake --- .github/workflows/ubuntu.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index c4b6e00..3aedfbc 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -14,6 +14,8 @@ jobs: 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 -- 2.49.1 From 1b1279432e6f64f40397ab7d3157663b575d1335 Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Sat, 1 Mar 2025 19:37:20 +0100 Subject: [PATCH 3/3] action: xmake root --- .github/workflows/ubuntu.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 3aedfbc..9f4ea67 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -3,6 +3,10 @@ run-name: Build And Test on: [push] + +env: + XMAKE_ROOT: y + jobs: Build: runs-on: ubuntu-latest -- 2.49.1