-
Notifications
You must be signed in to change notification settings - Fork 2
130 lines (107 loc) · 3.53 KB
/
Copy pathbuild.yml
File metadata and controls
130 lines (107 loc) · 3.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
name: Build
on:
push:
branches: [ "main" ]
tags: [ "v*.*.*" ]
pull_request:
branches: [ "main" ]
jobs:
build-macos:
runs-on: macos-14
env:
HOMEBREW_PREFIX: /opt/homebrew
steps:
- name: Install dependencies
run: |
brew install autoconf automake libtool pkg-config check cmake sdl3
- name: Checkout Objectively
uses: actions/checkout@v6
with:
repository: jdolan/Objectively
path: Objectively
- name: Build Objectively
working-directory: Objectively
run: |
export CFLAGS="-I${HOMEBREW_PREFIX}/include"
export LDFLAGS="-L${HOMEBREW_PREFIX}/lib"
export PKG_CONFIG_PATH="${HOMEBREW_PREFIX}/lib/pkgconfig:${PKG_CONFIG_PATH}"
autoreconf -i
./configure
make -j$(sysctl -n hw.logicalcpu)
sudo make install
- name: Checkout ObjectivelyGPU
uses: actions/checkout@v6
- name: Build
run: |
export CFLAGS="-I${HOMEBREW_PREFIX}/include"
export LDFLAGS="-L${HOMEBREW_PREFIX}/lib"
export PKG_CONFIG_PATH="${HOMEBREW_PREFIX}/lib/pkgconfig:${PKG_CONFIG_PATH}"
autoreconf -i
./configure
make
build-linux:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential autoconf automake libtool pkg-config \
libcurl4-openssl-dev \
libgl-dev \
libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxi-dev \
libxfixes-dev libxss-dev libxtst-dev libwayland-dev libxkbcommon-dev \
libdrm-dev libgbm-dev libdecor-0-dev libasound2-dev \
check \
cmake
- name: Build SDL3
run: |
git clone --depth 1 --branch release-3.4.2 https://github.com/libsdl-org/SDL.git SDL3
cmake -S SDL3 -B SDL3/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local
cmake --build SDL3/build -j$(nproc)
sudo cmake --install SDL3/build
- name: Checkout Objectively
uses: actions/checkout@v6
with:
repository: jdolan/Objectively
path: Objectively
- name: Build Objectively
working-directory: Objectively
run: |
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH}"
autoreconf -i
./configure
make -j$(nproc)
sudo make install
- name: Refresh shared library cache
run: sudo ldconfig
- name: Checkout ObjectivelyGPU
uses: actions/checkout@v6
- name: Build
run: |
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH}"
autoreconf -i
./configure
make
build-windows:
runs-on: windows-latest
env:
BUILD_CONFIGURATION: Release
steps:
- name: Checkout Objectively
uses: actions/checkout@v6
with:
repository: jdolan/Objectively
path: Objectively
- name: Checkout ObjectivelyGPU
uses: actions/checkout@v6
with:
path: ObjectivelyGPU
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v3
- name: Build Objectively
working-directory: ${{ github.workspace }}/Objectively
run: msbuild /m /p:Configuration=${{ env.BUILD_CONFIGURATION }} /p:Platform=x64 Objectively.vs15/Objectively.sln
- name: Build ObjectivelyGPU
working-directory: ${{ github.workspace }}/ObjectivelyGPU
run: msbuild /m /p:Configuration=${{ env.BUILD_CONFIGURATION }} /p:Platform=x64 ObjectivelyGPU.vs15/ObjectivelyGPU.vcxproj