mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-09 20:02:11 +03:00
Merge pull request #789 from A-UNDERSCORE-D/github-actions-build
Build automatically with github actions
This commit is contained in:
commit
85a1a8efce
45
.github/workflows/windows-build.yml
vendored
Normal file
45
.github/workflows/windows-build.yml
vendored
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "v*"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
name: Build EDMC
|
||||||
|
runs-on: windows-2019
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: powershell
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: "3.7.9"
|
||||||
|
architecture: "x86"
|
||||||
|
|
||||||
|
- name: Install python tools
|
||||||
|
run: |
|
||||||
|
pip install wheel
|
||||||
|
pip install -r requirements-dev.txt
|
||||||
|
|
||||||
|
- name: Download winsparkle
|
||||||
|
run: |
|
||||||
|
Invoke-Webrequest -UseBasicParsing https://github.com/vslavik/winsparkle/releases/download/v0.7.0/WinSparkle-0.7.0.zip -OutFile out.zip
|
||||||
|
Expand-Archive out.zip
|
||||||
|
Move-Item 'out\WinSparkle-0.7.0\Release\*' '.\'
|
||||||
|
|
||||||
|
- name: Build EDMC
|
||||||
|
run: |
|
||||||
|
python setup.py py2exe
|
||||||
|
|
||||||
|
- name: Upload build files
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: Built files
|
||||||
|
path: |
|
||||||
|
EDMarketConnector_win*.msi
|
||||||
|
dist.win32\EDMarketConnector.exe
|
||||||
|
appcast_win_*.xml
|
Loading…
x
Reference in New Issue
Block a user