Browse Source

Update and rename ci_src_examples_linux.yml to linux.yml

pull/1357/head
Ray 4 years ago
committed by GitHub
parent
commit
ceea5cb99b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 60 additions and 18 deletions
  1. +0
    -18
      .github/workflows/ci_src_examples_linux.yml
  2. +60
    -0
      .github/workflows/linux.yml

+ 0
- 18
.github/workflows/ci_src_examples_linux.yml View File

@ -1,18 +0,0 @@
name: CI - Source & Examples - Linux
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- name: apt-update
run: sudo apt-get update -qq
- name: apt get glfw
run: 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: make src
run: cd src && make PLATFORM=PLATFORM_DESKTOP
- name: make examples
run: cd examples && make PLATFORM=PLATFORM_DESKTOP

+ 60
- 0
.github/workflows/linux.yml View File

@ -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

Loading…
Cancel
Save