~mrms/tophat

8bef3b661c329093007588c4e25d07f7dcd18c1a — Marek Ma┼íkarinec 3 months ago 35b1d64 main
Add linux CI script

Signed-off-by: Marek Maškarinec <marek@mrms.cz>
1 files changed, 23 insertions(+), 0 deletions(-)

M .github/workflows/package.yml
M .github/workflows/package.yml => .github/workflows/package.yml +23 -0
@@ 11,3 11,26 @@ jobs:
        git submodule init
        git submodule update --remote
        ./msbuild.bat

  Build:
    runs-on: ubuntu-20.04
    - uses: actions/checkout@v2
    - name: Install SSH key
      run: apt install -y openssh-client
      uses: shimataro/ssh-key-action@v2
        with:
          key: ${{ secrets.SSH_KEY }}
    - name: Update submodules
      run: |
        git submodule init
        git submodule update --remote
    - name: Build linux
      run: make
    - name: Build windows
      run: make cross
    - name: Deploy
      run: |
        rsync --rsh="ssh -o StrictHostKeyChecking=no" tophat marek@tophat2d.dev:www/tophat-web/dl/tophat-linux
        rsync --rsh="ssh -o StrictHostKeyChecking=no" tophat.exe marek@tophat2d.dev:www/tophat-web/dl/tophat-windows.exe
    - name: On push script
        ssh -o 'StrictHostKeyChecking no' marek@tophat2d.dev /home/marek/on-tophat-push