forked from plugdata-team/plugdata-heavy-toolchain
-
Notifications
You must be signed in to change notification settings - Fork 0
113 lines (94 loc) · 3.04 KB
/
run_script.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: Create Package
on: [push, workflow_dispatch]
jobs:
build-macos:
name: MacOS Univeral
runs-on: macos-12
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
working-directory: ${{github.workspace}}
run: brew install dfu-util
- name: Setup Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- name: Run Packaging Script
working-directory: ${{github.workspace}}
run: CLEAR_INTL=1 ./build.sh
- name: Archive Artifacts
uses: actions/upload-artifact@v4
with:
name: Heavy-MacOS-Universal
path: ${{github.workspace}}/Heavy
- name: Release Artifacts
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: true
draft: true
files: Heavy-MacOS-Universal
build-windows:
name: Windows
runs-on: windows-2022
steps:
- name: Install Packages
run: choco install make -y
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- name: Run Packaging Script
working-directory: ${{github.workspace}}
run: ./build.bat
- name: Archive Artifacts
uses: actions/upload-artifact@v4
with:
name: Heavy-Win64
path: ${{github.workspace}}/Heavy
- name: Release Artifacts
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: true
draft: true
files: Heavy-Win64
build-linux:
name: Linux-x64
runs-on: ubuntu-20.04
steps:
- name: Install Dependencies (apt)
run: sudo apt update && sudo apt install -y git binutils curl tar gzip xz-utils make patchelf libusb-dev build-essential rsync wget dfu-util
#deps for build-anywhere: csh gawk autoconf automake autotools-dev wget m4 flex bison texinfo unzip help2man meson gperf lzip libtool-bin patch ninja-build libstdc++6 libncurses5-dev
- uses: actions/checkout@v4
with:
submodules: recursive
env:
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- name: Setup Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- name: Run Packaging Script
working-directory: ${{github.workspace}}
run: bash ./build.sh
- name: Archive Artifacts
uses: actions/upload-artifact@v4
with:
name: Heavy-Linux-x64
path: ${{github.workspace}}/Heavy
- name: Release Artifacts
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: true
draft: true
files: Heavy-Linux-x64