Skip to content

Commit 9bc1703

Browse files
committed
Add linux build
1 parent 1f8cf7d commit 9bc1703

3 files changed

Lines changed: 20 additions & 1 deletion

File tree

.github/workflows/linux-build.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: linux-build
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Install build tools
13+
run: sudo apt-get update && sudo apt-get install -y cmake ninja-build build-essential
14+
- name: Configure
15+
run: cmake -S . -B build -G Ninja
16+
- name: Build
17+
run: cmake --build build

Source/Fodder.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
*/
2222

2323
#include "stdafx.hpp"
24+
#include <cmath>
2425
#include "Map/Random.hpp"
2526

2627
#ifdef WIN32

Source/Graphics.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
*/
2222

2323
#include "stdafx.hpp"
24+
#include <cmath>
2425

2526
cGraphics::cGraphics() {
2627

@@ -110,4 +111,4 @@ void cGraphics::HeliIntro_TickParallaxAndText(double dtSeconds)
110111
Heli_Front -= d0;
111112
if (Heli_Front < 0) Heli_Front += wrap;
112113
}
113-
}
114+
}

0 commit comments

Comments
 (0)