2021-11-04 17:05:13 -06:00
|
|
|
# Validates compilation of RetroArch binary
|
|
|
|
|
|
|
|
name: RetroArch CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
2022-07-01 00:43:08 -05:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-11-04 17:05:13 -06:00
|
|
|
jobs:
|
|
|
|
linux-c89: # Smoketest build using most restrictive compiler and default options
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Dependencies
|
2021-11-11 17:45:50 -07:00
|
|
|
run: |
|
|
|
|
sudo apt-get update -y
|
|
|
|
sudo apt-get install build-essential libxkbcommon-dev libx11-xcb-dev zlib1g-dev libfreetype6-dev libegl1-mesa-dev libgles2-mesa-dev libgbm-dev nvidia-cg-toolkit nvidia-cg-dev libavcodec-dev libsdl2-dev libsdl-image1.2-dev libxml2-dev yasm
|
2021-11-04 17:05:13 -06:00
|
|
|
- name: Checkout
|
2022-07-02 14:09:29 +02:00
|
|
|
uses: actions/checkout@v3
|
2021-11-04 17:05:13 -06:00
|
|
|
- name: Configure
|
|
|
|
run: ./configure
|
|
|
|
- name: Build
|
|
|
|
run: make C89_BUILD=1
|
2022-07-31 18:22:04 +09:00
|
|
|
- name: Build Debug
|
|
|
|
run: |
|
|
|
|
make clean # making sure we don't have leftovers from previous build
|
|
|
|
make DEBUG=1 GL_DEBUG=1 C89_BUILD=1
|