Compare commits
3 Commits
actions
...
doc-action
| Author | SHA1 | Date | |
|---|---|---|---|
| 01b4d39f84 | |||
| 155c81fa37 | |||
| dbdb650992 |
@@ -1,25 +1,41 @@
|
|||||||
name: Linux arm64
|
name: Linux arm64
|
||||||
run-name: Build And Test
|
run-name: Build And Test Code
|
||||||
|
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Build:
|
Build:
|
||||||
runs-on: ubuntu-test
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install deps
|
||||||
|
run : |
|
||||||
|
apt update
|
||||||
|
apt install -y libsdl2-dev libglew-dev
|
||||||
|
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Packages cache
|
- name: Cache Build
|
||||||
|
id: cache-build
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
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
|
- name: XMake config
|
||||||
run: xmake f -p linux -y
|
run: xmake f -p linux -y --root
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: xmake
|
run: xmake --root
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: xmake test
|
run: xmake test --root
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
add_rules("mode.debug", "mode.release")
|
add_rules("mode.debug", "mode.release")
|
||||||
|
|
||||||
add_defines("TD_IMPL_OPENGL_LOADER_GLEW")
|
add_defines("TD_IMPL_OPENGL_LOADER_GLEW")
|
||||||
add_requires("libsdl >= 2", "zlib", "glew", "minizip")
|
add_requires("libsdl >= 2", "zlib", "glew")
|
||||||
|
|
||||||
set_languages("c++17")
|
set_languages("c++17")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user