Skip to content

Commit

Permalink
Updates the CI to use a system supplied node to cut down on NodeJS ra…
Browse files Browse the repository at this point in the history
…telimits (#10088)

* Updates the CI to use a system supplied node

* Converts the linux workflows as well

* No longer need to run the install node script
  • Loading branch information
Crossedfall authored Oct 24, 2023
1 parent f4e5c13 commit f2ba7c5
Showing 1 changed file with 14 additions and 30 deletions.
44 changes: 14 additions & 30 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ jobs:
with:
python-version: "3.11"
cache: 'pip'
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
cache-dependency-path: tgui/yarn.lock
- name: Cache SpacemanDMM
id: cache-spacemandmm
uses: actions/cache@v3
Expand All @@ -35,18 +40,7 @@ jobs:
- name: Install Tools
run: |
pip install setuptools
bash tools/ci/install_node.sh
pip install -r tools/requirements.txt
- name: Cache Yarn
id: cache-yarn
uses: actions/cache@v3
with:
path: tgui/.yarn
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('tgui/yarn.lock') }}
- name: TGUI fetch
if: steps.cache-yarn.outputs.cache-hit != 'true'
run: |
tools/build/build --ci yarn
- name: Run Linters
run: |
bash tools/ci/check_filedirs.sh beestation.dme
Expand Down Expand Up @@ -88,6 +82,11 @@ jobs:
options: --health-cmd="mariadb-admin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
cache-dependency-path: tgui/yarn.lock
- name: Cache BYOND
id: cache-byond
uses: actions/cache@v3
Expand All @@ -111,16 +110,6 @@ jobs:
- name: Install auxmos
run: |
bash tools/ci/install_auxmos.sh
- name: Cache Yarn
id: cache-yarn
uses: actions/cache@v3
with:
path: tgui/.yarn
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('tgui/yarn.lock') }}
- name: TGUI fetch
if: steps.cache-yarn.outputs.cache-hit != 'true'
run: |
tools/build/build --ci yarn
- name: Compile and run tests
run: |
source $HOME/BYOND/byond/bin/byondsetup
Expand All @@ -130,22 +119,17 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Cache Yarn
id: cache-yarn
uses: actions/cache@v3
- uses: actions/setup-node@v3
with:
path: tgui/.yarn
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('tgui/yarn.lock') }}
node-version: 18
cache: yarn
cache-dependency-path: tgui/yarn.lock
- name: Cache BYOND
id: cache-byond
uses: actions/cache@v3
with:
path: C:/byond
key: ${{ runner.os }}-byond-cache-${{ hashFiles('dependencies.sh') }}
- name: TGUI fetch
if: steps.cache-yarn.outputs.cache-hit != 'true'
run: |
tools/build/build --ci yarn
- name: Compile
run: pwsh tools/ci/build.ps1
env:
Expand Down

0 comments on commit f2ba7c5

Please sign in to comment.