Skip to content

Commit 888fc6d

Browse files
feat: Generate metadata for all branches
1 parent b712fda commit 888fc6d

24 files changed

+25
-8
lines changed

.github/workflows/generate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ jobs:
4646
- name: Generate Data
4747
run: |
4848
git clone --branch "${{ matrix.branch }}" --depth 1 --single-branch "https://github.com/nuclear-unicorn/kittensgame.git"
49-
rm -rf lib
50-
make lib
49+
rm -rf "lib/${{ matrix.branch }}"
50+
make "lib/${{ matrix.branch }}"
5151
make pretty
5252
5353
- name: Create Pull Request

Makefile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,16 @@ test: run
2626
run: output kittensgame
2727
@cd lib; node ../output/main.js ../kittensgame
2828

29-
lib: output kittensgame
30-
@mkdir lib || true
31-
cd lib; node ../output/main.js ../kittensgame
29+
lib: lib/master
30+
lib/master: output kittensgame
31+
@mkdir -p lib/master || true
32+
cd lib/master; node ../../output/main.js ../../kittensgame
33+
lib/alpha: output kittensgame
34+
@mkdir -p lib/alpha || true
35+
cd lib/alpha; node ../../output/main.js ../../kittensgame
36+
lib/beta: output kittensgame
37+
@mkdir -p lib/beta || true
38+
cd lib/beta; node ../../output/main.js ../../kittensgame
3239

3340
node_modules:
3441
npm install
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)