Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ on: [push, pull_request]

jobs:
msys2-ucrt64:
if: false # build is broken, thus disabled, see #8264
if: true # can be used to temporarily disable the build
runs-on: windows-latest
timeout-minutes: 90
defaults:
run:
shell: msys2 {0}
Expand All @@ -18,11 +19,20 @@ jobs:
update: true
- name: Install dependencies
run: ./scripts/msys2-install-deps
- name: Build python venv
run: |
# msys2's python is externally managed (PEP 668), so pip-installed packages go into a venv.
# --system-site-packages: use the python packages installed via pacman.
python -m venv --system-site-packages env
. env/bin/activate
pip install pyinstaller==6.22.3
- name: Build
run: ./scripts/msys2-build
run: |
. env/bin/activate
./scripts/msys2-build
- name: Test
run: ./dist/borg.exe -V
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: borg-windows
path: dist/borg.exe
4 changes: 2 additions & 2 deletions scripts/msys2-build
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash

# build borg.exe
SETUPTOOLS_USE_DISTUTILS=stdlib pip install -e .
pip install -e .
pyinstaller -y scripts/borg.exe.spec

# build sdist and wheel in dist/...
SETUPTOOLS_USE_DISTUTILS=stdlib python -m build
python -m build
1 change: 0 additions & 1 deletion scripts/msys2-install-deps
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/bash

pacman -S --needed --noconfirm git mingw-w64-ucrt-x86_64-{toolchain,pkgconf,zstd,lz4,xxhash,openssl,python,cython,python-setuptools,python-wheel,python-build,python-pkgconfig,python-packaging,python-msgpack,python-pip}
pip install pyinstaller==6.3.0
Loading