view .github/workflows/build.yml @ 37:b283e2d60deb v1.1

Minor changes to GitHub Actions workflow
author Paper <37962225+mrpapersonic@users.noreply.github.com>
date Sun, 17 Apr 2022 03:07:54 -0400
parents c517cf837d95
children 0fa325f60f07
line wrap: on
line source

name: msvpvf CI

on:
  push:
  pull_request:

jobs:
  build-win:
    runs-on: windows-latest
    defaults:
      run:
        shell: msys2 {0}
    strategy:
      matrix:
        include:
          - { sys: mingw64, env: x86_64 }
          - { sys: mingw32, env: i686 }
    steps:
    - name: Setup MSYS2
      uses: msys2/setup-msys2@v2
      with:
        msystem: ${{matrix.sys}}
        install: >-
          make
          mingw-w64-${{matrix.env}}-clang

    - uses: actions/checkout@v2

    - name: make
      run: |
        export CC=clang
        make
        make gui
        strip msvpvf.exe
        strip gui.exe

    - name: Upload artifact
      uses: actions/upload-artifact@v2
      with:
        name: msvpvf-win-${{matrix.env}}-${{ github.sha }}
        path: |
          LICENSE
          gui.exe
          msvpvf.exe

  build-mac:
    runs-on: macOS-latest
    steps:
    - name: Install "dependencies"
      run: brew install zip

    - uses: actions/checkout@v2

    - name: make
      run: | 
        make
        strip msvpvf
        zip msvpvf.zip msvpvf LICENSE

    - name: Upload artifact
      uses: actions/upload-artifact@v2
      with:
        name: msvpvf-osx-${{ github.sha }}
        path: |
          msvpvf.zip