mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
Chomp edit notes and CI cleanup (#10211)
This commit is contained in:
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@@ -23,13 +23,6 @@ jobs:
|
|||||||
- name: Ensure +x on CI directory
|
- name: Ensure +x on CI directory
|
||||||
run: |
|
run: |
|
||||||
chmod -R +x ./tools/ci
|
chmod -R +x ./tools/ci
|
||||||
- name: Restore SpacemanDMM cache
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: ~/SpacemanDMM
|
|
||||||
key: ${{ runner.os }}-spacemandmm-${{ hashFiles('dependencies.sh') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-spacemandmm-
|
|
||||||
- name: Restore Yarn cache
|
- name: Restore Yarn cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
@@ -69,7 +62,6 @@ jobs:
|
|||||||
pip3 install setuptools
|
pip3 install setuptools
|
||||||
bash tools/ci/install_build_deps.sh
|
bash tools/ci/install_build_deps.sh
|
||||||
bash tools/ci/install_ripgrep.sh
|
bash tools/ci/install_ripgrep.sh
|
||||||
bash tools/ci/install_spaceman_dmm.sh dreamchecker
|
|
||||||
bash tools/ci/install_spaceman_dmm.sh dmm-tools
|
bash tools/ci/install_spaceman_dmm.sh dmm-tools
|
||||||
tools/bootstrap/python -c ''
|
tools/bootstrap/python -c ''
|
||||||
- name: Run Validation Tests
|
- name: Run Validation Tests
|
||||||
@@ -88,6 +80,7 @@ jobs:
|
|||||||
run: tools/github-actions/nanomap-renderer-invoker.sh --testing
|
run: tools/github-actions/nanomap-renderer-invoker.sh --testing
|
||||||
|
|
||||||
dreamchecker:
|
dreamchecker:
|
||||||
|
if: ( !contains(github.event.head_commit.message, '[ci skip]') )
|
||||||
name: DreamChecker
|
name: DreamChecker
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
2
.github/workflows/render_nanomaps.yml
vendored
2
.github/workflows/render_nanomaps.yml
vendored
@@ -20,7 +20,7 @@ jobs:
|
|||||||
pull-requests: write # to create pull requests (repo-sync/pull-request)
|
pull-requests: write # to create pull requests (repo-sync/pull-request)
|
||||||
|
|
||||||
name: 'Generate NanoMaps'
|
name: 'Generate NanoMaps'
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- name: Clone
|
- name: Clone
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
@@ -195,7 +195,7 @@ if __name__ == "__main__":
|
|||||||
parser = argparse.ArgumentParser(prog=prog, description=desc, formatter_class=argparse.RawTextHelpFormatter)
|
parser = argparse.ArgumentParser(prog=prog, description=desc, formatter_class=argparse.RawTextHelpFormatter)
|
||||||
parser.add_argument("update_source", help="update file path / line of update notation")
|
parser.add_argument("update_source", help="update file path / line of update notation")
|
||||||
parser.add_argument("--map", "-m", help="path to update, defaults to all maps in directory")
|
parser.add_argument("--map", "-m", help="path to update, defaults to all maps in directory")
|
||||||
parser.add_argument("--directory", "-d", help="path to maps directory, defaults to modular_chomp/maps")
|
parser.add_argument("--directory", "-d", help="path to maps directory, defaults to modular_chomp/maps") # ChompEDIT
|
||||||
parser.add_argument("--inline", "-i", help="treat update source as update string instead of path", action="store_true")
|
parser.add_argument("--inline", "-i", help="treat update source as update string instead of path", action="store_true")
|
||||||
parser.add_argument("--verbose", "-v", help="toggle detailed update information", action="store_true")
|
parser.add_argument("--verbose", "-v", help="toggle detailed update information", action="store_true")
|
||||||
main(parser.parse_args())
|
main(parser.parse_args())
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ if command -v rg >/dev/null 2>&1; then
|
|||||||
fi
|
fi
|
||||||
code_files="code/**/**.dm"
|
code_files="code/**/**.dm"
|
||||||
map_files="maps/**/**.dmm"
|
map_files="maps/**/**.dmm"
|
||||||
modular_map_files="modular_chomp/maps/**/**.dmm"
|
modular_map_files="modular_chomp/maps/**/**.dmm" # CHOMPEdit - Modular maps
|
||||||
# shuttle_map_files="_maps/shuttles/**.dmm"
|
# shuttle_map_files="_maps/shuttles/**.dmm"
|
||||||
# code_x_515="code/**/!(__byond_version_compat).dm"
|
# code_x_515="code/**/!(__byond_version_compat).dm"
|
||||||
else
|
else
|
||||||
@@ -31,7 +31,7 @@ else
|
|||||||
grep=grep
|
grep=grep
|
||||||
code_files="-r --include=code/**/**.dm"
|
code_files="-r --include=code/**/**.dm"
|
||||||
map_files="-r --include=maps/**/**.dmm"
|
map_files="-r --include=maps/**/**.dmm"
|
||||||
modular_map_files="-r --include=modular_chomp/maps/**/**.dmm"
|
modular_map_files="-r --include=modular_chomp/maps/**/**.dmm" # CHOMPEdit - Modular maps
|
||||||
# shuttle_map_files="-r --include=_maps/shuttles/**.dmm"
|
# shuttle_map_files="-r --include=_maps/shuttles/**.dmm"
|
||||||
# code_x_515="-r --include=code/**/!(__byond_version_compat).dm"
|
# code_x_515="-r --include=code/**/!(__byond_version_compat).dm"
|
||||||
fi
|
fi
|
||||||
@@ -61,12 +61,14 @@ if [ $retVal -ne 0 ]; then
|
|||||||
FAILED=1
|
FAILED=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# ChompEDIT START
|
||||||
(! $grep 'step_[xy]' $modular_map_files)
|
(! $grep 'step_[xy]' $modular_map_files)
|
||||||
retVal=$?
|
retVal=$?
|
||||||
if [ $retVal -ne 0 ]; then
|
if [ $retVal -ne 0 ]; then
|
||||||
echo -e "${RED}The variables 'step_x' and 'step_y' are present on a map, and they 'break' movement ingame.${NC}"
|
echo -e "${RED}The variables 'step_x' and 'step_y' are present on a map, and they 'break' movement ingame.${NC}"
|
||||||
FAILED=1
|
FAILED=1
|
||||||
fi
|
fi
|
||||||
|
# ChompEDIT END
|
||||||
|
|
||||||
part "test map included"
|
part "test map included"
|
||||||
#Checking for any 'checked' maps that include 'test'
|
#Checking for any 'checked' maps that include 'test'
|
||||||
|
|||||||
@@ -109,10 +109,12 @@ def main(args):
|
|||||||
for map_filename in (args.maps or glob.glob("**/*.dmm", recursive = True)):
|
for map_filename in (args.maps or glob.glob("**/*.dmm", recursive = True)):
|
||||||
print(map_filename, end = " ")
|
print(map_filename, end = " ")
|
||||||
|
|
||||||
|
# ChompEDIT START
|
||||||
if not args.maps:
|
if not args.maps:
|
||||||
if "modular_chomp/maps/" not in map_filename:
|
if "modular_chomp/maps/" not in map_filename:
|
||||||
print(yellow("SKIPPED"))
|
print(yellow("SKIPPED"))
|
||||||
continue
|
continue
|
||||||
|
# ChompEDIT END
|
||||||
|
|
||||||
success = True
|
success = True
|
||||||
all_failures: list[MaplintError] = []
|
all_failures: list[MaplintError] = []
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ def main(repo : pygit2.Repository):
|
|||||||
|
|
||||||
# Set up upstream remote if needed
|
# Set up upstream remote if needed
|
||||||
try:
|
try:
|
||||||
repo.remotes.create("upstream", "https://github.com/CHOMPStation2/CHOMPStation2.git")
|
repo.remotes.create("upstream", "https://github.com/CHOMPStation2/CHOMPStation2.git") # ChompEDIT
|
||||||
except ValueError:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ def read_settings():
|
|||||||
try:
|
try:
|
||||||
map_folder = os.environ['MAPROOT']
|
map_folder = os.environ['MAPROOT']
|
||||||
except KeyError:
|
except KeyError:
|
||||||
map_folder = 'modular_chomp/maps/'
|
map_folder = 'modular_chomp/maps/' # ChompEDIT
|
||||||
for _ in range(8):
|
for _ in range(8):
|
||||||
if os.path.exists(map_folder):
|
if os.path.exists(map_folder):
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user