mirror of
https://github.com/borgbackup/borg.git
synced 2025-03-12 07:08:47 +00:00
Add new Windows build scripts and CI with GitHub and MSYS2 [backport]
Fixes #7105
This commit is contained in:
parent
4b27ab2fbd
commit
e8dd5c449e
3 changed files with 36 additions and 0 deletions
27
.github/workflows/windows.yml
vendored
Normal file
27
.github/workflows/windows.yml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
name: Windows CI
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
msys2-ucrt64:
|
||||||
|
runs-on: windows-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: msys2 {0}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- uses: msys2/setup-msys2@v2
|
||||||
|
with:
|
||||||
|
msystem: UCRT64
|
||||||
|
update: true
|
||||||
|
- name: Install dependencies
|
||||||
|
run: ./scripts/msys2-install-deps
|
||||||
|
- name: Build
|
||||||
|
run: ./scripts/msys2-build
|
||||||
|
- name: Test
|
||||||
|
run: ./dist/borg.exe -V
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: borg-windows
|
||||||
|
path: dist/borg.exe
|
5
scripts/msys2-build
Normal file
5
scripts/msys2-build
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
python setup.py build_ext --inplace
|
||||||
|
python setup.py bdist_wheel
|
||||||
|
pyinstaller -y scripts/borg.exe.spec
|
4
scripts/msys2-install-deps
Normal file
4
scripts/msys2-install-deps
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/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-pkgconfig,python-packaging,python-msgpack,python-pip}
|
||||||
|
pip install pyinstaller
|
Loading…
Add table
Reference in a new issue