From ae1600bad88da53afbac25ca85f175748f0d39b9 Mon Sep 17 00:00:00 2001 From: flowtron Date: Tue, 28 Mar 2023 18:07:04 +0200 Subject: [PATCH] Create build-linux64.yml --- .github/workflows/build-linux64.yml | 42 +++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/build-linux64.yml diff --git a/.github/workflows/build-linux64.yml b/.github/workflows/build-linux64.yml new file mode 100644 index 00000000..dd8c3392 --- /dev/null +++ b/.github/workflows/build-linux64.yml @@ -0,0 +1,42 @@ +name: build linux64 binaries + +on: + workflow_dispatch: + +jobs: + linux64: + name: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: setup libraries + run: sudo apt install libsdl2-dev libsdl2-image-dev zlib1g-dev libogg-dev libvorbis-dev libopenal-dev libcurl4 + shell: bash + + - name: prepare production build + run: sed 's@//#define PRODUCTION@#define PRODUCTION@' source/src/cube.h + shell: bash + + - name: make + run: | + cd source/src + make clean + make + make install + cd ../.. + shell: bash + + - name: prepare artifact + run: | + mkdir dist + cp bin_unix/native_client dist/linux_64_client + cp bin_unix/native_server dist/linux_64_server + echo "you need to chmod 750 linux_64_*" > dist/info-make-executable.txt + shell: bash + + - name: upload artifact + uses: actions/upload-artifact@v3 + with: + name: linux64-binaries + path: dist