Skip to content

Commit

Permalink
Merge pull request #1474 from Yawn-Wider/voreupdate
Browse files Browse the repository at this point in the history
Voreupdate [MDB IGNORE] [IDB IGNORE] [DNM]
  • Loading branch information
izac112 authored Dec 21, 2024
2 parents ff76263 + b16bfda commit beb4970
Show file tree
Hide file tree
Showing 4,451 changed files with 181,691 additions and 156,199 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .github/workflows/autochangelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
jobs:
autochangelog:
name: Autochangelog
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
if: github.event.pull_request.merged == true
steps:
- uses: /actions/checkout@v3
Expand Down
130 changes: 77 additions & 53 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,66 @@ env:
BASENAME: "vorestation"

jobs:
file_tests:

run_linters:
name: Run Linters
runs-on: ubuntu-22.04 # YW EDIT: 20.04 to 22.04
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
- name: Ensure +x on CI directory
run: |
chmod -R +x ./tools/ci
- name: Install Tools
run: |
bash tools/ci/install_build_deps.sh
# Caches
- name: Restore Yarn cache
if: "${{ contains(github.event.pull_request.labels.*.name, 'Type: TGUI Bundle') }}"
uses: actions/cache@v4
with:
path: tgui/.yarn/cache
key: ${{ runner.os }}-yarn-${{ secrets.CACHE_PURGE_KEY }}-${{ hashFiles('tgui/yarn.lock') }}
key: ${{ runner.os }}-yarn-${{ hashFiles('tgui/yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ secrets.CACHE_PURGE_KEY }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Run Tests
${{ runner.os }}-yarn-
- name: Restore Node cache
uses: actions/cache@v4
with:
path: ~/.nvm
key: ${{ runner.os }}-node-${{ hashFiles('dependencies.sh') }}
restore-keys: |
${{ runner.os }}-node-
- name: Restore Bootstrap cache
uses: actions/cache@v4
with:
path: tools/bootstrap/.cache
key: ${{ runner.os }}-bootstrap-${{ hashFiles('tools/requirements.txt') }}
restore-keys: |
${{ runner.os }}-bootstrap-
- name: Restore Rust cache
uses: actions/cache@v4
with:
path: ~/.cargo
key: ${{ runner.os }}-rust-${{ hashFiles('tools/ci/ci_dependencies.sh')}}
restore-keys: |
${{ runner.os }}-rust-
- name: Restore Cutter cache
uses: actions/cache@v4
with:
path: tools/icon_cutter/cache
key: ${{ runner.os }}-cutter-${{ hashFiles('dependencies.sh') }}
# End Caches
- name: Install Tools
run: |
tools/ci/validate_files.sh
tools/ci/build_tgui.sh
pip3 install setuptools
bash tools/ci/install_node.sh
bash tools/ci/install_ripgrep.sh
tools/bootstrap/python -c ''
- name: Run Grep Checks
run: tools/ci/validate_files.sh
- name: Run TGUI Checks
run: tools/build/build --ci lint tgui-test

dreamchecker:
name: DreamChecker
runs-on: ubuntu-22.04 # YW EDIT: 20.04 to 22.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- name: Cache SpacemanDMM
- name: Restore SpacemanDMM Cache
uses: actions/cache@v4
with:
path: ~/SpacemanDMM
Expand All @@ -63,72 +90,69 @@ jobs:
outputFile: output-annotations.txt

unit_tests:
# YW EDIT start
#strategy:
# matrix:
# map: ['tether', 'stellar_delight', 'groundbase']
strategy:
matrix:
map: ['USE_MAP_CRYOGAIA'] # YW EDIT Cryogaia
# name: Integration Tests (${{ matrix.map }})
# YW EDIT: end
name: Integration Tests
# needs: ['file_tests', 'dreamchecker']
runs-on: ubuntu-22.04 # YW EDIT: 20.04 to 22.04
# needs: ['run_linters', 'dreamchecker']
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Ensure +x on CI directory
run: |
chmod -R +x ./tools/ci
- name: Setup Cache
- name: Restore BYOND Cache
uses: actions/cache@v4
with:
path: $HOME/BYOND
path: $HOME/byond
key: ${{ runner.os }}-byond
- name: Install RUST_G Dependencies
run: |
sudo dpkg --add-architecture i386
sudo apt update || true
sudo apt install zlib1g-dev:i386 libssl-dev:i386
ldd librust_g.so
ldd libbapi_dmm_reader.so
ldd libverdigris.so
- name: Unit Tests
run: |
tools/ci/install_byond.sh
tools/ci/compile_and_run.sh
env:
TEST_DEFINE: "UNIT_TEST"
TEST_FILE: "code/_unit_tests.dm"
# YW EDIT: start
#MAP: ${{ matrix.map }}
#REPLACE: true
# YW EDIT: end
EXTRA_ARGS: "-DUNIT_TEST -D${{ matrix.map }}"
RUN: "1"
- name: Compile POIs

extra_map_tests:
name: Map Tests
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Ensure +x on CI directory
run: |
tools/ci/install_byond.sh
tools/ci/compile_and_run.sh
chmod -R +x ./tools/ci
- name: Restore BYOND Cache
uses: actions/cache@v4
with:
path: $HOME/byond
key: ${{ runner.os }}-byond
- name: Install BYOND
run: tools/ci/install_byond.sh
- name: Compile POIs
run: tools/ci/compile_and_run.sh
env:
TEST_DEFINE: "MAP_TEST"
TEST_FILE: "code/_map_tests.dm"
# YW EDIT: start
#MAP: ${{ matrix.map }}
#REPLACE: false
# YW EDIT: end
EXTRA_ARGS: "-DMAP_TEST"
RUN: "0"
- name: Compile away missions
run: |
tools/ci/install_byond.sh
tools/ci/compile_and_run.sh
run: tools/ci/compile_and_run.sh
env:
TEST_DEFINE: "AWAY_MISSION_TEST"
TEST_FILE: "code/_away_mission_tests.dm"
# YW EDIT: start
#MAP: ${{ matrix.map }}
#REPLACE: false
# YW EDIT: end
EXTRA_ARGS: "-DAWAY_MISSION_TEST -DUSE_MAP_CRYOGAIA" # YW EDIT CRYOGAIA # Only Tether has support for all away missions
RUN: "0"

tests_successful:
name: Integration Tests
needs: ['file_tests', 'dreamchecker', 'unit_tests']
runs-on: ubuntu-22.04 # YW EDIT: 20.04 to 22.04
needs: ['run_linters', 'dreamchecker', 'unit_tests', 'extra_map_tests']
runs-on: ubuntu-22.04
steps:
- name: Report Success
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/render_nanomaps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
pull-requests: write # to create pull requests (repo-sync/pull-request)

name: 'Generate NanoMaps'
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Clone
uses: actions/checkout@v4
Expand Down
12 changes: 10 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ cfg/
#Ignore everything in datafolder and subdirectories
/data/**/*
/tmp/**/*
/cache/**/*

#Visual studio stuff
*.vscode/*
Expand All @@ -30,5 +31,12 @@ cfg/
temp.dmi
node_modules/
package-lock.json
# YW ADDITION: start
# YW ADDITION: end

# CBT Things
.cache

#These get built by some automatic process
tgui/public/tgui.bundle.css
tgui/public/tgui.bundle.js
#ignore tracy dll
prof.dll
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.13.0
64 changes: 55 additions & 9 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,59 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "byond",
"request": "launch",
"name": "Launch DreamDaemon",
"preLaunchTask": "dm: build - ${command:CurrentDME}",
"dmb": "${workspaceFolder}/${command:CurrentDMB}",
"dreamDaemon": true
}
{
"type": "byond",
"request": "launch",
"name": "Launch DreamSeeker",
"preLaunchTask": "Build All",
"dmb": "${workspaceFolder}/${command:CurrentDMB}"
},
{
"type": "byond",
"request": "launch",
"name": "Launch DreamSeeker (low memory mode)",
"preLaunchTask": "Build All (low memory mode)",
"dmb": "${workspaceFolder}/${command:CurrentDMB}"
},
{
"type": "byond",
"request": "launch",
"name": "Launch DreamDaemon",
"preLaunchTask": "Build All",
"dmb": "${workspaceFolder}/${command:CurrentDMB}",
"dreamDaemon": true
},
{
"type": "byond",
"request": "launch",
"name": "Launch DreamDaemon (low memory mode)",
"preLaunchTask": "Build All (low memory mode)",
"dmb": "${workspaceFolder}/${command:CurrentDMB}",
"dreamDaemon": true
},
{
"name": "Debug External Libraries",
"type": "cppvsdbg",
"request": "launch",
"program": "${command:dreammaker.returnDreamDaemonPath}",
"cwd": "${workspaceRoot}",
"args": [
"${command:dreammaker.getFilenameDmb}",
"-trusted"
],
"preLaunchTask": "Build All"
},
{
"name": "Debug External Libraries (low memory mode)",
"type": "cppvsdbg",
"request": "launch",
"program": "${command:dreammaker.returnDreamDaemonPath}",
"cwd": "${workspaceRoot}",
"args": [
"${command:dreammaker.getFilenameDmb}",
"-trusted"
],
"preLaunchTask": "Build All (low memory mode)"
}
]
}
}
Loading

0 comments on commit beb4970

Please sign in to comment.