Merge pull request #16107 from sheepishgoat/fix-ci

fixes CI
This commit is contained in:
SandPoot
2024-10-19 03:23:32 -03:00
committed by GitHub
7 changed files with 41 additions and 34 deletions

View File

@@ -8,18 +8,18 @@ on:
- master - master
jobs: jobs:
run_linters: run_linters:
if: !contains(github.event.head_commit.message, '[ci skip]') if: ( !contains(github.event.head_commit.message, '[ci skip]') )
name: Run Linters name: Run Linters
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- name: Restore SpacemanDMM cache - name: Restore SpacemanDMM cache
uses: actions/cache@v2 uses: actions/cache@v4
with: with:
path: ~/SpacemanDMM path: ~/SpacemanDMM
key: ${{ runner.os }}-spacemandmm-${{ secrets.CACHE_PURGE_KEY }} key: ${{ runner.os }}-spacemandmm-${{ secrets.CACHE_PURGE_KEY }}
- name: Restore Yarn cache - name: Restore Yarn cache
uses: actions/cache@v2 uses: actions/cache@v4
with: with:
path: tgui/.yarn/cache path: tgui/.yarn/cache
key: ${{ runner.os }}-yarn-${{ secrets.CACHE_PURGE_KEY }}-${{ hashFiles('tgui/yarn.lock') }} key: ${{ runner.os }}-yarn-${{ secrets.CACHE_PURGE_KEY }}-${{ hashFiles('tgui/yarn.lock') }}
@@ -29,7 +29,7 @@ jobs:
${{ runner.os }}- ${{ runner.os }}-
- name: Install Tools - name: Install Tools
run: | run: |
pip3 install setuptools pip3 install setuptools --upgrade
bash tools/ci/install_node.sh bash tools/ci/install_node.sh
bash tools/ci/install_spaceman_dmm.sh dreamchecker bash tools/ci/install_spaceman_dmm.sh dreamchecker
tools/bootstrap/python -c '' tools/bootstrap/python -c ''
@@ -51,13 +51,13 @@ jobs:
outputFile: output-annotations.txt outputFile: output-annotations.txt
compile_all_maps: compile_all_maps:
if: !contains(github.event.head_commit.message, '[ci skip]') if: ( !contains(github.event.head_commit.message, '[ci skip]') )
name: Compile Maps name: Compile Maps
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Restore BYOND cache - name: Restore BYOND cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: ~/BYOND path: ~/BYOND
key: ${{ runner.os }}-byond-${{ secrets.CACHE_PURGE_KEY }} key: ${{ runner.os }}-byond-${{ secrets.CACHE_PURGE_KEY }}
@@ -67,7 +67,7 @@ jobs:
source $HOME/BYOND/byond/bin/byondsetup source $HOME/BYOND/byond/bin/byondsetup
tools/build/build --ci dm -DCIBUILDING -DCITESTING -DALL_MAPS tools/build/build --ci dm -DCIBUILDING -DCITESTING -DALL_MAPS
run_all_tests: run_all_tests:
if: !contains(github.event.head_commit.message, '[ci skip]') if: ( !contains(github.event.head_commit.message, '[ci skip]') )
name: Integration Tests name: Integration Tests
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
services: services:
@@ -79,14 +79,14 @@ jobs:
- 3306 - 3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Restore BYOND cache - name: Restore BYOND cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: ~/BYOND path: ~/BYOND
key: ${{ runner.os }}-byond-${{ secrets.CACHE_PURGE_KEY }} key: ${{ runner.os }}-byond-${{ secrets.CACHE_PURGE_KEY }}
- name: Restore Yarn cache - name: Restore Yarn cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: tgui/.yarn/cache path: tgui/.yarn/cache
key: ${{ runner.os }}-yarn-${{ secrets.CACHE_PURGE_KEY }}-${{ hashFiles('tgui/yarn.lock') }} key: ${{ runner.os }}-yarn-${{ secrets.CACHE_PURGE_KEY }}-${{ hashFiles('tgui/yarn.lock') }}
@@ -103,9 +103,6 @@ jobs:
mysql -u root -proot tg_ci_prefixed < SQL/tgstation_schema_prefixed.sql mysql -u root -proot tg_ci_prefixed < SQL/tgstation_schema_prefixed.sql
- name: Install rust-g - name: Install rust-g
run: | run: |
sudo dpkg --add-architecture i386
sudo apt update || true
sudo apt install -o APT::Immediate-Configure=false libssl1.1:i386
bash tools/ci/install_rust_g.sh bash tools/ci/install_rust_g.sh
- name: Install auxmos - name: Install auxmos
run: | run: |
@@ -118,13 +115,13 @@ jobs:
tools/build/build --ci -DCIBUILDING tools/build/build --ci -DCIBUILDING
bash tools/ci/run_server.sh bash tools/ci/run_server.sh
test_windows: test_windows:
if: !contains(github.event.head_commit.message, '[ci skip]') if: ( !contains(github.event.head_commit.message, '[ci skip]') )
name: Windows Build name: Windows Build
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Restore Yarn cache - name: Restore Yarn cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: tgui/.yarn/cache path: tgui/.yarn/cache
key: ${{ runner.os }}-yarn-${{ secrets.CACHE_PURGE_KEY }}-${{ hashFiles('tgui/yarn.lock') }} key: ${{ runner.os }}-yarn-${{ secrets.CACHE_PURGE_KEY }}-${{ hashFiles('tgui/yarn.lock') }}
@@ -141,7 +138,7 @@ jobs:
md deploy md deploy
bash tools/deploy.sh ./deploy bash tools/deploy.sh ./deploy
- name: Deploy artifact - name: Deploy artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: deploy name: deploy
path: deploy path: deploy

