Skip to content

Commit d324904

Browse files
committed
config: rename check workflow to mas_check_es and add funding options
1 parent 50be731 commit d324904

2 files changed

Lines changed: 27 additions & 10 deletions

File tree

‎.github/FUNDING.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ko_fi: theencodersclub
Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
name: ci_build
2020

2121
# The type of runner that the job will run on
22-
runs-on: ubuntu-20.04
22+
runs-on: ubuntu-22.04
2323

2424
env:
2525
SDL_AUDIODRIVER: dummy # handles ALSA issues
@@ -29,22 +29,33 @@ jobs:
2929
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3030
- uses: actions/checkout@v2
3131

32-
- name: Setup Python
33-
uses: actions/setup-python@v2.2.1
32+
# Check if changes are within the Monika After Story folder
33+
- name: Path Filter
34+
id: filter
35+
uses: dorny/paths-filter@v2
3436
with:
35-
# Version range or exact version of a Python version to use, using SemVer's version range syntax.
36-
python-version: 2.7.18 # optional, default is 3.x
37+
filters: |
38+
mas:
39+
- 'Monika After Story/**'
40+
41+
- name: Setup Python 2.7 (Legacy)
42+
if: steps.filter.outputs.mas == 'true'
43+
run: |
44+
sudo apt-get update
45+
sudo apt-get install -y python2-minimal
46+
sudo ln -sf /usr/bin/python2 /usr/bin/python
3747
3848
# get/dl renpy src
3949
- name: cache rpy source
50+
if: steps.filter.outputs.mas == 'true'
4051
id: cache-rpy
41-
uses: actions/cache@v2
52+
uses: actions/cache@v3
4253
with:
4354
path: renpy/
4455
key: ${{ runner.os }}-rpy
4556

4657
- name: Download rpy source
47-
if: steps.cache-rpy.outputs.cache-hit != 'true'
58+
if: steps.filter.outputs.mas == 'true' && steps.cache-rpy.outputs.cache-hit != 'true'
4859
run: |
4960
wget https://www.renpy.org/dl/6.99.12.4/renpy-6.99.12.4-sdk.tar.bz2
5061
tar xf renpy-6.99.12.4-sdk.tar.bz2
@@ -53,14 +64,15 @@ jobs:
5364
5465
# get/download base mas
5566
- name: cache base MAS
67+
if: steps.filter.outputs.mas == 'true'
5668
id: cache-mas
57-
uses: actions/cache@v2
69+
uses: actions/cache@v3
5870
with:
5971
path: mas0105/
6072
key: ${{ runner.os }}-mas
6173

6274
- name: Download base MAS
63-
if: steps.cache-mas.outputs.cache-hit != 'true'
75+
if: steps.filter.outputs.mas == 'true' && steps.cache-mas.outputs.cache-hit != 'true'
6476
run: |
6577
wget https://s3-us-west-2.amazonaws.com/monika-after-story/ddlc/mas.zip
6678
mkdir mas0105
@@ -74,25 +86,29 @@ jobs:
7486

7587
# copy files over
7688
- name: copy source over
89+
if: steps.filter.outputs.mas == 'true'
7790
run: cp -Rf Monika\ After\ Story/* mas0105/
7891

7992
# touch file for unstable so it doesn't raise exceptions for some things
8093
- name: exception skip for unstable
81-
if: github.ref == 'refs/heads/unstable'
94+
if: steps.filter.outputs.mas == 'true' && github.ref == 'refs/heads/unstable'
8295
run: touch mas0105/trb
8396

8497
# run sprite checkers
8598
- name: check sprites
99+
if: steps.filter.outputs.mas == 'true'
86100
run: python tools/ghactions.py
87101

88102
# lint renpy
89103
- name: rpy lint
104+
if: steps.filter.outputs.mas == 'true'
90105
run: |
91106
cd renpy
92107
./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\."
93108
94109
# distribute
95110
- name: rpy distribute
111+
if: steps.filter.outputs.mas == 'true'
96112
run: |
97113
cd renpy
98114
./renpy.sh launcher distribute "../mas0105/" --package Mod

0 commit comments

Comments
 (0)