-
Notifications
You must be signed in to change notification settings - Fork 28
67 lines (55 loc) · 1.87 KB
/
nightly.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
62
63
64
65
66
67
# This workflow will install Python dependencies, pyinstaller and build executable with a version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: "Biscuit Nightly Builds"
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build-ubuntu:
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, 'nightly')
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install prerequisites
run: |
sudo apt install python3-dev tcl-dev tk-dev fontconfig libfontconfig1 libfontconfig1-dev cmake cmake-data extra-cmake-modules build-essential
pip install scikit-build
- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pyinstaller
pip install .
- name: Build biscuit
run: pyinstaller scripts/linux.spec
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: "biscuit-nightly-anylinux"
path: "dist/"
build-windows:
runs-on: windows-latest
if: contains(github.event.head_commit.message, 'nightly')
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install pyinstaller biscuit-editor
- name: Build biscuit
run: pyinstaller scripts/windows.spec
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: "biscuit-nightly-windows"
path: "dist/"