17
17
18
18
jobs :
19
19
build :
20
- name : ${{ matrix.platform.name }} ${{ matrix.config.name }} ${{ matrix.arch.name }}
20
+ name : ${{ matrix.platform.name }} ${{ matrix.config.name }}
21
21
runs-on : ${{ matrix.platform.os }}
22
22
23
23
strategy :
24
24
fail-fast : false
25
25
matrix :
26
26
platform :
27
- - { name: Windows VS2019, os: windows-2019 }
28
- - { name: Windows VS2022, os: windows-2022 }
29
- arch :
30
- - { name: X86, flag: Win32 }
31
- - { name: X64, flag: x64 }
27
+ - { name: Windows VS2019 X86, os: windows-2019, flags: -A Win32 }
28
+ - { name: Windows VS2019 X64, os: windows-2019, flags: -A x64 }
29
+ - { name: Windows VS2022 X86, os: windows-2022, flags: -A Win32 }
30
+ - { name: Windows VS2022 X64, os: windows-2022, flags: -A x64 }
31
+ - { name: Linux GCC, os: ubuntu-latest }
32
+ - { name: Linux Clang, os: ubuntu-latest, flags: -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ }
32
33
config :
33
34
- { name: Shared, flags: -DBUILD_SHARED_LIBS=TRUE }
34
35
- { name: Static, flags: -DBUILD_SHARED_LIBS=FALSE }
37
38
- name : Checkout
38
39
uses : actions/checkout@v3
39
40
41
+ - name : Install Linux Dependencies
42
+ if : runner.os == 'Linux'
43
+ run : sudo apt-get update && sudo apt-get install libxrandr-dev libxcursor-dev libudev-dev libopenal-dev libflac-dev libvorbis-dev libgl1-mesa-dev libegl1-mesa-dev libdrm-dev libgbm-dev
44
+
40
45
- name : Configure
41
46
shell : bash
42
- run : cmake -A ${{ matrix.arch.flag }} - S . -B build -DCMAKE_INSTALL_PREFIX=install ${{ matrix.platform.flags }} ${{ matrix.config.flags }}
47
+ run : cmake -S . -B build -DCMAKE_INSTALL_PREFIX=install ${{ matrix.platform.flags }} ${{ matrix.config.flags }}
43
48
44
49
- name : Build
45
50
shell : bash
@@ -52,15 +57,15 @@ jobs:
52
57
- name : Upload Artifact
53
58
uses : actions/upload-artifact@v3
54
59
with :
55
- name : Schiffbruch-${{ matrix.platform.name }}-${{ matrix.config.name }}-${{ matrix.arch.name }}
60
+ name : Schiffbruch-${{ matrix.platform.name }}-${{ matrix.config.name }}
56
61
path : ./install/bin/*
57
62
58
63
- name : Get Artifact
59
64
id : get_artifact
60
65
if : startsWith(github.ref, 'refs/tags/')
61
66
uses : actions/download-artifact@v3
62
67
with :
63
- name : Schiffbruch-${{ matrix.platform.name }}-${{ matrix.config.name }}-${{ matrix.arch.name }}
68
+ name : Schiffbruch-${{ matrix.platform.name }}-${{ matrix.config.name }}
64
69
65
70
- name : Create Release
66
71
id : create_release
81
86
with :
82
87
upload_url : ${{ steps.create_release.outputs.upload_url }}
83
88
asset_path : ${{ steps.get_artifact.outputs.download-path }}
84
- asset_name : Schiffbruch-${{ matrix.platform.name }}-${{ matrix.config.name }}-${{ matrix.arch.name }} .zip
89
+ asset_name : Schiffbruch-${{ matrix.platform.name }}-${{ matrix.config.name }}.zip
85
90
asset_content_type : application/zip
0 commit comments