forked from nekiro/TFS-1.5-Downgrades
-
Notifications
You must be signed in to change notification settings - Fork 8
53 lines (45 loc) · 1.3 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
name: Build on Ubuntu
on:
push:
branches:
- master
- v*
tags:
- v*
paths:
- cmake/**
- src/**
- CMakeLists.txt
pull_request:
paths:
- cmake/**
- src/**
- CMakeLists.txt
jobs:
build-ubuntu:
runs-on: ubuntu-20.04
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: >
sudo apt-get install git cmake build-essential libluajit-5.1-dev libmysqlclient-dev
libboost-date-time-dev libboost-system-dev libboost-iostreams-dev libboost-filesystem-dev
libpugixml-dev libcrypto++-dev libfmt-dev
- name: Build with cmake
uses: ashutoshvarma/action-cmake-build@master
with:
build-dir: ${{ runner.workspace }}/build
# will set the CC & CXX for cmake
cc: gcc
cxx: g++
build-type: Release
# Extra options pass to cmake while configuring project
configure-options: -DUSE_LUAJIT=on
# run build using '-j [parallel]' to use multiple threads to build
parallel: 2
- name: Upload binary
uses: actions/upload-artifact@v2
with:
name: ubuntu-tfs-amd64-${{ github.sha }}
path: ${{ runner.workspace }}/build/tfs