annotate .github/workflows/build.yml @ 61:61fa41e1678f v1.2.2

curl to PowerShell tools, favor zip file over tar.xz
author Paper <37962225+mrpapersonic@users.noreply.github.com>
date Thu, 21 Jul 2022 01:22:47 -0400
parents 06d8f805e8f0
children 495a0733b2c0
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:
59
8feb66207b99 Cache MinGW for x86 builds
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 57
diff changeset
12 - name: Cache MinGW
8feb66207b99 Cache MinGW for x86 builds
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 57
diff changeset
13 uses: actions/cache@v3
8feb66207b99 Cache MinGW for x86 builds
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 57
diff changeset
14 with:
8feb66207b99 Cache MinGW for x86 builds
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 57
diff changeset
15 path: C:\MinGW
8feb66207b99 Cache MinGW for x86 builds
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 57
diff changeset
16 key: MinGW
8feb66207b99 Cache MinGW for x86 builds
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 57
diff changeset
17
50
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
18 - 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
19 run: |
61
61fa41e1678f curl to PowerShell tools, favor zip file over tar.xz
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 60
diff changeset
20 Invoke-WebRequest -OutFile mingw-get.zip "https://osdn.net/dl/mingw/mingw-get-0.6.3-mingw32-pre-20170905-1-bin.zip" -UserAgent "curl/7.55.1"
61fa41e1678f curl to PowerShell tools, favor zip file over tar.xz
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 60
diff changeset
21 Expand-Archive -Path mingw-get.zip -DestinationPath C:\MinGW
61fa41e1678f curl to PowerShell tools, favor zip file over tar.xz
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 60
diff changeset
22 Remove-Item -Path mingw-get.zip
50
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
23 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
24 shell: pwsh
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
25
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
26 - 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
27
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
28 - name: make
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
29 run: |
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
30 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
31 set CC=mingw32-gcc
57
01c605e78f48 Statically build Win32 and Win64 (#5)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 50
diff changeset
32 mingw32-make CC_FLAGS=-static
01c605e78f48 Statically build Win32 and Win64 (#5)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 50
diff changeset
33 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
34 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
35 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
36 shell: cmd
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
37
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
38 - 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
39 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
40 with:
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
41 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
42 path: |
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
43 LICENSE
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
44 gui.exe
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
45 msvpvf.exe
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
46
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
47 build-win64:
57
01c605e78f48 Statically build Win32 and Win64 (#5)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 50
diff changeset
48 name: Windows amd64 (64-bit)
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
49 runs-on: windows-latest
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
50 defaults:
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
51 run:
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
52 shell: msys2 {0}
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
53 steps:
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
54 - name: Setup MSYS2
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
55 uses: msys2/setup-msys2@v2
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
56 with:
50
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
57 msystem: mingw64
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
58 install: >-
23
ee96b991e033 Update build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 22
diff changeset
59 make
50
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
60 mingw-w64-x86_64-clang
37
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
61
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
62 - uses: actions/checkout@v2
37
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
63
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
64 - name: make
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
65 run: |
32
c517cf837d95 export CC
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 23
diff changeset
66 export CC=clang
57
01c605e78f48 Statically build Win32 and Win64 (#5)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 50
diff changeset
67 make CC_FLAGS=-static
01c605e78f48 Statically build Win32 and Win64 (#5)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 50
diff changeset
68 make gui CC_FLAGS=-static
22
767ff60628bd Update build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 21
diff changeset
69 strip msvpvf.exe
767ff60628bd Update build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 21
diff changeset
70 strip gui.exe
37
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
71
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
72 - name: Upload artifact
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
73 uses: actions/upload-artifact@v2
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
74 with:
50
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
75 name: msvpvf-win64-${{ github.sha }}
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
76 path: |
37
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
77 LICENSE
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
78 gui.exe
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
79 msvpvf.exe
37
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
80
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
81 build-mac:
57
01c605e78f48 Statically build Win32 and Win64 (#5)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 50
diff changeset
82 name: macOS (64-bit)
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
83 runs-on: macOS-latest
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
84 steps:
37
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
85 - name: Install "dependencies"
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
86 run: brew install zip
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
87
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
88 - uses: actions/checkout@v2
37
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: make
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
91 run: |
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
92 make
22
767ff60628bd Update build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 21
diff changeset
93 strip msvpvf
37
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
94 zip msvpvf.zip msvpvf LICENSE
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
95
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
96 - name: Upload artifact
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
97 uses: actions/upload-artifact@v2
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
98 with:
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
99 name: msvpvf-osx-${{ github.sha }}
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
100 path: |
37
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
101 msvpvf.zip