-
-
Notifications
You must be signed in to change notification settings - Fork 38
50 lines (42 loc) · 1.06 KB
/
pyoxidizer.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
name: Build binaries using pyOxidizer
on:
push:
tags: ["*"]
workflow_dispatch:
env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
PIP_NO_PYTHON_VERSION_WARNING: 1
jobs:
build:
name: Build binary for ${{ matrix.runs-on }}
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # get correct version
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- run: pip install nox
- run: nox -e oxidize
- name: check binary
shell: bash
run: |
cd build/*/release/install/
./doc2dash --version
if: runner.os != 'Windows'
- name: check windows binary
shell: bash
run: |
cd build/*/release/install/
./doc2dash.exe --version
if: runner.os == 'Windows'
- uses: actions/upload-artifact@v2
with:
name: binaries
path: build/*