-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (56 loc) · 2.43 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: continuous-integration
on: [push]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
path: main
submodules: true
- name: Update
run: sudo apt-get update
- name: Install Dependencies
run: sudo apt-get install --assume-yes wine-stable wine64 python3-pip
# If you just want to use the official versions on PyPI, remove the checkout and `pip3 install makelove` instead
- name: Checkout makelove
uses: actions/checkout@v2
with:
repository: pfirsich/makelove
path: makelove
- name: Install makelove
run:
pip3 install ./makelove
- name: Build
run: cd main/game && python3 -m makelove
# I have this step, so I don't need to hardcode the project name in the upload-artifact steps below
# Sadly all of these artifacts can only be downloaded as a zip, which means that some of them will be double-zipped!
# This is currently a limitation of GitHub Actions: https://github.com/actions/upload-artifact/issues/3
# You could adapt these actions to unzip the zips first, but don't do that with the mac zip, because
# the GitHub Action zipping will not preserve symlinks which would effectively break the .app!
- name: Prepare Artifact Names
run: |
echo "::set-env name=ARTIFACT_NAME_LOVE::$(ls main/makelove-build/love | head -n1)"
echo "::set-env name=ARTIFACT_NAME_APPIMAGE::$(ls main/makelove-build/appimage | head -n1)"
echo "::set-env name=ARTIFACT_NAME_WIN64::$(ls main/makelove-build/win64 | head -n1)"
echo "::set-env name=ARTIFACT_NAME_MACOS::$(ls main/makelove-build/macos | head -n1)"
- name: Artifact (love)
uses: actions/upload-artifact@v2
with:
name: ${{ env.ARTIFACT_NAME_LOVE }}
path: main/makelove-build/love/${{ env.ARTIFACT_NAME_LOVE }}
- name: Artifact (AppImage)
uses: actions/upload-artifact@v2
with:
name: ${{ env.ARTIFACT_NAME_APPIMAGE }}
path: main/makelove-build/appimage/${{ env.ARTIFACT_NAME_APPIMAGE }}
- name: Artifact (Win64)
uses: actions/upload-artifact@v2
with:
name: ${{ env.ARTIFACT_NAME_WIN64 }}
path: main/makelove-build/win64/${{ env.ARTIFACT_NAME_WIN64 }}
- name: Artifact (MacOS)
uses: actions/upload-artifact@v2
with:
name: ${{ env.ARTIFACT_NAME_MACOS }}
path: main/makelove-build/macos/${{ env.ARTIFACT_NAME_MACOS }}