Skip to content

Commit

Permalink
add ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
obiltschnig committed Aug 29, 2023
1 parent 1431082 commit 4e3ab89
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,35 @@ jobs:
run: |
ssh ${{ secrets.MACCHINA_USER }}@web.macchina.io mkdir -p releases/sdk/windows/10/AMD64/
scp cmake-build\bin\Release\*.exe remote-clients.zip ${{ secrets.MACCHINA_USER }}@web.macchina.io:releases/sdk/windows/10/AMD64/
release_ubuntu2004:
runs-on: ubuntu-20.04
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Install Packages
run: sudo apt update && sudo apt install cmake ninja-build libssl-dev
-
name: Build
run: cmake -H. -Bcmake-build -GNinja && cmake --build cmake-build --target all
-
name: Strip
run: strip cmake-build/bin/*
-
name: GZip
run: |
(cd cmake-build/bin && tar cfz ../../remote-clients.tar.gz remote-*)
gzip cmake-build/bin/*
-
name: Install SSH Key
run: |
mkdir ~/.ssh
echo '${{ secrets.MACCHINA_IO_SSH_HOST_KEY }}' >~/.ssh/known_hosts
echo '${{ secrets.MACCHINA_SSH_KEY }}' >~/.ssh/id_rsa
-
name: Copy to Web Server
run: |
ssh ${{ secrets.MACCHINA_USER }}@web.macchina.io mkdir -p releases/sdk/ubuntu/20.04/x86_64
scp cmake-build\bin\*.gz remote-clients.tar.gz ${{ secrets.MACCHINA_USER }}@web.macchina.io:releases/sdk/ubuntu/20.04/x86_64

0 comments on commit 4e3ab89

Please sign in to comment.