-
Notifications
You must be signed in to change notification settings - Fork 5
57 lines (52 loc) · 1.86 KB
/
gui_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
name: Automatic GUI build
on:
workflow_dispatch:
push:
tags:
- 'rel-*'
jobs:
build-windows:
name: Executable build for Windows
runs-on: windows-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Make temporary folder for UPX
run: |
mkdir .\UPX\
- name: Download UPX zip
run: |
Invoke-WebRequest -uri "https://github.com/upx/upx/releases/download/v3.96/upx-3.96-win64.zip" -outfile ".\UPX\upx-3.96-win64.zip"
- name: Unpack UPX
run: |
Add-Type -AssemblyName System.IO.Compression.FileSystem
function Unzip
{
param([string]$zipfile, [string]$outpath)
[System.IO.Compression.ZipFile]::ExtractToDirectory($zipfile, $outpath)
}
Unzip ".\UPX\upx-3.96-win64.zip" ".\UPX\upx-3.96\"
- name: Create conda environment
run: |
C:\Miniconda\condabin\conda.bat create -n picked_group_fdr_gui python=3.9
C:\Miniconda\condabin\conda.bat init powershell
C:\Miniconda\condabin\conda.bat activate picked_group_fdr_gui
- name: Install dependencies
run: |
C:\Miniconda\condabin\conda.bat install -c conda-forge nomkl
C:\Miniconda\condabin\conda.bat install -c conda-forge numpy scipy pandas networkx pyqt pyinstaller bottleneck toml threadpoolctl
C:\Miniconda\condabin\conda.bat install -c bioconda mokapot triqler
- name: Build exe and compress with UPX
run: |
cd .\gui_tools\
& .\build_gui.bat
cd ..
- name: Add built .exe to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: gui_tools/dist/*.zip
tag: ${{ github.ref }}
overwrite: false
file_glob: true