-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from jtxa/ci-win-mac
CI: Add Windows MSYS2, MacOS and QA workflow
- Loading branch information
Showing
11 changed files
with
272 additions
and
93 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,15 @@ | ||
--- | ||
Checks: >- | ||
-*, | ||
abseil-*, | ||
portability-*, | ||
misc-*, | ||
-misc-no-recursion, | ||
-misc-non-private-member-variables-in-classes, | ||
-misc-redundant-expression, | ||
# All enabled checks shall be reported as error. | ||
WarningsAsErrors: "*" | ||
|
||
# Check all headers of the project. | ||
HeaderFilterRegex: '.*' |
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,54 @@ | ||
--- | ||
name: CI-Linux | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
name: Build and Test | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-22.04] | ||
compiler: | ||
- gcc-9 | ||
- gcc-10 | ||
- gcc-11 | ||
- clang-12 | ||
- clang-13 | ||
- clang-14 | ||
|
||
steps: | ||
- name: Install prerequisites | ||
run: >- | ||
sudo apt-get install -y | ||
libgcrypt20-dev | ||
${{ matrix.compiler }} | ||
cmake | ||
ninja-build | ||
doxygen | ||
graphviz | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Configure | ||
run: | | ||
export CXX=$(echo ${{ matrix.compiler }} | sed -E 's/^(g|clang)(cc)?/\1++/') | ||
cmake -G Ninja -S . -B build | ||
- name: Build | ||
working-directory: build | ||
run: ninja srecord-executables | ||
|
||
- name: Smoke test | ||
working-directory: build | ||
run: ninja srecord-executables-version | ||
|
||
- name: Build test prerequisites | ||
working-directory: build | ||
run: ninja prepare-test | ||
|
||
- name: Test | ||
working-directory: build | ||
run: ctest --output-on-failure --output-junit ctest.junit.xml |
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: CI-MacOS | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
name: Build and Test | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Install prerequisites | ||
run: >- | ||
brew install | ||
libgcrypt | ||
ninja | ||
doxygen | ||
graphviz | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Configure | ||
run: cmake -G Ninja -S . -B build | ||
|
||
- name: Build | ||
working-directory: build | ||
run: ninja srecord-executables | ||
|
||
- name: Smoke test | ||
working-directory: build | ||
run: ninja srecord-executables-version | ||
|
||
- name: Build test prerequisites | ||
working-directory: build | ||
run: ninja prepare-test | ||
|
||
- name: Test | ||
working-directory: build | ||
run: ctest --output-on-failure --output-junit ctest.junit.xml |
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,59 @@ | ||
--- | ||
name: CI-Windows | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
name: MSYS2 Build and Test | ||
runs-on: windows-latest | ||
|
||
defaults: | ||
run: | ||
shell: msys2 {0} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- sys: mingw64 | ||
env: x86_64 | ||
- sys: mingw32 | ||
env: i686 | ||
- sys: ucrt64 | ||
env: ucrt-x86_64 | ||
|
||
steps: | ||
- name: Install prerequisites | ||
uses: msys2/setup-msys2@v2 | ||
with: | ||
# cSpell:ignore msystem | ||
msystem: ${{ matrix.sys }} | ||
install: >- | ||
mingw-w64-${{ matrix.env }}-libgcrypt | ||
mingw-w64-${{ matrix.env }}-gcc | ||
mingw-w64-${{ matrix.env }}-cmake | ||
mingw-w64-${{ matrix.env }}-ninja | ||
mingw-w64-${{ matrix.env }}-doxygen | ||
mingw-w64-${{ matrix.env }}-graphviz | ||
diffutils | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Configure | ||
run: cmake -G Ninja -S . -B build | ||
|
||
- name: Build | ||
working-directory: build | ||
run: ninja srecord-executables | ||
|
||
- name: Smoke test | ||
working-directory: build | ||
run: ninja srecord-executables-version | ||
|
||
- name: Build test prerequisites | ||
working-directory: build | ||
run: ninja prepare-test | ||
|
||
- name: Test | ||
working-directory: build | ||
run: ctest --output-on-failure --output-junit ctest.junit.xml |
This file was deleted.
Oops, something went wrong.
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,91 @@ | ||
--- | ||
name: QA | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
name: Check source | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Install prerequisites | ||
run: >- | ||
sudo apt-get install -y | ||
libgcrypt20-dev | ||
clang-14 | ||
clang-tidy-14 | ||
cmake | ||
ninja-build | ||
doxygen | ||
graphviz | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Configure | ||
env: | ||
CXX: clang++-14 | ||
CXXFLAGS: >- | ||
-std=c++11 | ||
-pedantic | ||
-Wall | ||
SRecord_CMake_Flags: >- | ||
-D CMAKE_EXPORT_COMPILE_COMMANDS=ON | ||
run: | | ||
cmake -G Ninja -S . -B build ${SRecord_CMake_Flags} | ||
- name: Build | ||
working-directory: build | ||
run: ninja srecord-executables | ||
|
||
- name: Smoke test | ||
working-directory: build | ||
run: ninja srecord-executables-version | ||
|
||
- name: Build test prerequisites | ||
working-directory: build | ||
run: ninja prepare-test | ||
|
||
- name: Test | ||
working-directory: build | ||
run: ctest --output-on-failure --output-junit ctest.junit.xml | ||
|
||
- name: clang-tidy | ||
if: always() | ||
run: run-clang-tidy-14 -p build | ||
|
||
docs: | ||
name: Documentation | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Install prerequisites | ||
run: >- | ||
sudo apt-get install -y | ||
cmake | ||
ninja-build | ||
doxygen | ||
graphviz | ||
groff | ||
psutils | ||
ghostscript | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Configure | ||
run: cmake -G Ninja -S . -B build | ||
|
||
- name: man pages | ||
working-directory: build | ||
run: ninja man | ||
|
||
- name: PDF | ||
working-directory: build | ||
run: ninja doco | ||
|
||
- name: Doxygen | ||
working-directory: build | ||
run: ninja doxygen | ||
|
||
- name: Web Site | ||
working-directory: build | ||
run: ninja man-html web-site |
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 |
---|---|---|
|
@@ -116,6 +116,7 @@ words: | |
- compl | ||
- CSLEN | ||
- csum | ||
- CXXFLAGS | ||
- DABEDE | ||
- datarec | ||
- dbyte | ||
|
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
Oops, something went wrong.