Skip to content

Commit

Permalink
Use OpenDream release for linter (#5906)
Browse files Browse the repository at this point in the history
# About the pull request
Ports goonstation/goonstation#18127

# Explain why it's good for the game
Should increase testing speed.

Seems to reduce it from ~150s to ~20
  • Loading branch information
Zonespace27 authored Mar 18, 2024
1 parent 23f2ba1 commit 365e707
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 44 deletions.
30 changes: 8 additions & 22 deletions .github/workflows/ci_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,30 +63,16 @@ jobs:

odlint:
name: Lint with OpenDream
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Get OpenDream Version
run: |
source dependencies.sh
echo "OPENDREAM_VERSION=$OPENDREAM_VERSION" >> $GITHUB_ENV
- name: Restore OpenDream cache
uses: actions/cache@v3
id: cache-od
- uses: actions/checkout@v4
- uses: robinraju/[email protected]
with:
path: ~/OpenDream
key: ${{ runner.os }}-opendream-${{ env.OPENDREAM_VERSION }}
- name: Download OpenDream
if: steps.cache-od.outputs.cache-hit != 'true'
run: |
bash tools/ci/download_od.sh
- name: Setup OpenDream
if: steps.cache-od.outputs.cache-hit != 'true'
run: |
bash tools/ci/setup_od.sh
- name: Run OpenDream
run: |
bash tools/ci/run_od.sh
repository: "OpenDreamProject/OpenDream"
tag: "latest"
fileName: "DMCompiler_linux-x64.tar.gz"
extract: true
- run: ./DMCompiler_linux-x64/DMCompiler --suppress-unimplemented colonialmarines.dme

compile_all_maps:
if: "!contains(github.event.head_commit.message, '[ci skip]')"
Expand Down
11 changes: 0 additions & 11 deletions tools/ci/download_od.sh

This file was deleted.

4 changes: 0 additions & 4 deletions tools/ci/run_od.sh

This file was deleted.

7 changes: 0 additions & 7 deletions tools/ci/setup_od.sh

This file was deleted.

0 comments on commit 365e707

Please sign in to comment.