Package Manager: Auto select emulators that has roms present #1589
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test build | |
on: | |
pull_request: | |
paths-ignore: | |
- '**/README.md' | |
- 'website/' | |
jobs: | |
build: | |
name: Test build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install SDL libs | |
run: | | |
sudo apt-get update && sudo apt-get install libsdl1.2-dev libsdl-image1.2-dev libsdl-image1.2-dev libsdl-ttf2.0-dev cppcheck | |
- name: Install gtest manually | |
run: | | |
sudo apt-get install build-essential libgtest-dev cmake | |
cd /usr/src/gtest | |
sudo cmake CMakeLists.txt && sudo make | |
sudo cp /usr/src/gtest/lib/*.a /usr/lib | |
sudo ln -s /usr/lib/libgtest.a /usr/local/lib/libgtest.a | |
sudo ln -s /usr/lib/libgtest_main.a /usr/local/lib/libgtest_main.a | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Run static analysis | |
run: | | |
make static-analysis | |
- name: Test | |
shell: bash | |
run: | | |
GTEST_INCLUDE_DIR=/usr/src/gtest/include make test |