-
Notifications
You must be signed in to change notification settings - Fork 5
38 lines (37 loc) · 1.12 KB
/
package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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
run: apt install -y openssh-client
- name: Install SSH key
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 [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
run: ssh -o 'StrictHostKeyChecking no' [email protected] /home/marek/on-tophat-push