Skip to content

opengl working

opengl working #8

Workflow file for this run

name: Ubuntu build
jobs:
ubuntu-build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt install libgl1-mesa-dev
sudo apt install libx11-dev
sudo apt install libxrandr-dev
sudo apt install libudev-dev
sudo apt-get install libxcursor-dev
- name: Make file executable
run: chmod +x build.sh
- name: Building with cmake/make
run: bash build.sh
- name: Check 'app' build success.
run: |
if [ -e build/app ]; then
echo "App executable exists."
else
echo "App executable not found. Failing the CI test."
exit 1
fi
- name: Check 'test' build success
run: |
if [ -e build/test ]; then
echo "test executable exists."
else
echo "test executable not found. Failing the CI test."
exit 1
fi
- name: Run tests
run: |
cd build
./test > test_output.txt 2>&1
- name: Check test results
run: |
cd build
if [ -e test_output.txt ]; then
if grep -q "failed" test_output.txt; then
echo "Tests failed."
exit 1
else
echo "Tests passed."
fi
fi