-
Notifications
You must be signed in to change notification settings - Fork 33
38 lines (30 loc) · 890 Bytes
/
c-cpp.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
name: C/C++ CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Update apt cache.
- name: Update apt cache.
run: sudo apt update
# Install dependencies.
- name: Install Boost filesystem and libcurl4
run: sudo apt install -y libboost-filesystem-dev libcurl4-openssl-dev
# Populate our config file with dummy values.
- name: Write mysql_config.cpp
working-directory: ./src
run: |
echo 'const char *mysql_host = "host"; \
const char *mysql_password = "pass"; \
const char *mysql_user = "user"; \
const char *mysql_db = "db"; ' \
> mysql_config.cpp
# Compile the game.
- name: make
working-directory: ./src
run: make