quickerNES/.github/workflows/make.yml

34 lines
817 B
YAML

name: Build and Run Tests
on:
pull_request:
branches: [ "main" ]
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Create build directory
run: mkdir build
- name: Installing meson and ninja
run: python3 -m pip install meson ninja
- name: Installing apt packages
run: sudo apt install libgtest-dev gcovr libtbb-dev libsdl2-dev libsdl2-image-dev
- name: Run meson configuration
run: meson setup build -DonlyOpenSource=true
- name: Building project
run: ninja -C build
- name: Running tests
run: ninja test -C build
- uses: actions/upload-artifact@v4
with:
name: meson-logs
path: build/meson-logs/