@@ -12,12 +12,20 @@ jobs:
1212 name : Run Linters
1313 runs-on : ubuntu-20.04
1414 steps :
15- - uses : actions/checkout@v2
16- - name : Setup cache
17- uses : actions/cache@v2
15+ - uses : actions/checkout@v3
16+ - name : Restore SpacemanDMM cache
17+ uses : actions/cache@v3
1818 with :
1919 path : ~/SpacemanDMM
20- key : ${{ runner.os }}-spacemandmm-${{ secrets.CACHE_PURGE_KEY }}
20+ key : ${{ runner.os }}-spacemandmm
21+ - name : Restore Yarn cache
22+ uses : actions/cache@v3
23+ with :
24+ path : tgui/.yarn/cache
25+ key : ${{ runner.os }}-yarn-${{ hashFiles('tgui/yarn.lock') }}
26+ restore-keys : |
27+ ${{ runner.os }}-build-
28+ ${{ runner.os }}-
2129 - name : Install Tools
2230 run : |
2331 pip3 install setuptools
2836 run : |
2937 bash tools/ci/check_filedirs.sh tgstation.dme
3038 bash tools/ci/check_changelogs.sh
31- find . -name "*.php" -print0 | xargs -0 -n1 php -l
32- find . -name "*.json" -not -path "*/node_modules/*" -print0 | xargs -0 python3 ./tools/json_verifier.py
33- tgui/bin/tgui --lint
34- tgui/bin/tgui --test
3539 bash tools/ci/check_grep.sh
40+ bash tools/ci/check_misc.sh
41+ tools/build/build --ci lint
3642 tools/bootstrap/python -m dmi.test
3743 tools/bootstrap/python -m mapmerge2.dmm_test
3844 ~/dreamchecker > ${GITHUB_WORKSPACE}/output-annotations.txt 2>&1
@@ -47,18 +53,17 @@ jobs:
4753 name : Compile Maps
4854 runs-on : ubuntu-20.04
4955 steps :
50- - uses : actions/checkout@v2
51- - name : Setup cache
52- uses : actions/cache@v2
56+ - uses : actions/checkout@v3
57+ - name : Restore BYOND cache
58+ uses : actions/cache@v3
5359 with :
5460 path : ~/BYOND
55- key : ${{ runner.os }}-byond-${{ secrets.CACHE_PURGE_KEY }}
61+ key : ${{ runner.os }}-byond
5662 - name : Compile All Maps
5763 run : |
5864 bash tools/ci/install_byond.sh
5965 source $HOME/BYOND/byond/bin/byondsetup
60- python3 tools/ci/template_dm_generator.py
61- tools/build/build dm -DCIBUILDING -DCITESTING -DALL_MAPS
66+ tools/build/build --ci dm -DCIBUILDING -DCITESTING -DALL_MAPS
6267
6368 run_all_tests :
6469 if : " !contains(github.event.head_commit.message, '[ci skip]')"
@@ -73,12 +78,24 @@ jobs:
7378 - 3306
7479 options : --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
7580 steps :
76- - uses : actions/checkout@v2
77- - name : Setup cache
78- uses : actions/cache@v2
81+ - uses : actions/checkout@v3
82+ - name : Use Node.js 14.16.1
83+ uses : actions/setup-node@v3
84+ with :
85+ node-version : 14.16.1
86+ - name : Restore BYOND cache
87+ uses : actions/cache@v3
7988 with :
8089 path : ~/BYOND
81- key : ${{ runner.os }}-byond-${{ secrets.CACHE_PURGE_KEY }}
90+ key : ${{ runner.os }}-byond
91+ - name : Restore Yarn cache
92+ uses : actions/cache@v3
93+ with :
94+ path : tgui/.yarn/cache
95+ key : ${{ runner.os }}-yarn-${{ hashFiles('tgui/yarn.lock') }}
96+ restore-keys : |
97+ ${{ runner.os }}-build-
98+ ${{ runner.os }}-
8299 - name : Setup database
83100 run : |
84101 sudo systemctl start mysql
@@ -96,15 +113,27 @@ jobs:
96113 run : |
97114 bash tools/ci/install_byond.sh
98115 source $HOME/BYOND/byond/bin/byondsetup
99- tools/build/build -DCIBUILDING
116+ tools/build/build --ci - DCIBUILDING
100117 bash tools/ci/run_server.sh
101118
102119 test_windows :
103120 if : " !contains(github.event.head_commit.message, '[ci skip]')"
104121 name : Windows Build
105122 runs-on : windows-latest
106123 steps :
107- - uses : actions/checkout@v2
124+ - uses : actions/checkout@v3
125+ - name : Use Node.js 14.16.1
126+ uses : actions/setup-node@v3
127+ with :
128+ node-version : 14.16.1
129+ - name : Restore Yarn cache
130+ uses : actions/cache@v3
131+ with :
132+ path : tgui/.yarn/cache
133+ key : ${{ runner.os }}-yarn-${{ hashFiles('tgui/yarn.lock') }}
134+ restore-keys : |
135+ ${{ runner.os }}-build-
136+ ${{ runner.os }}-
108137 - name : Compile
109138 run : pwsh tools/ci/build.ps1
110139 env :
0 commit comments