forked from goonstation/goonstation
-
Notifications
You must be signed in to change notification settings - Fork 0
179 lines (152 loc) · 5.27 KB
/
beepsky.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
# Beepsky, Goonstation's replacement for a CI service like Travis, utilizing GitHub Actions
# Based on Turdis by Yogstation
name: Beepsky
on:
pull_request:
branches: [master]
push:
jobs:
lint:
name: Run Linters
runs-on: ubuntu-22.04
if: "!contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: actions/checkout@v4
- name: Cache SpacemanDMM
uses: actions/cache@v4
with:
path: $HOME/SpacemanDMM
key: ${{ runner.os }}-spacemandmm
- name: Setup Rust
uses: hecrj/[email protected]
- name: Install Dependencies
run: |
pip3 install setuptools
tools/ci/install_build_tools.sh
tools/ci/install_spaceman_dmm.sh dreamchecker
tools/bootstrap/python -c ''
touch +secret/__secret.dme
- name: Check TGUI
run: |
tools/ci/build_tgui.sh
- name: Misc Checks
run: |
tools/ci/check_filedirs.sh goonstation.dme
tools/ci/check_grep.sh
tools/bootstrap/python tools/ci/validate_dme.py <goonstation.dme
- name: Check Maps
run: |
tools/bootstrap/python -m dmi.test
tools/bootstrap/python -m mapmerge2.dmm_test
- name: Check Duplicate DMI Icon States
uses: spacestation13/dmi-duplicate-state-checker@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run Linter
id: linter
run: |
~/dreamchecker
odlint:
name: Lint with OpenDream
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
# - name: Setup dotnet
# uses: actions/setup-dotnet@v4
# with:
# dotnet-version: "8.0"
- run: touch +secret/__secret.dme
- uses: robinraju/[email protected]
with:
repository: "OpenDreamProject/OpenDream"
tag: "latest"
fileName: "DMCompiler_linux-x64.tar.gz"
extract: true
- run: ./DMCompiler_linux-x64/DMCompiler --suppress-unimplemented goonstation.dme --version=514.1584
compile:
name: Compile
runs-on: ubuntu-22.04
if: "!contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: actions/checkout@v4
- name: Cache BYOND
uses: actions/cache@v4
with:
path: $HOME/BYOND
key: ${{ runner.os }}-byond
- name: Setup BYOND
run: |
tools/ci/install_byond.sh
cd $GITHUB_WORKSPACE
printenv
echo "BYOND_SYSTEM=/home/runner/BYOND/byond" >> $GITHUB_ENV
echo "/home/runner/BYOND/byond/bin" >> $GITHUB_PATH
echo "LD_LIBRARY_PATH=/home/runner/BYOND/byond/bin:$LD_LIBRARY_PATH" >> $GITHUB_ENV
echo "MANPATH=/home/runner/BYOND/byond/man:$MANPATH" >> $GITHUB_ENV
touch +secret/__secret.dme
- name: Compile
run: |
tools/ci/dm.sh -DCIBUILD goonstation.dme
# - name: Prepare Artifacts
# run: |
# mkdir artifacts
# cp goonstation.dmb artifacts
# cp goonstation.rsc artifacts
# - name: Upload Artifacts
# uses: actions/upload-artifact@v4
# with:
# name: DMB + RSC
# path: ${{github.workspace}}/artifacts
compile_full:
name: "Compile and Lint with Secret Submodule"
runs-on: ubuntu-22.04
if: |
((github.event_name == 'push' && github.repository == 'goonstation/goonstation') || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'goonstation/goonstation')) && !contains(github.event.head_commit.message, 'skip ci')
steps:
- uses: actions/checkout@v4
with:
submodules: true
token: "${{ secrets.ROBUDDYBOT_PAT }}"
- name: Cache BYOND
uses: actions/cache@v4
with:
path: $HOME/BYOND
key: ${{ runner.os }}-byond
- name: Setup BYOND
run: |
tools/ci/install_byond.sh
cd $GITHUB_WORKSPACE
printenv
echo "BYOND_SYSTEM=/home/runner/BYOND/byond" >> $GITHUB_ENV
echo "/home/runner/BYOND/byond/bin" >> $GITHUB_PATH
echo "LD_LIBRARY_PATH=/home/runner/BYOND/byond/bin:$LD_LIBRARY_PATH" >> $GITHUB_ENV
echo "MANPATH=/home/runner/BYOND/byond/man:$MANPATH" >> $GITHUB_ENV
- name: Cache SpacemanDMM
uses: actions/cache@v4
with:
path: $HOME/SpacemanDMM
key: ${{ runner.os }}-spacemandmm
- name: Setup Rust
uses: hecrj/[email protected]
- name: Install Dependencies
run: |
pip3 install setuptools
tools/ci/install_build_tools.sh
tools/ci/install_spaceman_dmm.sh dreamchecker
tools/bootstrap/python -c ''
touch +secret/__secret.dme
- name: Misc Checks
run: |
tools/ci/check_filedirs.sh goonstation.dme
tools/ci/build_tgui.sh
tools/ci/check_grep_secret.sh
tools/bootstrap/python tools/ci/validate_dme.py <goonstation.dme
tools/bootstrap/python -m dmi.test
tools/bootstrap/python -m mapmerge2.dmm_test
- name: Run Linter
id: linter
run: |
~/dreamchecker
- name: Compile
run: |
tools/ci/dm.sh -DCIBUILD -DTRAVIS_SUB goonstation.dme