Skip to content

Commit 3a4de91

Browse files
committed
Try add macos ci
1 parent 8081f25 commit 3a4de91

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/main.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,27 @@ jobs:
5454
with:
5555
name: obs-websocket-http-Ubuntu
5656
path: dist/obs-websocket-http*
57+
macos-build:
58+
name: 'macOS Latest'
59+
runs-on: macos-latest
60+
if: contains(github.event.head_commit.message, '[skip ci]') != true
61+
steps:
62+
- name: Checkout Repository
63+
uses: actions/checkout@v2
64+
65+
- name: Install Python 3.9
66+
uses: actions/setup-python@v2
67+
with:
68+
python-version: 3.9
69+
70+
- name: Install Python Prerequisites
71+
run: pip install -r requirements.txt pyinstaller
72+
73+
- name: Run PyInstaller
74+
run: pyinstaller main.py --onefile --name obs-websocket-http --icon data/irltk_icon.ico
75+
76+
- name: Upload Artifacts
77+
uses: actions/upload-artifact@v2
78+
with:
79+
name: obs-websocket-http-MacOS
80+
path: dist/obs-websocket-http*

0 commit comments

Comments
 (0)