-
Notifications
You must be signed in to change notification settings - Fork 38
65 lines (56 loc) · 2.04 KB
/
build-windows.yaml
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
# This is a basic workflow to help you get started with Actions
name: build
# Controls when the workflow will run
on: push
#on:
# push:
# tags:
# - 'v*'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Download FFmpeg
uses: suisei-cn/actions-download-file@v1
id: downloadfile # Remember to give an ID if you need the output
with:
url: "https://github.com/ShareX/FFmpeg/releases/download/v4.3.1/ffmpeg-4.3.1-win64.zip"
target: .
- name: Unzip FFmpeg
uses: montudor/action-zip@v1
with:
args: unzip -qq ffmpeg-4.3.1-win64.zip -d .
- name: PyInstaller Windows
run: |
docker run --entrypoint /bin/sh --rm -v $GITHUB_WORKSPACE:/src cdrx/pyinstaller-windows:latest -c "python -m pip install --upgrade pip && /entrypoint.sh"
- uses: actions/upload-artifact@v3
with:
name: ntscQT
path: dist/windows/ntscQT.exe
retention-days: 2
# - name: release
# uses: actions/create-release@v1
# id: create_release
# with:
# draft: false
# prerelease: false
# release_name: ${{ github.ref }}
# tag_name: ${{ github.ref }}
# body_path: CHANGELOG.md
# env:
# GITHUB_TOKEN: ${{ github.token }}
# - name: upload Windows artifact
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ github.token }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./main.exe
# asset_name: main.exe
# asset_content_type: application/octet-stream