-
Notifications
You must be signed in to change notification settings - Fork 39
67 lines (56 loc) · 1.61 KB
/
windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Test the build on Windows; does not create any assets.
name: Windows 11
on: [push]
defaults:
run:
shell: msys2 {0}
jobs:
msys2-ucrt64:
runs-on: windows-latest
name: Windows 11
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: true
install: >-
curl
git
mingw-w64-ucrt-x86_64-gcc
mingw-w64-ucrt-x86_64-python
mingw-w64-ucrt-x86_64-gtkmm3
mingw-w64-ucrt-x86_64-boost
mingw-w64-ucrt-x86_64-sqlite3
mingw-w64-ucrt-x86_64-cmake
mingw-w64-ucrt-x86_64-python-matplotlib
mingw-w64-ucrt-x86_64-python-sympy
mingw-w64-ucrt-x86_64-github-cli
- name: Authenticate GitHub CLI
run: gh auth setup-git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@master
name: Checkout source
- name: Build
run: |
mkdir build
cd build
# Turn off searching Python in the registry, as that contains the
# windows Python which is not the MSYS python that we want to use.
cmake -DPython_FIND_REGISTRY=NEVER ..
ninja
ninja install
cpack
- name: Set version variables from output of cmake
run: |
VER=$(cat build/VERSION)
echo "VERSION=$VER" >> $GITHUB_ENV
- name: Upload installer
uses: actions/upload-artifact@v4
with:
name: cadabra2-win64.exe
path: build/cadabra2-${{ env.VERSION }}-win64.exe
retention-days: 2