name: Build for Windows 64-bit

on:
  push:
    branches:
      - master
      - 'release-**'

jobs:
  build:

    runs-on: ubuntu-latest
    
    container:
      image: docker://justdan96/tsmuxer_build:latest
      volumes:
      - /workspace:/github/workspace
    
    steps:
    - uses: actions/checkout@master
      name: checkout
      
    - run: rm -f bin/.gitkeep
      name: clean-bin-folder
      
    - run: ./scripts/rebuild_mxe_docker.sh
      name: build-for-windows
      
    - uses: actions/upload-artifact@master
      with:
         name: tsMuxer
         path: bin
      name: upload-artefact
