Skip to content

Commit

Permalink
Add linux CI script
Browse files Browse the repository at this point in the history
Signed-off-by: Marek Maškarinec <[email protected]>
  • Loading branch information
marekmaskarinec committed Jan 29, 2024
1 parent 35b1d64 commit ea52fef
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Tophat workflow
on: [push]
jobs:
MakePkg-Msbuild:
windows_build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -11,3 +11,29 @@ jobs:
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: sudo apt install -y openssh-client
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- 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 tophat [email protected]:www/tophat-web/dl/tophat-linux
rsync tophat.exe [email protected]:www/tophat-web/dl/tophat-windows.exe
- name: On push script
run: ssh [email protected] /home/marek/on-tophat-push

0 comments on commit ea52fef

Please sign in to comment.