Skip to content

Add linux CI script #471

Add linux CI script

Add linux CI script #471

Workflow file for this run

name: Tophat workflow
on: [push]
jobs:
windows_build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: ilammy/msvc-dev-cmd@v1
- name: Build with CMake+MSbuild
run: |
git submodule init
git submodule update --remote
./msbuild.bat
linux_build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install SSH key
run: apt install -y openssh-client
uses: shimataro/ssh-key-action@v2
with:

Check failure on line 22 in .github/workflows/package.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/package.yml

Invalid workflow file

You have an error in your yaml syntax on line 22
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 [email protected]:www/tophat-web/dl/tophat-linux
rsync --rsh="ssh -o StrictHostKeyChecking=no" tophat.exe [email protected]:www/tophat-web/dl/tophat-windows.exe
- name: On push script
ssh -o 'StrictHostKeyChecking no' [email protected] /home/marek/on-tophat-push