3 Commits

Author SHA1 Message Date
01b4d39f84 caca
All checks were successful
Linux arm64 / Build (push) Successful in 5m42s
2024-02-10 20:16:33 +01:00
155c81fa37 cache .xmake too
All checks were successful
Linux arm64 / Build (push) Successful in 5m27s
2024-02-10 19:56:37 +01:00
dbdb650992 cache build
All checks were successful
Linux arm64 / Build (push) Successful in 5m50s
2024-02-10 19:41:22 +01:00
2 changed files with 24 additions and 8 deletions

View File

@@ -1,25 +1,41 @@
name: Linux arm64
run-name: Build And Test
run-name: Build And Test Code
on: [push]
jobs:
Build:
runs-on: ubuntu-test
runs-on: ubuntu-latest
steps:
- name: Install deps
run : |
apt update
apt install -y libsdl2-dev libglew-dev
- name: Check out repository code
uses: actions/checkout@v3
- name: Packages cache
- name: Cache Build
id: cache-build
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/build/.packages
path: |
'build'
'.xmake'
key: ${{ runner.os }}-td
- 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
run: xmake f -p linux -y --root
- name: Build
run: xmake
run: xmake --root
- name: Test
run: xmake test
run: xmake test --root

View File

@@ -1,7 +1,7 @@
add_rules("mode.debug", "mode.release")
add_defines("TD_IMPL_OPENGL_LOADER_GLEW")
add_requires("libsdl >= 2", "zlib", "glew", "minizip")
add_requires("libsdl >= 2", "zlib", "glew")
set_languages("c++17")