build-linux64.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name: build linux64 binaries
  2. on:
  3. workflow_dispatch:
  4. jobs:
  5. linux64:
  6. name: build
  7. runs-on: ubuntu-latest
  8. steps:
  9. - uses: actions/checkout@v3
  10. - name: setup libraries
  11. run: sudo apt install libsdl2-dev libsdl2-image-dev zlib1g-dev libogg-dev libvorbis-dev libopenal-dev libcurl4
  12. shell: bash
  13. - name: prepare production build
  14. run: sed 's@//#define PRODUCTION@#define PRODUCTION@' source/src/cube.h
  15. shell: bash
  16. - name: make
  17. run: |
  18. cd source/src
  19. make clean
  20. make
  21. make install
  22. cd ../..
  23. shell: bash
  24. - name: prepare artifact
  25. run: |
  26. mkdir dist
  27. cp bin_unix/native_client dist/linux_64_client
  28. cp bin_unix/native_server dist/linux_64_server
  29. echo "you need to chmod 750 linux_64_*" > dist/info-make-executable.txt
  30. shell: bash
  31. - name: upload artifact
  32. uses: actions/upload-artifact@v3
  33. with:
  34. name: linux64-binaries
  35. path: dist