Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

92 rindas
3.0 KiB

pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
  1. name: Linux
  2. on:
  3. push:
  4. pull_request:
  5. release:
  6. types: [published]
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. strategy:
  11. fail-fast: false
  12. max-parallel: 1
  13. matrix:
  14. bits: [32, 64]
  15. include:
  16. - bits: 32
  17. ARCH: "i386"
  18. ARCH_NAME: "i386"
  19. COMPILER_PATH: "/user/bin"
  20. - bits: 64
  21. ARCH: "x86_64"
  22. ARCH_NAME: "amd64"
  23. COMPILER_PATH: "/user/bin"
  24. env:
  25. RELEASE_NAME: raylib-dev_linux_${{ matrix.ARCH_NAME }}
  26. steps:
  27. - name: Checkout code
  28. uses: actions/checkout@master
  29. - name: Setup Release Version
  30. run: |
  31. echo "::set-env name=RELEASE_NAME::raylib-${{ github.event.release.tag_name }}_linux_${{ matrix.ARCH_NAME }}"
  32. shell: bash
  33. if: github.event_name == 'release' && github.event.action == 'published'
  34. - name: Setup Environment
  35. run: |
  36. sudo apt-get update -qq
  37. sudo apt-get install gcc-multilib
  38. sudo apt-get install -y --no-install-recommends libglfw3 libglfw3-dev libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libxext-dev libxfixes-dev
  39. mkdir build
  40. cd build
  41. mkdir ${{ env.RELEASE_NAME }}
  42. cd ${{ env.RELEASE_NAME }}
  43. mkdir include
  44. mkdir lib
  45. cd ../../../raylib
  46. # ${{ matrix.ARCH }}-linux-gnu-gcc -v
  47. # TODO: Support 32bit (i386) shared library building
  48. - name: Build Library
  49. run: |
  50. cd src
  51. make PLATFORM=PLATFORM_DESKTOP CC=gcc RAYLIB_LIBTYPE=STATIC RAYLIB_RELEASE_PATH="../build/${{ env.RELEASE_NAME }}/lib" CFLAGS="-m32"
  52. # make PLATFORM=PLATFORM_DESKTOP CC=gcc RAYLIB_LIBTYPE=SHARED RAYLIB_RELEASE_PATH="../build/${{ env.RELEASE_NAME }}/lib" -B
  53. cd ..
  54. if: matrix.bits == 32
  55. - name: Build Library
  56. run: |
  57. cd src
  58. make PLATFORM=PLATFORM_DESKTOP CC=gcc RAYLIB_LIBTYPE=STATIC RAYLIB_RELEASE_PATH="../build/${{ env.RELEASE_NAME }}/lib"
  59. make PLATFORM=PLATFORM_DESKTOP CC=gcc RAYLIB_LIBTYPE=SHARED RAYLIB_RELEASE_PATH="../build/${{ env.RELEASE_NAME }}/lib" -B
  60. cd ..
  61. if: matrix.bits == 64
  62. - name: Generate Artifacts
  63. run: |
  64. cp -v ./src/raylib.h ./build/${{ env.RELEASE_NAME }}/include
  65. cd build
  66. tar -czvf ${{ env.RELEASE_NAME }}.tar.gz ${{ env.RELEASE_NAME }}
  67. - name: Upload Artifacts
  68. uses: actions/upload-artifact@v2
  69. with:
  70. name: ${{ env.RELEASE_NAME }}.tar.gz
  71. path: ./build/${{ env.RELEASE_NAME }}.tar.gz
  72. - name: Upload Artifact to Release
  73. uses: actions/upload-release-asset@v1.0.1
  74. env:
  75. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  76. with:
  77. upload_url: ${{ github.event.release.upload_url }}
  78. asset_path: ./build/${{ env.RELEASE_NAME }}.tar.gz
  79. asset_name: ${{ env.RELEASE_NAME }}.tar.gz
  80. asset_content_type: application/gzip
  81. if: github.event_name == 'release' && github.event.action == 'published'