This commit is contained in:
@@ -7,15 +7,26 @@ jobs:
|
|||||||
Build:
|
Build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install opengl
|
||||||
|
run: |
|
||||||
|
apt update
|
||||||
|
apt install libgl-dev -y
|
||||||
|
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Prepare XMake
|
- name: Prepare Xmake
|
||||||
uses: xmake-io/github-action-setup-xmake@v1
|
uses: xmake-io/github-action-setup-xmake@v1
|
||||||
with:
|
with:
|
||||||
xmake-version: latest
|
xmake-version: latest
|
||||||
actions-cache-folder: '.xmake-cache'
|
actions-cache-folder: '.xmake-cache'
|
||||||
actions-cache-key: 'ubuntu'
|
actions-cache-key: 'ubuntu-xmake'
|
||||||
|
|
||||||
|
- name: Cache
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ~/.xmake
|
||||||
|
key: 'ubuntu'
|
||||||
|
|
||||||
- name: XMake config
|
- name: XMake config
|
||||||
run: xmake f -p linux -y --root
|
run: xmake f -p linux -y --root
|
||||||
@@ -24,6 +35,4 @@ jobs:
|
|||||||
run: xmake --root
|
run: xmake --root
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: xmake test --root
|
||||||
xmake f -m debug --root
|
|
||||||
xmake test --root
|
|
||||||
Reference in New Issue
Block a user