View File

@@ -8,9 +8,9 @@ jobs:
if: "!contains(github.event.head_commit.message, '[ci skip]')" if: "!contains(github.event.head_commit.message, '[ci skip]')"
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- name: Setup cache - name: Setup cache
uses: actions/cache@v2 uses: actions/cache@v4
with: with:
path: ~/SpacemanDMM path: ~/SpacemanDMM
key: ${{ runner.os }}-spacemandmm-${{ secrets.CACHE_PURGE_KEY }} key: ${{ runner.os }}-spacemandmm-${{ secrets.CACHE_PURGE_KEY }}

View File

@@ -11,7 +11,7 @@ jobs:
name: Update the TGS DMAPI name: Update the TGS DMAPI
steps: steps:
- name: Clone - name: Clone
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Branch - name: Branch
run: | run: |

View File

@@ -8,17 +8,18 @@ export BYOND_MAJOR=515
export BYOND_MINOR=1634 export BYOND_MINOR=1634
#rust_g git tag #rust_g git tag
export RUST_G_VERSION=0.4.10 export RUST_G_VERSION=3.3.0
#node version #node version
export NODE_VERSION=16 export NODE_VERSION_LTS=20.13.0
export NODE_VERSION_PRECISE=16.13.1 # compatiblility mode MUST work with windows 7
export NODE_VERSION_COMPAT=20.2.0
# SpacemanDMM git tag # SpacemanDMM git tag
export SPACEMAN_DMM_VERSION=suite-1.8 export SPACEMAN_DMM_VERSION=suite-1.9
# Python version for mapmerge and other tools # Python version for mapmerge and other tools
export PYTHON_VERSION=3.7.9 export PYTHON_VERSION=3.9.0
# Auxmos git tag # Auxmos git tag
export AUXMOS_VERSION=v2.5.1 export AUXMOS_VERSION=v2.5.1

View File

@@ -29,7 +29,16 @@ $Cache = "$BaseDir\.cache"
if ($Env:TG_BOOTSTRAP_CACHE) { if ($Env:TG_BOOTSTRAP_CACHE) {
$Cache = $Env:TG_BOOTSTRAP_CACHE $Cache = $Env:TG_BOOTSTRAP_CACHE
} }
$NodeVersion = Extract-Variable -Path "$BaseDir\..\..\dependencies.sh" -Key "NODE_VERSION_PRECISE" # Get OS version
$OSMajor = (Get-WmiObject -Class Win32_OperatingSystem).Version.Split(".")[0]
# Set Node version based on OS version
if ($OSMajor -lt 10) {
# Anything under Windows 10
$NodeVersion = Extract-Variable -Path "$BaseDir\..\..\dependencies.sh" -Key "NODE_VERSION_COMPAT"
}
else {
$NodeVersion = Extract-Variable -Path "$BaseDir\..\..\dependencies.sh" -Key "NODE_VERSION_LTS"
}
$NodeSource = "https://nodejs.org/download/release/v$NodeVersion/win-x64/node.exe" $NodeSource = "https://nodejs.org/download/release/v$NodeVersion/win-x64/node.exe"
$NodeTargetDir = "$Cache\node-v$NodeVersion-x64" $NodeTargetDir = "$Cache\node-v$NodeVersion-x64"
$NodeTarget = "$NodeTargetDir\node.exe" $NodeTarget = "$NodeTargetDir\node.exe"

View File

@@ -5,6 +5,6 @@ source dependencies.sh
if [[ -e ~/.nvm/nvm.sh ]]; then if [[ -e ~/.nvm/nvm.sh ]]; then
source ~/.nvm/nvm.sh source ~/.nvm/nvm.sh
nvm install $NODE_VERSION nvm install $NODE_VERSION_COMPAT
nvm use $NODE_VERSION nvm use $NODE_VERSION_COMPAT
fi fi

View File

@@ -1,7 +1,7 @@
pygit2==1.0.1 pygit2==1.11.1
bidict==0.13.1 bidict==0.22.1
Pillow==10.0.1 Pillow==10.3.0
# changelogs # changelogs
PyYaml==5.4 PyYaml==6.0.1
beautifulsoup4==4.9.3 beautifulsoup4==4.9.3