-
Notifications
You must be signed in to change notification settings - Fork 18
57 lines (48 loc) · 1.26 KB
/
msys-test.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
name: MSYS2 Setup
on:
push:
branches:
- win
paths:
- .github/workflows/msys-test.yml
jobs:
build:
runs-on: windows-latest
env:
GMP_VERSION: 6.3.0
steps:
- uses: msys2/setup-msys2@v2
with:
release: false
msystem: MINGW64
install: >-
m4
base-devel
mingw-w64-x86_64-gcc
- name: Download GMP Source
run: |
Invoke-WebRequest -Uri https://ftpmirror.gnu.org/gmp/gmp-${env:GMP_VERSION}.tar.xz -OutFile .
& "C:\Program Files\Git\usr\bin\tar.exe" -xf gmp-${env:GMP_VERSION}.tar.xz
- name: Configure
shell: msys2 {0}
run: |
cd gmp-${GMP_VERSION}
./configure --enable-shared --disable-static --enable-fat --enable-cxx
- name: Make
shell: msys2 {0}
run: |
cd gmp-${GMP_VERSION}
make
- name: Check libs
shell: bash
run: |
ls -l gmp-${GMP_VERSION}/.libs
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: win-x64-native
path: |
gmp-${{ env.GMP_VERSION }}/.libs/libgmp-10.dll
gmp-${{ env.GMP_VERSION }}/.libs/libgmpxx-6.dll
gmp-${{ env.GMP_VERSION }}/gmp.h
gmp-${{ env.GMP_VERSION }}/gmpxx.h