Skip to content

Commit 828348f

Browse files
authored
Create cmake-single-platform.yml
1 parent 6771ee2 commit 828348f

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This starter workflow is for a CMake project running on a single platform. There is a different starter workflow if you need cross-platform coverage.
2+
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml
3+
name: CMake on Linux x86_64
4+
5+
on:
6+
push:
7+
branches: [ "main" ]
8+
pull_request:
9+
branches: [ "main" ]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Configure Packages
18+
run: |
19+
sudo apt update -y
20+
sudo apt upgrade -y
21+
sudo apt install gcc build-essential cmake libfreetype-dev
22+
- name: Configure CMake
23+
run: |
24+
cd Client
25+
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=MinSizeRel
26+
- name: Build
27+
run: cmake --build ${{github.workspace}}/build --config MinSizeRel
28+
29+
- name: Upload a Build Artifact
30+
uses: actions/[email protected]
31+
with:
32+
name: NexusShell
33+
path: ./build/NexusShell
34+
if-no-files-found: error

0 commit comments

Comments
 (0)