annotate .github/workflows/build.yml @ 75:336c60ab4638

Added tag v1.2.2 for changeset 61fa41e1678f
author Paper <mrpapersonic@gmail.com>
date Sun, 01 Oct 2023 03:01:15 -0400
parents 03b1a105d70e
children
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: |
62
495a0733b2c0 Check if MinGW directory exists before unzipping
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 61
diff changeset
20 if (!(Test-Path "C:\MinGW")) {
495a0733b2c0 Check if MinGW directory exists before unzipping
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 61
diff changeset
21 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"
495a0733b2c0 Check if MinGW directory exists before unzipping
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 61
diff changeset
22 Expand-Archive -Path mingw-get.zip -DestinationPath C:\MinGW
495a0733b2c0 Check if MinGW directory exists before unzipping
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 61
diff changeset
23 Remove-Item -Path mingw-get.zip
495a0733b2c0 Check if MinGW directory exists before unzipping
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 61
diff changeset
24 C:\MinGW\bin\mingw-get.exe install mingw32-base-bin
495a0733b2c0 Check if MinGW directory exists before unzipping
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 61
diff changeset
25 }
50
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
26 shell: pwsh
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 - 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
29
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
30 - name: make
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
31 run: |
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
32 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
33 set CC=mingw32-gcc
65
03b1a105d70e actions: CC_FLAGS->CFLAGS
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 62
diff changeset
34 mingw32-make CFLAGS=-static
03b1a105d70e actions: CC_FLAGS->CFLAGS
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 62
diff changeset
35 mingw32-make gui CFLAGS=-static
50
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
36 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
37 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
38 shell: cmd
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
39
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
40 - 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
41 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
42 with:
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
43 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
44 path: |
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
45 LICENSE
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
46 gui.exe
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
47 msvpvf.exe
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
48
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
49 build-win64:
57
01c605e78f48 Statically build Win32 and Win64 (#5)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 50
diff changeset
50 name: Windows amd64 (64-bit)
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
51 runs-on: windows-latest
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
52 defaults:
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
53 run:
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
54 shell: msys2 {0}
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
55 steps:
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
56 - name: Setup MSYS2
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
57 uses: msys2/setup-msys2@v2
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
58 with:
50
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
59 msystem: mingw64
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
60 install: >-
23
ee96b991e033 Update build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 22
diff changeset
61 make
50
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
62 mingw-w64-x86_64-clang
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 - uses: actions/checkout@v2
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: make
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
67 run: |
32
c517cf837d95 export CC
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 23
diff changeset
68 export CC=clang
65
03b1a105d70e actions: CC_FLAGS->CFLAGS
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 62
diff changeset
69 make CFLAGS=-static
03b1a105d70e actions: CC_FLAGS->CFLAGS
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 62
diff changeset
70 make gui CFLAGS=-static
22
767ff60628bd Update build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 21
diff changeset
71 strip msvpvf.exe
767ff60628bd Update build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 21
diff changeset
72 strip gui.exe
37
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
73
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
74 - name: Upload artifact
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
75 uses: actions/upload-artifact@v2
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
76 with:
50
0fa325f60f07 Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 37
diff changeset
77 name: msvpvf-win64-${{ github.sha }}
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
78 path: |
37
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
79 LICENSE
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
80 gui.exe
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
81 msvpvf.exe
37
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
82
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
83 build-mac:
57
01c605e78f48 Statically build Win32 and Win64 (#5)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 50
diff changeset
84 name: macOS (64-bit)
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
85 runs-on: macOS-latest
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
86 steps:
37
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
87 - name: Install "dependencies"
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
88 run: brew install zip
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 - uses: actions/checkout@v2
37
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
91
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
92 - name: make
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
93 run: |
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
94 make
22
767ff60628bd Update build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 21
diff changeset
95 strip msvpvf
37
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
96 zip msvpvf.zip msvpvf LICENSE
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
97
21
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
98 - name: Upload artifact
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
99 uses: actions/upload-artifact@v2
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
100 with:
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
101 name: msvpvf-osx-${{ github.sha }}
1125d4a53a99 Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff changeset
102 path: |
37
b283e2d60deb Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 32
diff changeset
103 msvpvf.zip