on:
  push:
    branches:
      - osagnostic
      - gh-actions
    tags:
      - '*'

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [macos-latest, macos-10.15]
        include:
          - os: macos-latest
          - os: macos-10.15
    steps:
    - uses: actions/checkout@v2
      with:
        ref: 'gh-actions'
    - name: Build
      run: sh ./bundledApps/MAKEFILE.sh -q
    - name: Install screenshot utility
      run: pip3 install screenshot
    - name: Run
      working-directory: /Applications
      run: |
        pwd
        ls
        open -a /Applications/WAIL.app
        sleep 10
    - name: Take screenshot
      run: screenshot WAIL --filename wail-${{matrix.os}}.png --shadow
    - name: Upload screenshot
      uses: actions/upload-artifact@v2
      with:
        name: wail-screenshot-${{matrix.os}}
        path: wail-${{matrix.os}}.png
    - name: Download artifact
      uses: actions/download-artifact@v2
      with:
        name: wail-screenshot-${{matrix.os}}
on:
  push:
    branches:
      - osagnostic
      - gh-actions
    tags:
      - '*'

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [macos-latest, macos-10.15]
        include:
          - os: macos-latest
          - os: macos-10.15
          - os: macos-11.0
    steps:
    - uses: actions/checkout@v2
      with:
        ref: 'gh-actions'
    - name: Build
      run: sh ./bundledApps/MAKEFILE.sh -q
    - name: Install screenshot utility
      run: pip3 install screenshot
    - name: Run
      working-directory: /Applications
      run: |
        pwd
        ls
        open -a /Applications/WAIL.app
        sleep 10
    - name: Take screenshot
      run: screenshot WAIL --filename wail-${{matrix.os}}.png --shadow
    - name: Upload screenshot
      uses: actions/upload-artifact@v2
      with:
        name: wail-screenshot-${{matrix.os}}
        path: wail-${{matrix.os}}.png
    - name: Download artifact
      uses: actions/download-artifact@v2
      with:
        name: wail-screenshot-${{matrix.os}}
Add explicit big sur to action
Add explicit big sur to action
