Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Commit c1367d9

Browse files
committed
Build NodeCG in NodeCG CI test workflow
As of NodeCG v2 compilation results aren't checked into the repository anymore and NodeCG has to be built after cloning it.
1 parent 56622f9 commit c1367d9

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,28 @@ jobs:
7979
run: echo "NODECG_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
8080

8181
- name: Cache NodeCG dependencies
82-
id: cache-nodecg
82+
id: cache-nodecg-deps
8383
uses: actions/cache@v3
8484
with:
8585
path: 'node_modules'
86-
key: ${{ runner.os }}-${{ env.NODECG_HASH }}-nodecg
86+
key: ${{ runner.os }}-${{ env.NODECG_HASH }}-nodecg-deps
87+
88+
- name: Cache NodeCG compilation outputs
89+
id: cache-nodecg-build
90+
uses: actions/cache@v3
91+
with:
92+
path: 'build'
93+
key: ${{ runner.os }}-${{ env.NODECG_HASH }}-nodecg-build
8794

8895
- name: Install NodeCG dependencies
8996
# Only get dependencies if we didn't get them from the cache
90-
if: steps.cache-nodecg.outputs.cache-hit != 'true'
91-
run: npm install --prod
97+
if: steps.cache-nodecg-deps.outputs.cache-hit != 'true'
98+
run: npm install
99+
100+
- name: Build NodeCG
101+
# Only build NodeCG if we didn't have cached compilation results
102+
if: steps.cache-nodecg-build.outputs.cache-hit != 'true'
103+
run: npm run build
92104

93105
- name: Setup NodeCG config linux
94106
if: matrix.os == 'ubuntu-latest'

0 commit comments

Comments
 (0)