Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Fix #346: GHA: CLANG started failing #102

Fix #346: GHA: CLANG started failing

Fix #346: GHA: CLANG started failing #102

Workflow file for this run

name: Build (Linux)
on: [workflow_dispatch, push, pull_request]
env:
SFML_DIR: extern/sfml/linux
#!! None of these work here:
#!!... LD_LIBRARY_PATH: extern/sfml/${{ matrix.target }}/lib
#!!... LD_LIBRARY_PATH: ${{ env.CWD }}/extern/sfml/linux/lib
#!!... LD_LIBRARY_PATH: $CWD/extern/sfml/linux/lib
jobs:
build:
name: Multi-Build (GCC & CLANG, only on Linux yet!)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
cc: [clang++, g++]
target: [linux]
steps:
- uses: actions/checkout@v3
- name: Install SFML dependencies...
run: |
sudo apt install libgl-dev
# The rest is only needed for static builds:
sudo apt install libx11-dev
sudo apt install libxrandr-dev
sudo apt install libxcursor-dev
sudo apt install libxi-dev
sudo apt install libudev-dev
- name: Download & setup SFML/master...
run: ./tooling/sfml-setup ${{ matrix.target }}
- name: Build (Ubuntu only! Windows is being manually tested locally for now...)
run: make CC=${{ matrix.cc }} TOOLCHAIN=${{ matrix.target }}
- name: Smoke test - Set PATH for the SFML shared libs...
run: echo "LD_LIBRARY_PATH=${{ github.workspace }}/${{ env.SFML_DIR }}/lib" >> $GITHUB_ENV
- name: Smoke test - Start dummy headless X server...
# Already installed on the Ubuntu runner:
# run: sudo apt install xvfb
run: |
Xvfb :0 -ac &
sleep 5
echo "DISPLAY=:0" >> $GITHUB_ENV
- name: Smoke test...
run: |
./test/smoke