-
Notifications
You must be signed in to change notification settings - Fork 47
41 lines (35 loc) · 977 Bytes
/
artifacts.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
name: Build binary artifacts
on:
push:
tags:
- "v*"
jobs:
binaries:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ] # windows-latest,
runs-on: ${{ matrix.os }}
permissions:
# NOTE: Needed to save artifacts the repository.
contents: write
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools pyinstaller
pip install .
- name: Build the binary
run: |
make -C bindist
cd bindist && echo "DIST_FILE=`make dist-name | tr -d '\n'`" >> $GITHUB_ENV
- name: Release binary artifacts
uses: softprops/[email protected]
with:
files: bindist/${{ env.DIST_FILE }}