@@ -19,22 +19,28 @@ jobs:
19
19
include :
20
20
- os : windows-latest
21
21
arch : x64
22
- lib : x64/FosterPlatform.dll
22
+ target : win-x64
23
+ lib : FosterPlatform.dll
23
24
- os : windows-latest
24
25
arch : arm64
25
- lib : arm64/FosterPlatform.dll
26
+ target : win-arm64
27
+ lib : FosterPlatform.dll
26
28
- os : macos-latest
27
29
arch : x64-arm64
28
- lib : osx/libFosterPlatform.dylib
30
+ target : osx
31
+ lib : libFosterPlatform.dylib
29
32
- os : ubuntu-latest
30
33
arch : x64
31
- lib : lib64/libFosterPlatform.so
34
+ target : linux-x64
35
+ lib : libFosterPlatform.so
32
36
- os : ubuntu-latest
33
37
arch : arm64
34
- lib : libarm64/libFosterPlatform.so
38
+ target : linux-arm64
39
+ lib : libFosterPlatform.so
35
40
- os : ubuntu-latest
36
41
arch : arm32
37
- lib : libarm/libFosterPlatform.so
42
+ target : linux-arm32
43
+ lib : libFosterPlatform.so
38
44
runs-on : ${{matrix.os}}
39
45
steps :
40
46
- name : Checkout
@@ -70,20 +76,20 @@ jobs:
70
76
sudo apt-get install -y libsdl2-dev:armhf libwayland-dev:armhf libegl-dev:armhf libdrm-dev:armhf libxkbcommon-dev:armhf libpulse-dev:armhf
71
77
- name : CMake Configure
72
78
if : ${{ !(runner.os == 'Linux' && matrix.arch == 'arm64') && !(runner.os == 'Linux' && matrix.arch == 'arm32') }}
73
- run : cmake -B build -S Platform
79
+ run : cmake -B build -S Platform -DFOSTER_OVERRIDE_TARGET=${{matrix.target}}
74
80
- name : CMake Configure (Linux-arm64)
75
81
if : ${{ runner.os == 'Linux' && matrix.arch == 'arm64' }}
76
- run : PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig cmake -B build -S Platform -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ -DCMAKE_SYSTEM_PROCESSOR=aarch64 -DCMAKE_SYSTEM_NAME=Linux
82
+ run : PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig cmake -B build -S Platform -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ -DCMAKE_SYSTEM_PROCESSOR=aarch64 -DCMAKE_SYSTEM_NAME=Linux -DFOSTER_OVERRIDE_TARGET=${{matrix.target}}
77
83
- name : CMake Configure (Linux-arm32)
78
84
if : ${{ runner.os == 'Linux' && matrix.arch == 'arm32' }}
79
- run : PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig cmake -B build -S Platform -DCMAKE_C_COMPILER=arm-linux-gnueabihf-gcc -DCMAKE_CXX_COMPILER=arm-linux-gnueabihf-g++ -DCMAKE_SYSTEM_PROCESSOR=armv7l -DCMAKE_SYSTEM_NAME=Linux
85
+ run : PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig cmake -B build -S Platform -DCMAKE_C_COMPILER=arm-linux-gnueabihf-gcc -DCMAKE_CXX_COMPILER=arm-linux-gnueabihf-g++ -DCMAKE_SYSTEM_PROCESSOR=armv7l -DCMAKE_SYSTEM_NAME=Linux -DFOSTER_OVERRIDE_TARGET=${{matrix.target}}
80
86
- name : CMake Build
81
87
run : cmake --build build --config Release
82
88
- name : Publish Artifact
83
89
84
90
with :
85
91
name : ${{matrix.os}}-${{matrix.arch}}-build
86
- path : Platform/libs/${{matrix.lib}}
92
+ path : Platform/libs/${{matrix.target}}/${{matrix. lib}}
87
93
UpdateLibs :
88
94
if : github.ref == 'refs/heads/main'
89
95
needs : [Build]
@@ -95,12 +101,12 @@ jobs:
95
101
uses : actions/download-artifact@v3
96
102
with :
97
103
name : windows-latest-x64-build
98
- path : Platform/libs/x64
104
+ path : Platform/libs/win- x64
99
105
- name : Download windows arm lib
100
106
uses : actions/download-artifact@v3
101
107
with :
102
108
name : windows-latest-arm64-build
103
- path : Platform/libs/arm64
109
+ path : Platform/libs/win- arm64
104
110
- name : Download macos lib
105
111
uses : actions/download-artifact@v3
106
112
with :
@@ -110,17 +116,17 @@ jobs:
110
116
uses : actions/download-artifact@v3
111
117
with :
112
118
name : ubuntu-latest-x64-build
113
- path : Platform/libs/lib64
119
+ path : Platform/libs/linux-x64
114
120
- name : Download ubuntu lib (arm64)
115
121
uses : actions/download-artifact@v3
116
122
with :
117
123
name : ubuntu-latest-arm64-build
118
- path : Platform/libs/libarm64
124
+ path : Platform/libs/linux-arm64
119
125
- name : Download ubuntu lib (arm32)
120
126
uses : actions/download-artifact@v3
121
127
with :
122
128
name : ubuntu-latest-arm32-build
123
- path : Platform/libs/libarm
129
+ path : Platform/libs/linux-arm32
124
130
- name : Display structure of libs
125
131
run : ls -R
126
132
working-directory : Platform/libs
0 commit comments