Mercurial > msvpvf
annotate .github/workflows/build.yml @ 52:cf9a14755472
Use Win32 libraries to copy files
author | Paper <37962225+mrpapersonic@users.noreply.github.com> |
---|---|
date | Sun, 22 May 2022 04:20:11 -0400 |
parents | 0fa325f60f07 |
children | 01c605e78f48 |
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: |
0fa325f60f07
Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
37
diff
changeset
|
9 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
|
10 steps: |
0fa325f60f07
Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
37
diff
changeset
|
11 - 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
|
12 run: | |
0fa325f60f07
Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
37
diff
changeset
|
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 |
0fa325f60f07
Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
37
diff
changeset
|
14 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
|
15 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
|
16 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
|
17 shell: pwsh |
0fa325f60f07
Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
37
diff
changeset
|
18 |
0fa325f60f07
Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
37
diff
changeset
|
19 - 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
|
20 |
0fa325f60f07
Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
37
diff
changeset
|
21 - name: make |
0fa325f60f07
Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
37
diff
changeset
|
22 run: | |
0fa325f60f07
Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
37
diff
changeset
|
23 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
|
24 set CC=mingw32-gcc |
0fa325f60f07
Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
37
diff
changeset
|
25 mingw32-make |
0fa325f60f07
Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
37
diff
changeset
|
26 mingw32-make gui |
0fa325f60f07
Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
37
diff
changeset
|
27 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
|
28 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
|
29 shell: cmd |
0fa325f60f07
Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
37
diff
changeset
|
30 |
0fa325f60f07
Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
37
diff
changeset
|
31 - 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
|
32 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
|
33 with: |
0fa325f60f07
Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
37
diff
changeset
|
34 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
|
35 path: | |
0fa325f60f07
Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
37
diff
changeset
|
36 LICENSE |
0fa325f60f07
Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
37
diff
changeset
|
37 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 msvpvf.exe |
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 build-win64: |
21
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
41 runs-on: windows-latest |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
42 defaults: |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
43 run: |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
44 shell: msys2 {0} |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
45 steps: |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
46 - name: Setup MSYS2 |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
47 uses: msys2/setup-msys2@v2 |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
48 with: |
50
0fa325f60f07
Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
37
diff
changeset
|
49 msystem: mingw64 |
21
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
50 install: >- |
23
ee96b991e033
Update build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
22
diff
changeset
|
51 make |
50
0fa325f60f07
Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
37
diff
changeset
|
52 mingw-w64-x86_64-clang |
37
b283e2d60deb
Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
32
diff
changeset
|
53 |
21
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
54 - uses: actions/checkout@v2 |
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 - name: make |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
57 run: | |
32
c517cf837d95
export CC
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
23
diff
changeset
|
58 export CC=clang |
21
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
59 make |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
60 make gui |
22
767ff60628bd
Update build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
21
diff
changeset
|
61 strip msvpvf.exe |
767ff60628bd
Update build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
21
diff
changeset
|
62 strip gui.exe |
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: Upload artifact |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
65 uses: actions/upload-artifact@v2 |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
66 with: |
50
0fa325f60f07
Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
37
diff
changeset
|
67 name: msvpvf-win64-${{ github.sha }} |
21
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
68 path: | |
37
b283e2d60deb
Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
32
diff
changeset
|
69 LICENSE |
21
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
70 gui.exe |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
71 msvpvf.exe |
37
b283e2d60deb
Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
32
diff
changeset
|
72 |
21
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
73 build-mac: |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
74 runs-on: macOS-latest |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
75 steps: |
37
b283e2d60deb
Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
32
diff
changeset
|
76 - name: Install "dependencies" |
b283e2d60deb
Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
32
diff
changeset
|
77 run: brew install zip |
b283e2d60deb
Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
32
diff
changeset
|
78 |
21
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
79 - uses: actions/checkout@v2 |
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 - name: make |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
82 run: | |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
83 make |
22
767ff60628bd
Update build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
21
diff
changeset
|
84 strip msvpvf |
37
b283e2d60deb
Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
32
diff
changeset
|
85 zip msvpvf.zip msvpvf LICENSE |
b283e2d60deb
Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
32
diff
changeset
|
86 |
21
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
87 - name: Upload artifact |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
88 uses: actions/upload-artifact@v2 |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
89 with: |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
90 name: msvpvf-osx-${{ github.sha }} |
1125d4a53a99
Create build.yml
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
diff
changeset
|
91 path: | |
37
b283e2d60deb
Minor changes to GitHub Actions workflow
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
32
diff
changeset
|
92 msvpvf.zip |