-
Notifications
You must be signed in to change notification settings - Fork 12
52 lines (49 loc) · 1.29 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
name: Build
on:
push:
branches:
- '**'
env:
PYTHONIOENCODING: "UTF-8"
jobs:
build:
strategy:
fail-fast: false
matrix:
python-version: ["3.8.10"]
poetry-version: ["1.8.3"]
os: [windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Define venv location
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- name: Define venv caching
uses: actions/cache@v3
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
run: |
poetry install
- name: Build distributable
run: |
poetry run python Build.py
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ArkUnpacker-${{ github.ref_name }}
path: build/dist/*.*