-
Notifications
You must be signed in to change notification settings - Fork 17
58 lines (50 loc) · 1.33 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
58
name: App Builder
on:
push:
tags:
- "v*"
branches: master
workflow_dispatch:
concurrency:
cancel-in-progress: true
# we want to group based on the push type not the ref
group: ${{ github.ref_type }}
env:
ARTIFACT_BASE_NAME: 'music_caster_artifacts' # + '_${runsOn}'
TAG_PUSH: ${{ github.ref_type == 'tag' }}
jobs:
build:
strategy:
matrix:
platform: [windows-latest]
runs-on: ${{matrix.platform}}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Venv
run: |
python -m venv .venv
.venv\Scripts\Activate.ps1
- name: Install Dependencies
run: |
.venv\Scripts\Activate.ps1
python build.py --deps
- name: Build
run: |
.venv\Scripts\Activate.ps1
python build.py --no-deps --no-tests --no-install
- name: Test build
run: |
.venv\Scripts\Activate.ps1
python build.py --no-deps --no-build --no-install
- name: Upload build
if: github.env.TAG_PUSH
run: |
.venv\Scripts\Activate.ps1
python build.py -u --ci --no-deps --no-build --no-tests --no-install
# TODO: if/when MacOS is supported?
# release:
# needs: build
# runs-on: ubuntu-latest