paths and paths-ignore can not be used together, apparently #2
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: sdl2-examples | |
on: | |
push: | |
branches: | |
- '*' | |
paths: | |
- c++*/** | |
pull_request: | |
branches: | |
- '*' | |
paths: | |
- c++*/** | |
workflow_dispatch: | |
jobs: | |
cmake: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
tests_list: | |
- { folder: "c++11-cmake" } | |
- { folder: "c++14-cmake" } | |
- { folder: "c++17-cmake" } | |
- { folder: "c++20-cmake" } | |
- { folder: "c++23-cmake" } | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install_dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y libsdl2-dev ninja-build cmake | |
- name: build | |
run: | | |
cd ${{ matrix.tests_list.folder }} | |
cmake -S . -B build -G Ninja | |
ninja -C build | |
make: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
tests_list: | |
- { folder: "c++98" } | |
- { folder: "c++11" } | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install_dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y cmake curl gnupg libgmp-dev libsdl2-dev libsdl2-image-dev mono-devel mono-mcs mono-runtime mono-vbnc nasm ninja-build | |
curl -fsSL https://crystal-lang.org/install.sh | sudo bash -s -- --channel=stable | |
- name: build | |
run: | | |
cd ${{ matrix.tests_list.folder }} | |
make all |