-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (47 loc) · 1.51 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
59
60
61
name: Executable Build
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main", "master" ]
pull_request:
branches: [ "main", "master" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
os: [macos-14, macos-13, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
# Check-out repository
- uses: actions/checkout@v3
# Setup Python
- uses: actions/setup-python@v4
with:
python-version: '3.11.4'
cache: 'pip'
# Build python script into a stand-alone exe
- run: |
pip install pipenv
pipenv update -d
pipenv run nuitka --standalone --plugin-enable=pyside6 --macos-create-app-bundle --assume-yes-for-downloads FluentPython
# Uploads artifact
- name: Upload Artifacts (Win/Linux)
uses: actions/upload-artifact@v4
if: ${{ runner.os != 'macOS' }}
with:
name: ${{ runner.os }} ${{ runner.arch }} Build
path: |
FluentPython.dist
- name: Upload Artifacts (macOS)
uses: actions/upload-artifact@v4
if: ${{ runner.os == 'macOS' }}
with:
name: ${{ runner.os }} ${{ runner.arch }} Build
path: |
FluentPython.app