Skip to content

Commit f2fdbe0

Browse files
authored
Merge pull request Monika-After-Story#10203 from ThePotatoGuy/r7.4-ci-fix
CI fixes for R8
2 parents 075b3e9 + a4104ad commit f2fdbe0

2 files changed

Lines changed: 51 additions & 25 deletions

File tree

.github/workflows/mas_check.yml

Lines changed: 50 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -22,47 +22,64 @@ jobs:
2222
runs-on: ubuntu-20.04
2323

2424
env:
25-
SDL_AUDIODRIVER: dummy # handles ALSA issues
25+
MAS_RENPY_VER: 8.1.1
26+
MAS_BASE_DIR: masbase
27+
MAS_DIR: mas
28+
RENPY_DIR: renpy
2629

2730
# Steps represent a sequence of tasks that will be executed as part of the job
2831
steps:
2932
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
30-
- uses: actions/checkout@v2
33+
- uses: actions/checkout@v4
3134

3235
- name: Setup Python
33-
uses: actions/setup-python@v2
36+
uses: actions/setup-python@v5
3437
with:
3538
# Version range or exact version of a Python version to use, using SemVer's version range syntax.
3639
python-version: 3.10.4 # optional, default is 3.x
3740

38-
# dl renpy src
41+
# get/dl renpy src
42+
- name: cache rpy source
43+
id: cache-rpy
44+
uses: actions/cache@v4
45+
with:
46+
path: ${{ env.RENPY_DIR }}/
47+
key: rpy
48+
3949
- name: Download rpy source
50+
if: steps.cache-rpy.outputs.cache-hit != 'true'
4051
run: |
41-
renpysdk=$(wget -qO- https://nightly.renpy.org/current-8/index.html | grep -P -m 1 -o '(?<=href=").*\.tar\.bz2(?=".*)')
42-
wget https://nightly.renpy.org/current-8/$renpysdk
52+
renpysdk=renpy-$MAS_RENPY_VER-sdk.tar.bz2
53+
wget https://www.renpy.org/dl/$MAS_RENPY_VER/$renpysdk
4354
tar xf $renpysdk
4455
rm $renpysdk
45-
mv ${renpysdk/.tar.bz2/} renpy
56+
mv ${renpysdk/.tar.bz2/} $RENPY_DIR
4657
4758
# get/download base mas
48-
# - name: cache base MAS
49-
# id: cache-mas
50-
# uses: actions/cache@v2
51-
# with:
52-
# path: mas0105/
53-
# key: ${{ runner.os }}-mas
54-
55-
- name: Download base MAS
56-
# if: steps.cache-mas.outputs.cache-hit != 'true'
59+
- name: cache base MAS
60+
id: cache-mas
61+
uses: actions/cache@v4
62+
with:
63+
path: ${{ env.MAS_BASE_DIR }}/
64+
key: masbase
65+
66+
- name: download base MAS
67+
if: steps.cache-mas.outputs.cache-hit != 'true'
5768
run: |
58-
wget https://s3-us-west-2.amazonaws.com/monika-after-story/ddlc/mas.zip
59-
mkdir mas0105
60-
unzip mas.zip -d mas0105
61-
rm mas0105/game/scripts.rpa
69+
wget https://monika-after-story.s3.us-west-2.amazonaws.com/ddlc/mas8.zip
70+
mkdir $MAS_BASE_DIR
71+
unzip mas8.zip -d $MAS_BASE_DIR/ # this is so we cache ONLY the aws download and NOT the full repo
72+
73+
# setup build folder
74+
- name: setup build folder
75+
run: |
76+
mkdir $MAS_DIR
77+
cp -Rf $MAS_BASE_DIR/* $MAS_DIR/
78+
rm $MAS_DIR/game/scripts.rpa # remove when we can handle scripts rpa
6279
6380
# copy over gh files to base
6481
- name: copy source over
65-
run: cp -Rf Monika\ After\ Story/* mas0105/
82+
run: cp -Rf Monika\ After\ Story/* $MAS_DIR/
6683

6784
# run sprite checkers
6885
- name: check sprites
@@ -71,11 +88,19 @@ jobs:
7188
# lint renpy
7289
- name: rpy lint
7390
run: |
74-
cd renpy
75-
./renpy.sh "../mas0105/" lint | grep -E -v "^$|Could not find image \(monika [0-9][^[:space:]]+ corresponding to attributes on say statement\.|'monika [0-9][^[:space:]]+' is not an image\.|The image named 'monika [0-9][^[:space:]]+ was not declared\."
91+
cd $RENPY_DIR
92+
./renpy.sh "../$MAS_DIR/" lint | grep -E -v "^$|Could not find image \(monika [0-9][^[:space:]]+ corresponding to attributes on say statement\.|'monika [0-9][^[:space:]]+' is not an image\.|The image named 'monika [0-9][^[:space:]]+ was not declared\."
93+
94+
# setup open GL for distribute
95+
- name: setup openGL
96+
run: |
97+
sudo apt-get install cmake pkg-config
98+
sudo apt-get install mesa-utils libglu1-mesa-dev freeglut3-dev mesa-common-dev
99+
sudo apt-get install libglew-dev libglfw3-dev libglm-dev
100+
sudo apt-get install libao-dev libmpg123-dev
76101
77102
# distribute
78103
- name: rpy distribute
79104
run: |
80-
cd renpy
81-
./renpy.sh launcher distribute "../mas0105/" --package market
105+
cd $RENPY_DIR
106+
./renpy.sh launcher distribute "../$MAS_DIR/" --package linux

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ __pycache__
1313
#Ide specific things
1414
*.swp
1515
**/*.vscode
16+
tools/*
1617

1718
#Various other clutter-y things
1819
log.txt

0 commit comments

Comments
 (0)