-
Notifications
You must be signed in to change notification settings - Fork 4
68 lines (56 loc) · 1.59 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
name: Windows-Msys2
on:
workflow_dispatch:
push:
paths:
- 'src/**'
- 'test/**'
- '.github/workflows/msys2.yml'
jobs:
build:
runs-on: windows-latest
steps:
- uses: msys2/setup-msys2@v2
- name: pacman ctemplate build dependencies
shell: msys2 {0}
run: pacman -S --noconfirm autoconf automake libtool make python3
- name: checkout ctemplate
uses: actions/checkout@v2
with:
repository: olafvdspek/ctemplate
ref: ctemplate-2.4
- name: build ctemplate
shell: msys2 {0}
run: |
./autogen.sh
./configure
make
make install
rm -Rf *
- name: pacman llvm/clang
id: LLVM
shell: msys2 {0}
run: |
pacman -S --noconfirm mingw-w64-x86_64-llvm mingw-w64-x86_64-clang
echo "::set-output name=LLVM_ROOT::/c/mys64/mingw/"
- uses: actions/checkout@v2
- name: premake gmake
run: |
cd premake
premake4 --file="premake/premake4.lua" --llvm-root="${{steps.LLVM.outputs.LLVM_ROOT}}" gmake
- name: make config=releasewithdll
shell: msys2 {0}
run: |
cd project/gmake
make config=releasewithdll verbose=1
cd ../../bin/gmake/ReleaseWithDLL
./ccccc_test
LD_LIBRARY_PATH=/usr/local/lib ./ccccc --help
- name: make config=release
shell: msys2 {0}
run: |
cd project/gmake
make config=release verbose=1
cd ../../bin/gmake/Release
./ccccc_test
#LD_LIBRARY_PATH=/usr/local/lib ./ccccc --help