This commit is contained in:
@@ -6,16 +6,27 @@ on: [push]
|
||||
jobs:
|
||||
Build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
steps:
|
||||
- name: Install opengl
|
||||
run: |
|
||||
apt update
|
||||
apt install libgl-dev -y
|
||||
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Prepare XMake
|
||||
- name: Prepare Xmake
|
||||
uses: xmake-io/github-action-setup-xmake@v1
|
||||
with:
|
||||
xmake-version: latest
|
||||
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
|
||||
run: xmake f -p linux -y --root
|
||||
@@ -24,6 +35,4 @@ jobs:
|
||||
run: xmake --root
|
||||
|
||||
- name: Test
|
||||
run: |
|
||||
xmake f -m debug --root
|
||||
xmake test --root
|
||||
run: xmake test --root
|
||||
Reference in New Issue
Block a user