2020-04-06 17:57:20 -06:00
|
|
|
name: Build and test
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2020-04-10 21:33:06 -06:00
|
|
|
main:
|
2020-04-06 17:57:20 -06:00
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
steps:
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2020-04-06 18:00:10 -06:00
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install \
|
2020-04-06 17:57:20 -06:00
|
|
|
libsdl-image1.2-dev \
|
|
|
|
libsdl-ttf2.0-dev \
|
|
|
|
libsdl1.2-dev \
|
|
|
|
libxml-libxml-perl \
|
|
|
|
libxml-libxslt-perl \
|
|
|
|
lua5.3 \
|
|
|
|
ninja-build \
|
|
|
|
zlib1g-dev
|
|
|
|
sudo pip3 install --system sphinx
|
|
|
|
- name: Clone DFHack
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Set up environment
|
|
|
|
run: |
|
|
|
|
export DF_VERSION=$(sh travis/get-df-version.sh)
|
|
|
|
export DF_FOLDER="$HOME/DF/$DF_VERSION/df_linux"
|
|
|
|
- name: Download DF
|
|
|
|
run: |
|
|
|
|
sh travis/download-df.sh
|
|
|
|
- name: Git information
|
|
|
|
run: |
|
|
|
|
sh travis/git-info.sh
|
|
|
|
- name: Build docs
|
|
|
|
run: |
|
|
|
|
sphinx-build -qW -j3 . docs/html
|
|
|
|
- uses: actions/upload-artifact@master
|
|
|
|
with:
|
|
|
|
name: docs
|
|
|
|
path: docs/html
|