Skip to content

Commit bec6141

Browse files
authored
Update test.yml
1 parent c7dc6cb commit bec6141

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

.github/workflows/test.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- main
77

88
jobs:
9-
build:
9+
build-ubuntu:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2
@@ -28,4 +28,27 @@ jobs:
2828
uses: actions/upload-artifact@v4
2929
with:
3030
name: bin
31-
path: bin
31+
path: bin
32+
build-mac:
33+
runs-on: osx-latest
34+
steps:
35+
- uses: actions/checkout@v2
36+
# setup python
37+
- name: Set up Python 3.8
38+
uses: actions/setup-python@v2
39+
with:
40+
python-version: 3.8
41+
- name: Build binaries
42+
run: |
43+
pip install -r requirements.txt
44+
pip install pyinstaller
45+
pyinstaller --onefile __main__.py
46+
- name: Move binaries
47+
run: |
48+
mkdir bin
49+
mv dist/__main__ bin
50+
- name: Upload artifact
51+
uses: actions/upload-artifact@v4
52+
with:
53+
name: bin
54+
path: bin

0 commit comments

Comments
 (0)