Skip to content

Commit 5a3a7db

Browse files
authored
Merge pull request #3 from rfdickerson/codex/add-github-actions-to-cmake-project
Add CI workflow
2 parents 3308fed + 91c069b commit 5a3a7db

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/build.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CMake Build
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
with:
16+
submodules: true
17+
- name: Install system dependencies
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install -y \
21+
libvulkan-dev \
22+
libxinerama-dev \
23+
libxcursor-dev \
24+
xorg-dev \
25+
libglu1-mesa-dev \
26+
pkg-config
27+
- name: Bootstrap vcpkg
28+
run: ./vcpkg/bootstrap-vcpkg.sh
29+
- name: Configure CMake
30+
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake
31+
- name: Build
32+
run: cmake --build build --config Release

0 commit comments

Comments
 (0)