|
|
@ -50,7 +50,7 @@ jobs:
|
|
|
|
- name: Set up environment
|
|
|
|
- name: Set up environment
|
|
|
|
id: env_setup
|
|
|
|
id: env_setup
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
DF_VERSION="$(sh travis/get-df-version.sh)"
|
|
|
|
DF_VERSION="$(sh ci/get-df-version.sh)"
|
|
|
|
echo "::set-output name=df_version::${DF_VERSION}"
|
|
|
|
echo "::set-output name=df_version::${DF_VERSION}"
|
|
|
|
echo "DF_VERSION=${DF_VERSION}" >> $GITHUB_ENV
|
|
|
|
echo "DF_VERSION=${DF_VERSION}" >> $GITHUB_ENV
|
|
|
|
echo "DF_FOLDER=${HOME}/DF/${DF_VERSION}/df_linux" >> $GITHUB_ENV
|
|
|
|
echo "DF_FOLDER=${HOME}/DF/${DF_VERSION}/df_linux" >> $GITHUB_ENV
|
|
|
@ -61,7 +61,7 @@ jobs:
|
|
|
|
key: ${{ steps.env_setup.outputs.df_version }}
|
|
|
|
key: ${{ steps.env_setup.outputs.df_version }}
|
|
|
|
- name: Download DF
|
|
|
|
- name: Download DF
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
sh travis/download-df.sh
|
|
|
|
sh ci/download-df.sh
|
|
|
|
- name: Build DFHack
|
|
|
|
- name: Build DFHack
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
CC: gcc-${{ matrix.gcc }}
|
|
|
|
CC: gcc-${{ matrix.gcc }}
|
|
|
@ -84,8 +84,8 @@ jobs:
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
export TERM=dumb
|
|
|
|
export TERM=dumb
|
|
|
|
mv "$DF_FOLDER"/dfhack.init-example "$DF_FOLDER"/dfhack.init
|
|
|
|
mv "$DF_FOLDER"/dfhack.init-example "$DF_FOLDER"/dfhack.init
|
|
|
|
script -qe -c "python travis/run-tests.py --headless --keep-status \"$DF_FOLDER\""
|
|
|
|
script -qe -c "python ci/run-tests.py --headless --keep-status \"$DF_FOLDER\""
|
|
|
|
python travis/check-rpc.py "$DF_FOLDER/dfhack-rpc.txt"
|
|
|
|
python ci/check-rpc.py "$DF_FOLDER/dfhack-rpc.txt"
|
|
|
|
mkdir -p artifacts
|
|
|
|
mkdir -p artifacts
|
|
|
|
cp "$DF_FOLDER/test_status.json" "$DF_FOLDER"/*.log artifacts
|
|
|
|
cp "$DF_FOLDER/test_status.json" "$DF_FOLDER"/*.log artifacts
|
|
|
|
- name: Upload test artifacts
|
|
|
|
- name: Upload test artifacts
|
|
|
@ -147,23 +147,23 @@ jobs:
|
|
|
|
# don't need tags here
|
|
|
|
# don't need tags here
|
|
|
|
- name: Check whitespace
|
|
|
|
- name: Check whitespace
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
python travis/lint.py --github-actions
|
|
|
|
python ci/lint.py --github-actions
|
|
|
|
- name: Check Authors.rst
|
|
|
|
- name: Check Authors.rst
|
|
|
|
if: success() || failure()
|
|
|
|
if: success() || failure()
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
python travis/authors-rst.py
|
|
|
|
python ci/authors-rst.py
|
|
|
|
- name: Check for missing documentation
|
|
|
|
- name: Check for missing documentation
|
|
|
|
if: success() || failure()
|
|
|
|
if: success() || failure()
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
python travis/script-docs.py
|
|
|
|
python ci/script-docs.py
|
|
|
|
- name: Check Lua syntax
|
|
|
|
- name: Check Lua syntax
|
|
|
|
if: success() || failure()
|
|
|
|
if: success() || failure()
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
python travis/script-syntax.py --ext=lua --cmd="luac5.3 -p" --github-actions
|
|
|
|
python ci/script-syntax.py --ext=lua --cmd="luac5.3 -p" --github-actions
|
|
|
|
- name: Check Ruby syntax
|
|
|
|
- name: Check Ruby syntax
|
|
|
|
if: success() || failure()
|
|
|
|
if: success() || failure()
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
python travis/script-syntax.py --ext=rb --cmd="ruby -c" --github-actions
|
|
|
|
python ci/script-syntax.py --ext=rb --cmd="ruby -c" --github-actions
|
|
|
|
|
|
|
|
|
|
|
|
check-pr:
|
|
|
|
check-pr:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|