-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.3 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
name: Build
on: [push, pull_request, workflow_dispatch]
jobs:
build:
name: ${{ matrix.config }} ${{ matrix.os }} ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["windows-latest", "ubuntu-latest"]
arch: [x86_64]
python-version: ["3.8"]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
with:
lfs: true
- name: Checkout LFS objects
run: git lfs checkout
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Setup Environment
run: |
# Update pip
python -m pip install -U pip setuptools wheel
# Install dependencies
pip install -r requirements.txt
pip install -r dev-requirements.txt
- name: Build
run: |
mkdir ./build
mkdir ./.temp
pyinstaller Game/run.py --onefile --noconsole --clean --workpath ./.temp --distpath ./build --name WeirdLand
cp -r ./Assets ./build
cp ./icon.png ./build
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-${{ matrix.arch }}
path: build/
if-no-files-found: error