diff options
| author | Ray <[email protected]> | 2020-08-17 21:02:56 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-08-17 21:02:56 +0200 |
| commit | ceea5cb99b079c91f482090bb37e59533bf35e68 (patch) | |
| tree | d7c017157cfd60b9b04f9ad89e837a75cd4051af /.github/workflows/linux.yml | |
| parent | 62302b1f71d9f2ae266b7b1761078c458fcfaeac (diff) | |
| download | raylib-ceea5cb99b079c91f482090bb37e59533bf35e68.tar.gz raylib-ceea5cb99b079c91f482090bb37e59533bf35e68.zip | |
Update and rename ci_src_examples_linux.yml to linux.yml
Diffstat (limited to '.github/workflows/linux.yml')
| -rw-r--r-- | .github/workflows/linux.yml | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 00000000..80fbf1c5 --- /dev/null +++ b/.github/workflows/linux.yml @@ -0,0 +1,60 @@ +name: CI - Source & Examples - Linux + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + max-parallel: 1 + matrix: + bits: [32, 64] + include: + - bits: 32 + CFLAGS: -m32 + ARCH: i386 + - bits: 64 + CFLAGS: -m64 + ARCH: amd64 + + env: + CFLAGS: ${{ matrix.CFLAGS }}: + + steps: + - name: Checkout code + uses: actions/checkout@master + + - name: Update System + run: sudo apt-get update -qq + + - name: Setup Environment + run: | + mkdir build + cd build + mkdir raylib_3.1_linux_${{ matrix.ARCH }} + cd raylib_3.1_linux_${{ matrix.ARCH }} + mkdir include + mkdir lib + cd ../../raylib + 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 + + - name: Build Library + run: | + cd src + make PLATFORM=PLATFORM_DESKTOP CC=gcc RAYLIB_LIBTYPE=STATIC RAYLIB_RELEASE_PATH="../../build/raylib_3.1_linux_${{ matrix.ARCH }}/lib + make PLATFORM=PLATFORM_DESKTOP CC=gcc RAYLIB_LIBTYPE=SHARED RAYLIB_RELEASE_PATH="../../build/raylib_3.1_linux_${{ matrix.ARCH }}/lib + cd .. + + - name: Generate artifacts + run: | + cd .. + copy /Y src/raylib.h ../../build/raylib_3.1_linux_${{ matrix.ARCH }}/include + cd ../build + tar -czvf raylib_3.1_linux_${{ matrix.ARCH }}.tar.gz raylib_3.1_linux_${{ matrix.ARCH }} + + - uses: actions/upload-artifact@v2 + with: + name: raylib_3.1_linux_${{ matrix.ARCH }}.tar.gz + path: raylib_3.1_linux_${{ matrix.ARCH }}.tar.gz + |
