remove DF download and tests for v50

revert when there is something to download and test
develop
Myk Taylor 2022-12-15 22:41:33 -08:00 committed by Kelly Kinkade
parent 7fae0fe44f
commit 0953982cfa
1 changed files with 25 additions and 25 deletions

@ -57,11 +57,11 @@ jobs:
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
echo "CCACHE_DIR=${HOME}/.ccache" >> $GITHUB_ENV echo "CCACHE_DIR=${HOME}/.ccache" >> $GITHUB_ENV
- name: Fetch DF cache # - name: Fetch DF cache
uses: actions/cache@v3 # uses: actions/cache@v3
with: # with:
path: ~/DF # path: ~/DF
key: dfcache-${{ steps.env_setup.outputs.df_version }}-${{ hashFiles('ci/download-df.sh') }} # key: dfcache-${{ steps.env_setup.outputs.df_version }}-${{ hashFiles('ci/download-df.sh') }}
- name: Fetch ccache - name: Fetch ccache
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
@ -70,9 +70,9 @@ jobs:
restore-keys: | restore-keys: |
ccache-v2-${{ matrix.os }}-gcc-${{ matrix.gcc }}-${{ github.ref_name }} ccache-v2-${{ matrix.os }}-gcc-${{ matrix.gcc }}-${{ github.ref_name }}
ccache-v2-${{ matrix.os }}-gcc-${{ matrix.gcc }} ccache-v2-${{ matrix.os }}-gcc-${{ matrix.gcc }}
- name: Download DF # - name: Download DF
run: | # run: |
sh ci/download-df.sh # sh ci/download-df.sh
- name: Configure DFHack - name: Configure DFHack
env: env:
CC: gcc-${{ matrix.gcc }} CC: gcc-${{ matrix.gcc }}
@ -101,23 +101,23 @@ jobs:
run: | run: |
ninja -C build-ci test ninja -C build-ci test
exit $? exit $?
- name: Run lua tests # - name: Run lua tests
id: run_tests_lua # id: run_tests_lua
run: | # run: |
export TERM=dumb # export TERM=dumb
status=0 # status=0
script -qe -c "python ci/run-tests.py --headless --keep-status \"$DF_FOLDER\"" || status=$((status + 1)) # script -qe -c "python ci/run-tests.py --headless --keep-status \"$DF_FOLDER\"" || status=$((status + 1))
python ci/check-rpc.py "$DF_FOLDER/dfhack-rpc.txt" || status=$((status + 2)) # python ci/check-rpc.py "$DF_FOLDER/dfhack-rpc.txt" || status=$((status + 2))
mkdir -p artifacts # mkdir -p artifacts
cp "$DF_FOLDER"/test*.json "$DF_FOLDER"/*.log artifacts || status=$((status + 4)) # cp "$DF_FOLDER"/test*.json "$DF_FOLDER"/*.log artifacts || status=$((status + 4))
exit $status # exit $status
- name: Upload test artifacts # - name: Upload test artifacts
uses: actions/upload-artifact@v1 # uses: actions/upload-artifact@v1
if: (success() || failure()) && steps.run_tests.outcome != 'skipped' # if: (success() || failure()) && steps.run_tests.outcome != 'skipped'
continue-on-error: true # continue-on-error: true
with: # with:
name: test-artifacts-${{ matrix.gcc }} # name: test-artifacts-${{ matrix.gcc }}
path: artifacts # path: artifacts
- name: Clean up DF folder - name: Clean up DF folder
# prevent DFHack-generated files from ending up in the cache # prevent DFHack-generated files from ending up in the cache
# (download-df.sh also removes them, this is just to save cache space) # (download-df.sh also removes them, this is just to save cache space)