-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (39 loc) · 975 Bytes
/
Build.yml
File metadata and controls
39 lines (39 loc) · 975 Bytes
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
name: Build and Test
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
jobs:
build-ubuntu:
name: Build project (ubuntu)
runs-on: ubuntu-latest
container:
image: "antwxne/cmake:3.28.1"
env:
TARGET_NAME: express-cpp
BUILD_TYPE: Release
steps:
- uses: actions/checkout@v4
- name: Build project
run: |
cmake -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
cmake --build build --target ${{ env.TARGET_NAME }} -j
# build-windows:
# name: Build project (Windows)
# runs-on: windows-latest
# env:
# TARGET_NAME: express-cpp
# BUILD_TYPE: Release
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: recursive
# - name: Build project
# run: |
# cmake -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
# cmake --build build --target ${{ env.TARGET_NAME }} -j