Update CHANGELOG with deprecation #2029
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: examples | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
skip_duplicate: | |
name: 'Skip Job?' | |
continue-on-error: true | |
runs-on: ubuntu-latest | |
steps: | |
- id: skip_check | |
uses: fkirc/skip-duplicate-actions@master | |
with: | |
paths: '["src/adiar/**", "example/**"]' | |
outputs: | |
should_skip: ${{ steps.skip_check.outputs.should_skip }} | |
run-example: | |
name: 'Example: ${{ matrix.name }}' | |
runs-on: ubuntu-latest | |
needs: skip_duplicate | |
if: ${{ needs.skip_duplicate.outputs.should_skip != 'true' }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: 'Queens' | |
exec: queens | |
N: '1 2 3 4 5 6 7 8 9 10 11 12 13 14' | |
- name: 'Knights Tour' | |
exec: knights_tour | |
N: '1 2 3 4 5' | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
- name: Apt | install boost | |
run: | | |
sudo apt update | |
sudo apt install libboost-all-dev | |
- name: CMake | build | |
run: | | |
cmake -E make_directory ${{runner.workspace}}/build | |
cd ${{runner.workspace}}/build | |
cmake $GITHUB_WORKSPACE -D CMAKE_BUILD_TYPE=Release && cmake --build . --target ${{ matrix.exec }} | |
- name: Run example | |
working-directory: ${{runner.workspace}}/build | |
run: for n in ${{ matrix.N }}; do ./example/${{ matrix.exec }} -N $n -M 1024; done | |
run-dummy: | |
name: 'Example: ${{ matrix.name }}' | |
runs-on: ubuntu-latest | |
needs: skip_duplicate | |
if: ${{ needs.skip_duplicate.outputs.should_skip == 'true' }} | |
strategy: | |
matrix: | |
include: | |
- name: 'Queens' | |
- name: 'Knights Tour' | |
steps: | |
- name: Echo skip | |
run: | | |
echo "Running examples is skipped" | |