annotate .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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
1 name: msvpvf CI
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
2
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
3 on:
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
4 push:
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
5 pull_request:
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
6
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
7 jobs:
50
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
8 build-win32:
57
01c605e78f48 Statically build Win32 and Win64 (#5)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 50
diff changeset
9 name: Windows i686 (32-bit)
50
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
10 runs-on: windows-latest
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
11 steps:
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
12 - name: Setup MinGW
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
13 run: |
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
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
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
15 mkdir C:\MinGW
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
16 tar xvf mingw-get.tar.xz -C C:\MinGW
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
17 C:\MinGW\bin\mingw-get.exe install mingw32-base-bin
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
18 shell: pwsh
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
19
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
20 - uses: actions/checkout@v2
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
21
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
22 - name: make
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
23 run: |
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
24 set PATH=C:\MinGW\bin;%PATH%
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
25 set CC=mingw32-gcc
57
01c605e78f48 Statically build Win32 and Win64 (#5)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 50
diff changeset
26 mingw32-make CC_FLAGS=-static
01c605e78f48 Statically build Win32 and Win64 (#5)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 50
diff changeset
27 mingw32-make gui CC_FLAGS=-static
50
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
28 strip msvpvf.exe
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
29 strip gui.exe
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
30 shell: cmd
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
31
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
32 - name: Upload artifact
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
33 uses: actions/upload-artifact@v2
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
34 with:
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
35 name: msvpvf-win32-${{ github.sha }}
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
36 path: |
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
37 LICENSE
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
38 gui.exe
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
39 msvpvf.exe
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
40
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
41 build-win64:
57
01c605e78f48 Statically build Win32 and Win64 (#5)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 50
diff changeset
42 name: Windows amd64 (64-bit)
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
43 runs-on: windows-latest
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
44 defaults:
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
45 run:
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
46 shell: msys2 {0}
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
47 steps:
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
48 - name: Setup MSYS2
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
49 uses: msys2/setup-msys2@v2
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
50 with:
50
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
51 msystem: mingw64
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
52 install: >-
23
ee96b991e033 Update build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 22
diff changeset
53 make
50
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
54 mingw-w64-x86_64-clang
37
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
55
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
56 - uses: actions/checkout@v2
37
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
57
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
58 - name: make
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
59 run: |
32
c517cf837d95 export CC
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 23
diff changeset
60 export CC=clang
57
01c605e78f48 Statically build Win32 and Win64 (#5)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 50
diff changeset
61 make CC_FLAGS=-static
01c605e78f48 Statically build Win32 and Win64 (#5)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 50
diff changeset
62 make gui CC_FLAGS=-static
22
767ff60628bd Update build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 21
diff changeset
63 strip msvpvf.exe
767ff60628bd Update build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 21
diff changeset
64 strip gui.exe
37
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
65
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
66 - name: Upload artifact
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
67 uses: actions/upload-artifact@v2
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
68 with:
50
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
69 name: msvpvf-win64-${{ github.sha }}
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
70 path: |
37
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
71 LICENSE
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
72 gui.exe
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
73 msvpvf.exe
37
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
74
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
75 build-mac:
57
01c605e78f48 Statically build Win32 and Win64 (#5)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 50
diff changeset
76 name: macOS (64-bit)
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
77 runs-on: macOS-latest
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
78 steps:
37
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
79 - name: Install "dependencies"
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
80 run: brew install zip
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
81
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
82 - uses: actions/checkout@v2
37
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
83
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
84 - name: make
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
85 run: |
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
86 make
22
767ff60628bd Update build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 21
diff changeset
87 strip msvpvf
37
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
88 zip msvpvf.zip msvpvf LICENSE
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
89
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
90 - name: Upload artifact
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
91 uses: actions/upload-artifact@v2
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
92 with:
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
93 name: msvpvf-osx-${{ github.sha }}
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
94 path: |
37
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
95 msvpvf.zip