-
Notifications
You must be signed in to change notification settings - Fork 39
42 lines (38 loc) · 1.22 KB
/
Pytorch2PaddleDocsTools-Release.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
name: Release
on:
push:
paths:
- 'Pytorch2PaddleDocsTools/**'
jobs:
Pytorch2PaddleDocsTools-build:
name: ${{ matrix.friendlyName }} ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
PythonVersion: [ '3.10' ]
os: [ macos-11, windows-2019 ]
arch: [ x64, arm64 ]
include:
- os: macos-11
friendlyName: macOS
asset_name: Pytorch2PaddleDocsTools-darwin
- os: windows-2019
friendlyName: Windows
asset_name: Pytorch2PaddleDocsTools-win32
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.PythonVersion }}
- run: pip install Pillow pyinstaller
- name: PyInstaller Windows
uses: sayyid5416/pyinstaller@main
with:
python_ver: ${{ matrix.PythonVersion }}
exe_path: ./dist/${{ matrix.friendlyName }}
spec: 'Pytorch2PaddleDocsTools/build.spec'
requirements: 'Pytorch2PaddleDocsTools/requirements.txt'
upload_exe_with_name: ${{ matrix.asset_name }}-${{ matrix.arch }}
options: --windowed, --onefile