quickerNES/.github/workflows/make.yml

34 lines
845 B
YAML
Raw Normal View History

2024-01-20 06:10:55 +00:00
name: Build and Run Tests
on:
pull_request:
branches: [ "main" ]
2024-01-25 06:15:48 +00:00
push:
branches: [ "main" ]
2024-01-20 06:10:55 +00:00
jobs:
build:
2024-01-20 19:54:21 +00:00
runs-on: ubuntu-latest
2024-01-20 06:10:55 +00:00
steps:
2024-03-05 18:17:13 +00:00
- uses: actions/checkout@v4
2024-01-20 06:13:03 +00:00
with:
submodules: recursive
2024-01-20 07:07:40 +00:00
- name: Create build directory
run: mkdir build
2024-01-20 07:11:45 +00:00
- name: Installing meson and ninja
run: python3 -m pip install meson ninja
2024-03-17 10:41:31 +00:00
- name: Installing apt packages
run: sudo apt install libgtest-dev gcovr libtbb-dev libsdl2-dev libsdl2-image-dev
2024-01-20 07:07:40 +00:00
- name: Run meson configuration
run: meson setup build -DonlyOpenSource=true -DenableArkanoidInputs=true
2024-01-20 07:11:03 +00:00
- name: Building project
run: ninja -C build
2024-01-20 07:13:07 +00:00
- name: Running tests
2024-01-20 09:23:50 +00:00
run: ninja test -C build
- uses: actions/upload-artifact@v4
with:
name: meson-logs
2024-01-20 19:57:33 +00:00
path: build/meson-logs/