-
-
Notifications
You must be signed in to change notification settings - Fork 19
55 lines (46 loc) · 1.26 KB
/
build-ubuntu.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Build on Ubuntu
on:
push:
branches:
- main
- v*
paths:
- cmake/**
- src/**
- CMakeLists.txt
- CMakePresets.json
pull_request:
paths:
- cmake/**
- src/**
- CMakeLists.txt
- CMakePresets.json
jobs:
build-ubuntu:
name: ubuntu-${{ matrix.buildtype }}
runs-on: ubuntu-latest
strategy:
matrix:
buildtype: [Debug, Release]
steps:
- uses: actions/checkout@v3
- name: Get latest CMake
# Using 'latest' branch, the latest CMake is installed.
uses: lukka/get-cmake@latest
- name: Install dependencies
run: >
sudo apt update -q &&
sudo apt install -yq build-essential lua5.4 libmysqlclient-dev
libboost-system-dev libboost-iostreams-dev
libpugixml-dev libcrypto++-dev libfmt-dev
- name: Build with cmake
uses: lukka/run-cmake@v10
with:
buildPreset: default
buildPresetAdditionalArgs: "['--config ${{ matrix.buildtype }}']"
configurePreset: default
- name: Upload artifact binary
uses: actions/upload-artifact@v3
with:
name: ubuntu-tfs-amd64-${{ github.sha }}
path: ${{ runner.workspace }}/build/tfs