-
Notifications
You must be signed in to change notification settings - Fork 130
34 lines (32 loc) · 969 Bytes
/
pyinstaller.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
name: PyInstaller
on:
schedule:
- cron: "0 15 6 * *"
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Python
uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Install
run: |
python -m venv venv
venv/Scripts/pip install pyinstaller
venv/Scripts/pip install .
- name: Make exe
run: |
echo "from cutadapt.__main__ import main_cli" > script.py
echo "sys.exit(main_cli())" >> script.py
venv/Scripts/pyinstaller -F --hidden-import=cutadapt._match_tables -n cutadapt script.py
- name: Run it
run: dist/cutadapt.exe --version
- name: Test multicore
run: ( echo ">read" && echo "ACGT" ) | dist/cutadapt.exe -j 2 --quiet -
- uses: actions/upload-artifact@v3
with:
name: cutadapt-exe
path: dist/cutadapt.exe