add auto-build files for github
[miniglut] / .github / workflows / build_win_msvc6.yml
1 name: Windows MSVC 6.0 build
2
3 on:
4   push:
5   pull_request:
6   workflow_dispatch:
7
8 jobs:
9   build:
10     runs-on: windows-latest
11
12     steps:
13     - uses: actions/checkout@v3
14
15     - name: cache toolchain
16       id: cache-tc
17       uses: actions/cache@v3
18       with:
19         path: |
20           msvc6lt
21           vc6varsgh.bat
22         key: msvc6lt-cache1
23
24     - name: install toolchain
25       if: steps.cache-tc.outputs.cache-hit != 'true'
26       run: |
27         C:\msys64\usr\bin\wget.exe -q http://mutantstargoat.com/~nuclear/msvc6.zip
28         7z x msvc6.zip
29         C:\msys64\usr\bin\wget.exe -q http://mutantstargoat.com/~nuclear/vc6fullvarsgh.bat
30
31     - name: build miniglut
32       shell: cmd
33       run: |
34         call vc6fullvarsgh.bat
35         msdev miniglut.dsp /MAKE "miniglut - Win32 Release"
36         mkdir miniglut-win32-msvc
37         copy Release\miniglut.lib miniglut-win32-msvc
38
39     - name: build test
40       shell: cmd
41       run: |
42         call vc6fullvarsgh.bat
43         msdev test.dsp /MAKE "test - Win32 Release"
44         copy Release\test.exe miniglut-win32-msvc
45
46     - uses: actions/upload-artifact@v3
47       with:
48         name: miniglut-win32-msvc
49         path: miniglut-win32-msvc
50
51 # vi:ts=2 sts=2 sw=2 expandtab: