Mercurial > msvpvf
comparison .github/workflows/build.yml @ 36:4c5f3d8d31e1
Merge pull request #2 from mrpapersonic/actions
Add GitHub Actions CI
| author | Paper <37962225+mrpapersonic@users.noreply.github.com> |
|---|---|
| date | Sun, 17 Apr 2022 02:58:48 -0400 |
| parents | c517cf837d95 |
| children | b283e2d60deb |
comparison
equal
deleted
inserted
replaced
| 20:bf872a9c70d9 | 36:4c5f3d8d31e1 |
|---|---|
| 1 name: msvpvf CI | |
| 2 | |
| 3 on: | |
| 4 push: | |
| 5 pull_request: | |
| 6 | |
| 7 jobs: | |
| 8 build-win: | |
| 9 runs-on: windows-latest | |
| 10 defaults: | |
| 11 run: | |
| 12 shell: msys2 {0} | |
| 13 strategy: | |
| 14 matrix: | |
| 15 include: | |
| 16 - { sys: mingw64, env: x86_64 } | |
| 17 - { sys: mingw32, env: i686 } | |
| 18 steps: | |
| 19 - name: Setup MSYS2 | |
| 20 uses: msys2/setup-msys2@v2 | |
| 21 with: | |
| 22 msystem: ${{matrix.sys}} | |
| 23 install: >- | |
| 24 make | |
| 25 mingw-w64-${{matrix.env}}-clang | |
| 26 - uses: actions/checkout@v2 | |
| 27 - name: make | |
| 28 run: | | |
| 29 export CC=clang | |
| 30 make | |
| 31 make gui | |
| 32 strip msvpvf.exe | |
| 33 strip gui.exe | |
| 34 - name: Upload artifact | |
| 35 uses: actions/upload-artifact@v2 | |
| 36 with: | |
| 37 name: msvpvf-win-${{matrix.env}}-${{ github.sha }} | |
| 38 path: | | |
| 39 gui.exe | |
| 40 msvpvf.exe | |
| 41 build-mac: | |
| 42 runs-on: macOS-latest | |
| 43 steps: | |
| 44 - uses: actions/checkout@v2 | |
| 45 - name: make | |
| 46 run: | | |
| 47 make | |
| 48 strip msvpvf | |
| 49 gzip -k msvpvf | |
| 50 - name: Upload artifact | |
| 51 uses: actions/upload-artifact@v2 | |
| 52 with: | |
| 53 name: msvpvf-osx-${{ github.sha }} | |
| 54 path: | | |
| 55 msvpvf.gz |
