-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub actions for CMake projects (#40)
Created YAML files for 2015 and 2021. Updated existing files for consistency.
- Loading branch information
Showing
5 changed files
with
94 additions
and
17 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Advent of Code 2015 | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- .github/workflows/2015.yml | ||
- 2015/** | ||
pull_request: | ||
paths: | ||
- .github/workflows/2015.yml | ||
- 2015/** | ||
|
||
jobs: | ||
build-2015: | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- windows-latest | ||
|
||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
working-directory: "2015" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Configure | ||
run: cmake -B build | ||
|
||
- name: Build | ||
run: cmake --build build -j 4 | ||
|
||
- name: Test | ||
run: ctest --test-dir build -j 4 |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Advent of Code 2021 | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- .github/workflows/2021.yml | ||
- 2021/** | ||
pull_request: | ||
paths: | ||
- .github/workflows/2021.yml | ||
- 2021/** | ||
|
||
jobs: | ||
build-2021: | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- windows-latest | ||
|
||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
working-directory: "2021" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Configure | ||
run: cmake -B build | ||
|
||
- name: Build | ||
run: cmake --build build -j 4 | ||
|
||
- name: Test | ||
run: ctest --test-dir build -j 4 |