Mercurial > msvpvf
comparison .github/workflows/build.yml @ 57:01c605e78f48
Statically build Win32 and Win64 (#5)
author | Paper <37962225+mrpapersonic@users.noreply.github.com> |
---|---|
date | Wed, 20 Jul 2022 21:31:26 -0400 |
parents | 0fa325f60f07 |
children | 8feb66207b99 |
comparison
equal
deleted
inserted
replaced
56:0d62f49c1948 | 57:01c605e78f48 |
---|---|
4 push: | 4 push: |
5 pull_request: | 5 pull_request: |
6 | 6 |
7 jobs: | 7 jobs: |
8 build-win32: | 8 build-win32: |
9 name: Windows i686 (32-bit) | |
9 runs-on: windows-latest | 10 runs-on: windows-latest |
10 steps: | 11 steps: |
11 - name: Setup MinGW | 12 - name: Setup MinGW |
12 run: | | 13 run: | |
13 curl -L -o mingw-get.tar.xz https://sourceforge.net/projects/mingw/files/Installer/mingw-get/mingw-get-0.6.2-beta-20131004-1/mingw-get-0.6.2-mingw32-beta-20131004-1-bin.zip/download # https://osdn.net/projects/mingw/downloads/68260/mingw-get-0.6.3-mingw32-pre-20170905-1-bin.tar.xz | 14 curl -L -o mingw-get.tar.xz https://sourceforge.net/projects/mingw/files/Installer/mingw-get/mingw-get-0.6.2-beta-20131004-1/mingw-get-0.6.2-mingw32-beta-20131004-1-bin.zip/download # https://osdn.net/projects/mingw/downloads/68260/mingw-get-0.6.3-mingw32-pre-20170905-1-bin.tar.xz |
20 | 21 |
21 - name: make | 22 - name: make |
22 run: | | 23 run: | |
23 set PATH=C:\MinGW\bin;%PATH% | 24 set PATH=C:\MinGW\bin;%PATH% |
24 set CC=mingw32-gcc | 25 set CC=mingw32-gcc |
25 mingw32-make | 26 mingw32-make CC_FLAGS=-static |
26 mingw32-make gui | 27 mingw32-make gui CC_FLAGS=-static |
27 strip msvpvf.exe | 28 strip msvpvf.exe |
28 strip gui.exe | 29 strip gui.exe |
29 shell: cmd | 30 shell: cmd |
30 | 31 |
31 - name: Upload artifact | 32 - name: Upload artifact |
36 LICENSE | 37 LICENSE |
37 gui.exe | 38 gui.exe |
38 msvpvf.exe | 39 msvpvf.exe |
39 | 40 |
40 build-win64: | 41 build-win64: |
42 name: Windows amd64 (64-bit) | |
41 runs-on: windows-latest | 43 runs-on: windows-latest |
42 defaults: | 44 defaults: |
43 run: | 45 run: |
44 shell: msys2 {0} | 46 shell: msys2 {0} |
45 steps: | 47 steps: |
54 - uses: actions/checkout@v2 | 56 - uses: actions/checkout@v2 |
55 | 57 |
56 - name: make | 58 - name: make |
57 run: | | 59 run: | |
58 export CC=clang | 60 export CC=clang |
59 make | 61 make CC_FLAGS=-static |
60 make gui | 62 make gui CC_FLAGS=-static |
61 strip msvpvf.exe | 63 strip msvpvf.exe |
62 strip gui.exe | 64 strip gui.exe |
63 | 65 |
64 - name: Upload artifact | 66 - name: Upload artifact |
65 uses: actions/upload-artifact@v2 | 67 uses: actions/upload-artifact@v2 |
69 LICENSE | 71 LICENSE |
70 gui.exe | 72 gui.exe |
71 msvpvf.exe | 73 msvpvf.exe |
72 | 74 |
73 build-mac: | 75 build-mac: |
76 name: macOS (64-bit) | |
74 runs-on: macOS-latest | 77 runs-on: macOS-latest |
75 steps: | 78 steps: |
76 - name: Install "dependencies" | 79 - name: Install "dependencies" |
77 run: brew install zip | 80 run: brew install zip |
78 | 81 |