Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 37f15c8

Browse files
committed
2 parents f3a76b6 + 843e0d3 commit 37f15c8

File tree

1,858 files changed

+82046
-56964
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,858 files changed

+82046
-56964
lines changed

.github/workflows/turdis.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,25 @@ jobs:
5757
with:
5858
outputFile: output-annotations.txt
5959

60+
odlint:
61+
if: ( !contains(github.event.head_commit.message, '[ci skip]') )
62+
name: "Lint with OpenDream"
63+
runs-on: ubuntu-22.04
64+
concurrency:
65+
group: odlint-${{ github.head_ref || github.run_id }}
66+
cancel-in-progress: true
67+
steps:
68+
- uses: actions/checkout@v4
69+
- uses: robinraju/[email protected]
70+
with:
71+
repository: "OpenDreamProject/OpenDream"
72+
tag: "latest"
73+
fileName: "DMCompiler_linux-x64.tar.gz"
74+
extract: true
75+
- name: Run OpenDream
76+
run: |
77+
./DMCompiler_linux-x64/DMCompiler yogstation.dme --suppress-unimplemented --define=CIBUILDING
78+
6079
compile:
6180
name: Compile All Maps
6281
runs-on: ubuntu-20.04
@@ -165,7 +184,7 @@ jobs:
165184
- name: Compile
166185
run: |
167186
tools/build/build --ci dm -DCIBUILDING
168-
tools/travis/dm.sh -DTRAVISBUILDING -DANSICOLORS yogstation.dme || travis_terminate 1
187+
tools/travis/dm.sh -DCIBUILDING -DANSICOLORS yogstation.dme || travis_terminate 1
169188
170189
- name: Prepare Artifacts
171190
run: |

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,3 +222,6 @@ tools/MapAtmosFixer/MapAtmosFixer/bin/*
222222
# ezdb
223223
/db/
224224
/config/ezdb.txt
225+
226+
# Running OpenDream locally
227+
tgstation.json

__odlint.dm

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// This file is included right at the start of the DME.
2+
// Its purpose is to enable multiple lints (pragmas) that are supported by OpenDream to better validate the codebase
3+
// These are essentially nitpicks the DM compiler should pick up on but doesnt
4+
5+
#if !defined(SPACEMAN_DMM) && defined(OPENDREAM)
6+
// This is in a separate file as a hack to avoid SpacemanDMM
7+
// evaluating the #pragma lines, even if its outside a block it cares about
8+
// (Also so people can code-own it. Shoutout to AA)
9+
#include "tools/ci/od_lints.dm"
10+
#endif

0 commit comments

Comments
 (0)