|
1 |
| -# @JeanPhilippeKernel : Disabled because we only support Windows as platform for now |
2 |
| -# |
3 | 1 | name: ZEngine Linux Build
|
4 | 2 |
|
5 | 3 | on:
|
6 |
| - push: |
7 |
| - branches: [ master ] |
8 |
| - pull_request: |
9 |
| - branches: [ master ] |
| 4 | + workflow_call: |
10 | 5 |
|
11 | 6 | jobs:
|
12 |
| - Linux-Build: |
13 |
| - runs-on: ubuntu-latest |
| 7 | + cmake-build: |
14 | 8 | strategy:
|
15 | 9 | matrix:
|
16 |
| - buildConfiguration: [Debug, Release] |
| 10 | + buildConfiguration: [Debug, Release] |
| 11 | + uses: ./.github/workflows/job-cmakebuild-linux.yml |
| 12 | + with: |
| 13 | + configuration: ${{matrix.buildConfiguration}} |
17 | 14 |
|
18 |
| - steps: |
19 |
| - - name: Checkout repository |
20 |
| - uses: actions/checkout@v2 |
21 |
| - |
22 |
| -# - name: Checkout submodules |
23 |
| -# run: git submodule update --init --recursive |
24 |
| - |
25 |
| -# - name: Install development library |
26 |
| -# run: sudo apt-get install libasound2-dev libgl1-mesa-dev libpulse-dev libdbus-1-dev libx11-dev libxcursor-dev libxext-dev libxi-dev libxinerama-dev libxrandr-dev libxss-dev libxt-dev libxxf86vm-dev |
27 |
| - |
28 |
| -# - name: Install CMake |
29 |
| -# uses: jwlawson/[email protected] |
30 |
| -# with: |
31 |
| -# cmake-version: '3.20.x' |
32 |
| - |
33 |
| -# - name: Install pre-requisite packages. |
34 |
| -# run: sudo apt-get install -y wget apt-transport-https software-properties-common |
35 |
| - |
36 |
| -# - name: Download the Microsoft repository GPG keys |
37 |
| -# run: wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb |
38 |
| - |
39 |
| -# - name: Register the Microsoft repository GPG keys |
40 |
| -# run: sudo dpkg -i packages-microsoft-prod.deb |
41 |
| - |
42 |
| -# - name: Update the list of packages after we added packages.microsoft.com |
43 |
| -# run: sudo apt-get update |
44 |
| - |
45 |
| -# - name: Install PowerShell |
46 |
| -# run: sudo apt-get install -y powershell |
47 |
| - |
48 |
| -# - name: Add GCC Toolchain repository |
49 |
| -# run: sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test |
50 |
| - |
51 |
| -# - name: Install GCC compiler |
52 |
| -# run: sudo apt install -y gcc-11 |
53 |
| - |
54 |
| -# - name: Install G++ compiler |
55 |
| -# run: sudo apt install -y g++-11 |
56 |
| - |
57 |
| -# - name: CMake Build |
58 |
| -# run: .\Scripts\BuildEngine.ps1 -Configurations ${{matrix.buildConfiguration}} |
59 |
| -# shell: pwsh |
0 commit comments