-
Notifications
You must be signed in to change notification settings - Fork 0
97 lines (84 loc) · 2.28 KB
/
msys2.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: MSYS2
on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CC: /mingw64/bin/gcc
CXX: /mingw64/bin/g++
PACKAGER: "Ni Lab <[email protected]>"
jobs:
build-sleef:
name: Build Sleef
runs-on: windows-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
install: >-
git
make
patch
mingw-w64-x86_64-cmake
mingw-w64-x86_64-clang
mingw-w64-x86_64-toolchain
mingw-w64-x86_64-libwinpthread
- name: Build
shell: msys2 {0}
run: |
cd windows/mingw-w64-sleef-git
MAKEFLAGS="-j$(nproc)" MINGW_ARCH=MINGW64 makepkg-mingw
- name: "Upload binaries"
uses: actions/upload-artifact@v4
with:
name: mingw-w64-x86_64-sleef-git-package-msys2
path: ${{github.workspace}}/windows/mingw-w64-sleef-git/*.pkg.tar.*
build-libnacs:
name: Build libnacs
runs-on: windows-latest
strategy:
fail-fast: false
needs: build-sleef
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
install: >-
git
make
patch
mingw-w64-x86_64-cmake
mingw-w64-x86_64-clang
mingw-w64-x86_64-toolchain
mingw-w64-x86_64-intel-tbb
mingw-w64-x86_64-libwinpthread
mingw-w64-x86_64-llvm
mingw-w64-x86_64-openlibm
mingw-w64-x86_64-polly
mingw-w64-x86_64-yaml-cpp
mingw-w64-x86_64-zeromq
- name: Download Sleef
uses: actions/download-artifact@v4
with:
name: mingw-w64-x86_64-sleef-git-package-msys2
path: sleef-package
- name: Install Sleef
shell: msys2 {0}
run: |
pacman -U --noconfirm sleef-package/*.pkg.tar.*
- name: Build
shell: msys2 {0}
run: |
cd windows/mingw-w64-libnacs-git
MAKEFLAGS="-j$(nproc)" MINGW_ARCH=MINGW64 makepkg-mingw
- name: "Upload binaries"
uses: actions/upload-artifact@v4
with:
name: mingw-w64-x86_64-libnacs-git-package-msys2
path: ${{github.workspace}}/windows/mingw-w64-libnacs-git/*.pkg.tar.*