Skip to content

Commit 2798bde

Browse files
authored
Merge pull request #9 from arbCoding/devel
Windows and macOS workflows added
2 parents 5ed909b + 80164e3 commit 2798bde

8 files changed

Lines changed: 90 additions & 3782 deletions

File tree

.github/workflows/cmake-macos.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: macOS 13
2+
3+
on:
4+
push:
5+
branches: ["devel"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
jobs:
10+
build:
11+
runs-on: macos-13
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Configure CMake
17+
run: cmake --preset gh-coverage
18+
19+
- name: Build
20+
run: cmake --build ${{github.workspace}}/build/debug/gh-coverage
21+
22+
- name: Test
23+
working-directory: ${{github.workspace}}/build/debug/gh-coverage
24+
run: ctest

.github/workflows/cmake-windows.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
- uses: actions/checkout@v3
1515

1616
- name: Configure CMake
17-
run: cmake --preset gh-windows-release
17+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=20 -DCMAKE_CXX_STANDARD_REQUIRED=ON -DCMAKE_CXX_EXTENSIONS=OFF
1818

1919
- name: Build
20-
run: cmake --build ${{github.workspace}}/build/release/gh-windows
20+
run: cmake --build ${{github.workspace}}/build --config Release
2121

2222
- name: Test
23-
working-directory: ${{github.workspace}}/build/release/gh-windows
24-
run: ctest
23+
working-directory: ${{github.workspace}}/build
24+
run: ctest -C Release

README.org

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
#+exclude_tags: noexport
1212
#+creator: Emacs 29.1 (Org mode 9.7)
1313

14-
# [[https://github.com/arbCoding/sac-format/actions/workflows/cmake-windows.yml][https://github.com/arbCoding/sac-format/actions/workflows/cmake-windows.yml/badge.svg]]
14+
[[https://github.com/arbCoding/sac-format/actions/workflows/cmake-windows.yml][https://github.com/arbCoding/sac-format/actions/workflows/cmake-windows.yml/badge.svg]]
1515
[[https://github.com/arbCoding/sac-format/actions/workflows/cmake-ubuntu.yml][https://github.com/arbCoding/sac-format/actions/workflows/cmake-ubuntu.yml/badge.svg]]
16+
[[https://github.com/arbCoding/sac-format/actions/workflows/cmake-macos.yml][https://github.com/arbCoding/sac-format/actions/workflows/cmake-macos.yml/badge.svg]]
1617
[[https://app.codecov.io/gh/arbCoding/sac-format/tree/devel][https://codecov.io/gh/arbCoding/sac-format/graph/badge.svg]]
1718
@@html:<img alt="Lines of code" src="https://tokei.rs/b1/github/arbCoding/sac-format?category=code">@@
1819
@@html:<img alt="GitHub code size in bytes" src="https://img.shields.io/github/languages/code-size/arbCoding/sac-format">@@

docs/index.html

Lines changed: 51 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/sac-format_manual.pdf

0 Bytes
Binary file not shown.

src/docs/index.org

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
#+include: ./misc/settings.org
22

33
#+begin_export html
4-
<!--
54
<a href="https://github.com/arbCoding/sac-format/actions/workflows/cmake-windows.yml">
65
<img alt="Windows 2022 Build Status", src="https://github.com/arbCoding/sac-format/actions/workflows/cmake-windows.yml/badge.svg" />
76
</a>
8-
-->
97

108
<a href="https://github.com/arbCoding/sac-format/actions/workflows/cmake-ubuntu.yml">
119
<img alt="Ubuntu 22.04 Build Status", src="https://github.com/arbCoding/sac-format/actions/workflows/cmake-ubuntu.yml/badge.svg" />
1210
</a>
1311

12+
<a href="https://github.com/arbCoding/sac-format/actions/workflows/cmake-macos.yml">
13+
<img alt="macOS 13 Build Status", src="https://github.com/arbCoding/sac-format/actions/workflows/cmake-macos.yml/badge.svg" />
14+
</a>
15+
1416
<a href="https://codecov.io/gh/arbCoding/sac-format/" >
1517
<img alt="Code Coverage" src="https://codecov.io/gh/arbCoding/sac-format/graph/badge.svg" />
1618
</a>
@@ -72,7 +74,7 @@ running.
7274
*** Small
7375

7476
sac-format is *small*---in total (header + implementation--excluding comments)
75-
it's fewer than 1500 lines of code. Small size opens the door to using on any
77+
it's fewer than 2000 lines of code. Small size opens the door to using on any
7678
sort of hardware (old or new) and makes it easy to expand upon.
7779

7880
*** Documented

todo.org

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -51,30 +51,17 @@ simultaneously updating the double and float versions (hard to remember which is
5151
which).
5252
** DONE Use Enum class for lookup table, not string_view.
5353
** TODO CI/CD GitHub workflow
54-
*** TODO Testing
54+
*** DONE Testing
5555
**** DONE Ubuntu :linux:
56-
**** TODO Windows :windows:
57-
***** TODO Windows MSVC compilation
58-
Setup this up locally on HP Elitebook to troubleshoot. Once working, test on github.
59-
****** TODO Install MSVC (I think needs vs code?)
60-
***** TODO Windows MINGW compilation
61-
***** TODO CMake presets
62-
**** TODO macOS :macos:
56+
**** DONE Windows :windows:
57+
**** DONE macOS :macos:
6358
*** DONE Code Coverage
6459
*** TODO Analysis :analysis:
6560
**** DONE Code Analysis :code:
6661
**** TODO ReviewDog :misc:
6762
***** TODO Vale (spelling and grammar) :spelling:gammar:
68-
**** TODO Style :style:
69-
***** TODO Setup Uncrustify beautifier (need to tweak rules)
63+
**** DONE Style :style:
7064
***** DONE CPPLint workflow
71-
***** TODO Infer static analysis
72-
#+begin_src bash :eval no
73-
cmake --preset clang-release
74-
# Make sure to skip everything in the '_deps' folder!
75-
cp .inferconfig ./build/release/clang/.inferconfig && cd./build/release/clang
76-
infer run --compilation-database compile_commands.json
77-
#+end_src
7865
*** TODO Package for download
7966
I think ReviewDog has a yml that could work as an example for this action
8067
** DONE Documentation :documentation:

0 commit comments

Comments
 (0)