From c9d2f00855985558cba22d0e0c357afc13c99a17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ma=C5=A1karinec?= Date: Mon, 29 Jan 2024 20:25:58 +0100 Subject: [PATCH] Add linux CI script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marek Maškarinec --- .github/workflows/package.yml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 3850d95b..6f02085d 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -1,7 +1,7 @@ name: Tophat workflow on: [push] jobs: - MakePkg-Msbuild: + windows_build: runs-on: windows-latest steps: - uses: actions/checkout@v2 @@ -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 packages + run: sudo apt install -y openssh-client mesa-common-dev xorg-dev libxi-dev libxcursor-dev mingw-w64 + - 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 marek@tophat2d.dev:www/tophat-web/dl/tophat-linux + rsync tophat.exe marek@tophat2d.dev:www/tophat-web/dl/tophat-windows.exe + - name: On push script + run: ssh marek@tophat2d.dev /home/marek/on-tophat-push