-
Notifications
You must be signed in to change notification settings - Fork 20
110 lines (108 loc) · 3.55 KB
/
releasebuild.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
on:
push:
tags:
- "v3*"
paths-ignore:
- README.md
- CHANGELOG.md
- .grenrc.yml
name: ReleaseBuild
jobs:
buildmac:
name: MacOSX
runs-on: macos-latest
timeout-minutes: 120
steps:
- name: Show Environment
run: set | grep GIT
- name: Setup Python environment
uses: actions/setup-python@v5
with:
python-version: 3.10.*
- name: Checkout code
#uses: actions/checkout@master
uses: actions/checkout@v4
- name: Setup Environment
run: |
cd $GITHUB_WORKSPACE
bash compile.sh -S
- name: Build project
run: |
cd $GITHUB_WORKSPACE
bash compile.sh -a -A
- name: Production Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: False
files: release/*
buildwindows:
name: Windows
needs: buildmac
runs-on: windows-latest
timeout-minutes: 120
steps:
- name: Setup Python environment
uses: actions/setup-python@v5
with:
python-version: 3.10.*
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Environment
shell: powershell
run: |
cd $env:GITHUB_WORKSPACE
.\compile.ps1 -setupenv
- name: Build project
shell: powershell
run: |
cd $env:GITHUB_WORKSPACE
.\compile.ps1 -all -everything
- name: VirusTotal Upload
shell: powershell
if: startsWith(github.ref, 'refs/tags/v3')
run: |
cd $env:GITHUB_WORKSPACE
.\compile.ps1 -virus
- name: Production Release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: "latest"
file: release/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true
#~ buildlinux:
#~ name: Linux
#~ needs: buildmac
#~ runs-on: ubuntu-latest
#~ steps:
#~ - name: Setup Python Environment
#~ uses: actions/setup-python@v5git opu
#~ with:
#~ python-version: 3.10.*
#~ - name: Checkout code
##~ uses: actions/checkout@master
#~ uses: actions/checkout@v4
#~ - name: Linux Lib Install
#~ run: |
#~ cd $GITHUB_WORKSPACE
#~ bash linuxdeps.sh
#~ - name: Setup Environment
#~ run: |
#~ cd $GITHUB_WORKSPACE
#~ bash compile.sh -S
#~ - name: Build project
#~ run: |
#~ cd $GITHUB_WORKSPACE
#~ bash compile.sh -a -A
#~ - name: Production Release
#~ uses: svenstaro/upload-release-action@v2
#~ with:
#~ repo_token: ${{ secrets.GITHUB_TOKEN }}
#~ file: release/*
#~ tag: ${{ github.ref }}
#~ overwrite: true
#~ file_glob: true