Ready for v0.6.1 #57
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push for build | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- 'rel-*' | |
jobs: | |
build-windows: | |
name: Executable build for Windows | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ '3.8' ] | |
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: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
C:\Miniconda\condabin\conda.bat env create -f conda_environment.yml | |
C:\Miniconda\condabin\conda.bat init powershell | |
C:\Miniconda\condabin\conda.bat activate simsi_transfer_gui | |
- name: Avoid MKL dependence | |
run: | | |
C:\Miniconda\condabin\conda.bat install -c conda-forge nomkl numpy pandas pyqt pyinstaller | |
C:\Miniconda\condabin\conda.bat install -c bioconda pyteomics | |
- 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 |