Skip to content

Commit eca79a4

Browse files
committed
Try adding Windows CI support
1 parent 3bcac6a commit eca79a4

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/ob2sync-app.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@ jobs:
1919
with:
2020
python-version: 3.8
2121
- name: Install dependencies
22+
if: matrix.os == 'macos-latest'
2223
run: |
2324
python -m pip install --upgrade pip
24-
pip install flake8
25+
pip install flake8 gnureadline
2526
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
2627
- name: Install dependencies
28+
if: matrix.os != 'macos-latest'
29+
shell: bash
2730
run: |
2831
python -m pip install --upgrade pip
2932
pip install flake8

.github/workflows/ob2sync-pr-app.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,17 @@ jobs:
4444
- name: Generate binary
4545
if: matrix.os == 'windows-latest'
4646
run: |
47-
pyinstaller --onefile --noconfirm --distpath ./ob2sync-windows.exe --clean ob2sync_linux_x86.spec
47+
pyinstaller --onefile --noconfirm --distpath ./ob2sync-windows.exe --clean ob2sync_win.spec
4848
- name: Generate binary
49-
if: matrix.os != 'windows-latest'
49+
if: matrix.os == 'ubuntu-latest'
5050
run: |
5151
pyinstaller --onefile --noconfirm --distpath ./ --clean ob2sync_linux_x86.spec
52+
- name: Generate binary
53+
if: matrix.os == 'windows-latest'
54+
run: |
55+
pyinstaller --onefile --noconfirm --distpath ./ --clean ob2sync_macos.spec
5256
- name: Package binary
53-
if: matrix.os == 'ubuntu-latest'
57+
if: matrix.os == 'macos-latest'
5458
run: |
5559
chmod +x ob2sync
5660
mv ob2sync ob2sync-linux-x86

0 commit comments

Comments
 (0)