|
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: |
| 5 | + inputs: |
| 6 | + targetFramework: |
| 7 | + required: true |
| 8 | + type: string |
10 | 9 |
|
11 | 10 | jobs: |
12 | | - Linux-Build: |
13 | | - runs-on: ubuntu-latest |
| 11 | + cmake-build: |
14 | 12 | strategy: |
15 | 13 | matrix: |
16 | | - buildConfiguration: [Debug, Release] |
17 | | - |
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 |
| 14 | + buildConfiguration: [Debug, Release] |
| 15 | + uses: ./.github/workflows/job-cmakebuild-linux.yml |
| 16 | + with: |
| 17 | + configuration: ${{matrix.buildConfiguration}} |
| 18 | + targetframework: ${{inputs.targetFramework}} |
| 19 | + |
| 20 | + test: |
| 21 | + needs: cmake-build |
| 22 | + strategy: |
| 23 | + matrix: |
| 24 | + testConfiguration: [Debug, Release] |
| 25 | + uses: ./.github/workflows/job-test-linux.yml |
| 26 | + with: |
| 27 | + configuration: ${{matrix.testConfiguration}} |
| 28 | + |
| 29 | + deploy: |
| 30 | + needs: test |
| 31 | + uses: ./.github/workflows/job-deploy-linux.yml |
| 32 | + with: |
| 33 | + configuration: Release |
| 34 | + targetframework: ${{inputs.targetFramework}} |
56 | 35 |
|
57 | | -# - name: CMake Build |
58 | | -# run: .\Scripts\BuildEngine.ps1 -Configurations ${{matrix.buildConfiguration}} |
59 | | -# shell: pwsh |
0 commit comments