Skip to content

Commit 517898c

Browse files
Track'n'Truck DevsTrack'n'Truck Devs
authored andcommitted
feat: add GitHub Actions CI for CMake build and update .gitignore
1 parent 8a8c967 commit 517898c

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/cmake.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CMake Build Matrix
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
runs-on: windows-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Configure CMake
17+
# We use -A x64 for 64-bit build (SCS games are 64-bit)
18+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -A x64
19+
20+
- name: Build
21+
run: cmake --build ${{github.workspace}}/build --config Release

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828

2929
!.gitignore
3030

31+
!/.github/
32+
!/.github/**
33+
3134
!/CMakeLists.txt
3235

3336
!/README.md

0 commit comments

Comments
 (0)