-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (52 loc) · 1.74 KB
/
main.yml
File metadata and controls
60 lines (52 loc) · 1.74 KB
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
name: Pyder Builder
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
env:
pythonVersion: 3.14.3
jobs:
build:
name: Build for ${{ matrix.os-name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
os-name: Linux Ubuntu
artifact-path: dist/Pyder-Linux
artifact-name: Pyder-Linux
- os: windows-latest
os-name: Windows
artifact-path: dist/Pyder-Windows.exe
artifact-name: Pyder-Windows
- os: macos-latest
os-name: macOS
artifact-path: dist/Pyder-macOS
artifact-name: Pyder-macOS
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python ${{ env.pythonVersion }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.pythonVersion }}
- name: Install Python dependencies
run: pip install -r requirements.txt
- name: Compile with PyInstaller
run: pyinstaller build.spec
- name: Rename Build (Windows)
if: runner.os == 'Windows'
run: move dist\Pyder.exe ${{ matrix.artifact-path }}
- name: Rename Build (Linux/macOS)
if: runner.os != 'Windows'
run: mv dist/Pyder ${{ matrix.artifact-path }}
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact-name }}
path: ${{ matrix.artifact-path }}