Mercurial > msvpvf
comparison .github/workflows/build.yml @ 50:0fa325f60f07 v1.2.1
Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
author | Paper <37962225+mrpapersonic@users.noreply.github.com> |
---|---|
date | Sun, 22 May 2022 03:52:39 -0400 |
parents | b283e2d60deb |
children | 01c605e78f48 |
comparison
equal
deleted
inserted
replaced
49:d14874c7ca98 | 50:0fa325f60f07 |
---|---|
3 on: | 3 on: |
4 push: | 4 push: |
5 pull_request: | 5 pull_request: |
6 | 6 |
7 jobs: | 7 jobs: |
8 build-win: | 8 build-win32: |
9 runs-on: windows-latest | |
10 steps: | |
11 - name: Setup MinGW | |
12 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 mkdir C:\MinGW | |
15 tar xvf mingw-get.tar.xz -C C:\MinGW | |
16 C:\MinGW\bin\mingw-get.exe install mingw32-base-bin | |
17 shell: pwsh | |
18 | |
19 - uses: actions/checkout@v2 | |
20 | |
21 - name: make | |
22 run: | | |
23 set PATH=C:\MinGW\bin;%PATH% | |
24 set CC=mingw32-gcc | |
25 mingw32-make | |
26 mingw32-make gui | |
27 strip msvpvf.exe | |
28 strip gui.exe | |
29 shell: cmd | |
30 | |
31 - name: Upload artifact | |
32 uses: actions/upload-artifact@v2 | |
33 with: | |
34 name: msvpvf-win32-${{ github.sha }} | |
35 path: | | |
36 LICENSE | |
37 gui.exe | |
38 msvpvf.exe | |
39 | |
40 build-win64: | |
9 runs-on: windows-latest | 41 runs-on: windows-latest |
10 defaults: | 42 defaults: |
11 run: | 43 run: |
12 shell: msys2 {0} | 44 shell: msys2 {0} |
13 strategy: | |
14 matrix: | |
15 include: | |
16 - { sys: mingw64, env: x86_64 } | |
17 - { sys: mingw32, env: i686 } | |
18 steps: | 45 steps: |
19 - name: Setup MSYS2 | 46 - name: Setup MSYS2 |
20 uses: msys2/setup-msys2@v2 | 47 uses: msys2/setup-msys2@v2 |
21 with: | 48 with: |
22 msystem: ${{matrix.sys}} | 49 msystem: mingw64 |
23 install: >- | 50 install: >- |
24 make | 51 make |
25 mingw-w64-${{matrix.env}}-clang | 52 mingw-w64-x86_64-clang |
26 | 53 |
27 - uses: actions/checkout@v2 | 54 - uses: actions/checkout@v2 |
28 | 55 |
29 - name: make | 56 - name: make |
30 run: | | 57 run: | |
35 strip gui.exe | 62 strip gui.exe |
36 | 63 |
37 - name: Upload artifact | 64 - name: Upload artifact |
38 uses: actions/upload-artifact@v2 | 65 uses: actions/upload-artifact@v2 |
39 with: | 66 with: |
40 name: msvpvf-win-${{matrix.env}}-${{ github.sha }} | 67 name: msvpvf-win64-${{ github.sha }} |
41 path: | | 68 path: | |
42 LICENSE | 69 LICENSE |
43 gui.exe | 70 gui.exe |
44 msvpvf.exe | 71 msvpvf.exe |
45 | 72 |