Improve CI

This commit is contained in:
Lynix
2022-03-19 14:19:32 +01:00
parent 75f0e24bf8
commit b97f1a4c41
5 changed files with 22 additions and 30 deletions

View File

@@ -29,13 +29,11 @@ jobs:
steps:
- uses: actions/checkout@v2
# Install Nazara dependencies
- name: Update apt repositories
run: sudo apt-get update
# Install Nazara dependencies
# Install system dependencies
- name: Install system dependencies
run: sudo apt-get install libsndfile1-dev libfreetype6-dev libsdl2-dev mesa-common-dev libxcb-ewmh-dev libxcb-randr0-dev libxcb-icccm4-dev libxcb-keysyms1-dev libgl1-mesa-dev -y
run: |
sudo apt-get update
sudo apt-get -y install mesa-common-dev libwayland-dev uuid-dev
# Force xmake to a specific folder (for cache)
- name: Set xmake env
@@ -61,11 +59,11 @@ jobs:
uses: actions/cache@v2
with:
path: ${{ env.XMAKE_GLOBALDIR }}/.xmake/packages
key: Linux-${{ matrix.arch }}-${{ matrix.mode }}-${{ steps.dep_hash.outputs.hash }}-r3
key: Linux-${{ matrix.arch }}-${{ matrix.mode }}-${{ steps.dep_hash.outputs.hash }}-r4
# Setup compilation mode and install project dependencies
- name: Configure xmake and install dependencies
run: xmake config --shadernodes=y --tests=y --unitybuild=y --arch=${{ matrix.arch }} --mode=${{ matrix.mode }} --verbose --yes
run: xmake config --shadernodes=y --tests=y --unitybuild=y --arch=${{ matrix.arch }} --mode=${{ matrix.mode }} --yes
# Build the engine
- name: Build Nazara