Rework of housing system #102
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |