|
|
@ -132,6 +132,8 @@ jobs:
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install \
|
|
|
|
sudo apt-get install \
|
|
|
|
ccache \
|
|
|
|
ccache \
|
|
|
|
|
|
|
|
gcc-10 \
|
|
|
|
|
|
|
|
g++-10 \
|
|
|
|
libgl-dev \
|
|
|
|
libgl-dev \
|
|
|
|
libxml-libxslt-perl \
|
|
|
|
libxml-libxslt-perl \
|
|
|
|
ninja-build
|
|
|
|
ninja-build
|
|
|
@ -145,15 +147,18 @@ jobs:
|
|
|
|
uses: actions/cache@v3
|
|
|
|
uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: ~/.ccache
|
|
|
|
path: ~/.ccache
|
|
|
|
key: ccache-ubuntu-22.04-gcc-11-${{ github.ref_name }}-${{ github.sha }}
|
|
|
|
key: ccache-ubuntu-22.04-gcc-10-${{ github.ref_name }}-${{ github.sha }}
|
|
|
|
restore-keys: |
|
|
|
|
restore-keys: |
|
|
|
|
ccache-ubuntu-22.04-gcc-11-${{ github.ref_name }}
|
|
|
|
ccache-ubuntu-22.04-gcc-10-${{ github.ref_name }}
|
|
|
|
ccache-ubuntu-22.04-gcc-11
|
|
|
|
ccache-ubuntu-22.04-gcc-10
|
|
|
|
- name: Set up environment
|
|
|
|
- name: Set up environment
|
|
|
|
id: env_setup
|
|
|
|
id: env_setup
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
echo "CCACHE_DIR=${HOME}/.ccache" >> $GITHUB_ENV
|
|
|
|
echo "CCACHE_DIR=${HOME}/.ccache" >> $GITHUB_ENV
|
|
|
|
- name: Configure DFHack
|
|
|
|
- name: Configure DFHack
|
|
|
|
|
|
|
|
env:
|
|
|
|
|
|
|
|
CC: gcc-10
|
|
|
|
|
|
|
|
CXX: g++-10
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
cmake \
|
|
|
|
cmake \
|
|
|
|
-S . \
|
|
|
|
-S . \
|
|
|
|