Compare commits
3 Commits
e2f1850987
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| e80c6a3c60 | |||
| 680c180b4b | |||
| a4e90b455d |
@@ -6,12 +6,7 @@ on: [push]
|
|||||||
jobs:
|
jobs:
|
||||||
Build:
|
Build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install deps
|
|
||||||
run : |
|
|
||||||
apt update
|
|
||||||
apt install -y libsdl2-dev libassimp-dev libglew-dev
|
|
||||||
|
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
@@ -20,7 +15,7 @@ jobs:
|
|||||||
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: 'xmake-ubuntu'
|
||||||
|
|
||||||
- name: Calc deps hash
|
- name: Calc deps hash
|
||||||
uses: seepine/hash-files@v1
|
uses: seepine/hash-files@v1
|
||||||
@@ -33,14 +28,14 @@ jobs:
|
|||||||
- name: Packages cache
|
- name: Packages cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.xmake
|
path: ~/.xmake/packages
|
||||||
key: ${{ runner.os }}-${{ steps.get-hash.outputs.hash }}
|
key: ${{ runner.os }}-${{ steps.get-hash.outputs.hash }}
|
||||||
|
|
||||||
- name: XMake config
|
- name: XMake config
|
||||||
run: xmake f -p linux -y --root
|
run: xmake f -p linux -y
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: xmake --root
|
run: xmake
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: xmake test --root
|
run: xmake test
|
||||||
Reference in New Issue
Block a user