-
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.
Merge pull request #37 from TheSlowGrowth/feat/replace-sprout-and-fix…
…-tests Replace `sprout` library, fix tests, modernize CI setup
- Loading branch information
Showing
2,975 changed files
with
404 additions
and
207,008 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 |
---|---|---|
|
@@ -29,16 +29,16 @@ jobs: | |
- name: Setup cmake | ||
uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: '3.20.x' | ||
cmake-version: '3.30.x' | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Configure | ||
run: cmake -S firmware -B firmware/build -G "Unix Makefiles" -D CMAKE_TOOLCHAIN_FILE="$(pwd)/lib/libDaisy/cmake/toolchains/stm32h750xx.cmake" -D TOOLCHAIN_PREFIX=$(which arm-none-eabi-gcc | sed -e "s/bin\/arm-none-eabi-gcc//") | ||
run: cmake -S firmware -B firmware/build -G "Unix Makefiles" -D CMAKE_TOOLCHAIN_FILE="$(pwd)/lib/libDaisy/cmake/toolchains/stm32h750xx.cmake" -D CMAKE_BUILD_TYPE=RelWithDebInfo -D TOOLCHAIN_PREFIX=$(which arm-none-eabi-gcc | sed -e "s/bin\/arm-none-eabi-gcc//") | ||
|
||
- name: Build | ||
run: cmake --build firmware/build | ||
|
||
|
@@ -53,7 +53,7 @@ jobs: | |
with: | ||
name: TapeLooper.bin | ||
path: firmware/build/TapeLooper.bin | ||
|
||
############################################################################### | ||
# builds the automated tests with clang; runs tests and exports results | ||
firmware-tests: | ||
|
@@ -69,12 +69,12 @@ jobs: | |
run: | | ||
cd firmware/tests | ||
make release | ||
- name: Run Tests | ||
run: | | ||
cd firmware/tests/build/bin | ||
./TapeLooper_gtest --gtest_output=xml:gtestresults.xml | ||
- name: Publish Test Results | ||
uses: EnricoMi/publish-unit-test-result-action@v1 | ||
if: always() | ||
|
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 |
---|---|---|
|
@@ -18,13 +18,13 @@ jobs: | |
############################################################################### | ||
# builds the plugin on windows | ||
testBuildWindows: | ||
runs-on: windows-latest | ||
runs-on: windows-2019 | ||
|
||
steps: | ||
- name: Setup cmake | ||
uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: '3.19.x' | ||
cmake-version: '3.30.x' | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
@@ -34,12 +34,15 @@ jobs: | |
- name: Configure | ||
run: | | ||
cmake.exe -G "Visual Studio 16 2019" -A x64 -B plugin/build -S plugin | ||
- name: Build | ||
run: | | ||
cmake --build plugin/build --config Release | ||
- name: Run Tests | ||
run: | | ||
plugin/build/Release/TapeLooperPlugin_Gtest.exe --gtest_output=xml:TestResults\gtestResults_windows.xml | ||
- name: Upload Test Results | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
|
@@ -64,12 +67,16 @@ jobs: | |
- name: Setup cmake | ||
uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: '3.19.x' | ||
cmake-version: '3.30.x' | ||
|
||
- uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: latest-stable | ||
|
||
- name: Select Xcode | ||
run: | | ||
sudo xcode-select --reset | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
|
@@ -78,12 +85,15 @@ jobs: | |
- name: Configure | ||
run: | | ||
cmake -G "Xcode" -B plugin/build -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" -S plugin | ||
- name: Build | ||
run: | | ||
cmake --build plugin/build --config Release | ||
- name: Run Tests | ||
run: | | ||
plugin/build/Release/TapeLooperPlugin_Gtest --gtest_output=xml:TestResults/gtestResults_macos.xml | ||
- name: Upload Test Results | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
|
@@ -108,7 +118,7 @@ jobs: | |
- name: Setup cmake | ||
uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: '3.19.x' | ||
cmake-version: '3.30.x' | ||
|
||
- name: Setup dependencies | ||
run: | | ||
|
@@ -122,12 +132,15 @@ jobs: | |
- name: Configure | ||
run: | | ||
cmake -G "Unix Makefiles" -B plugin/build -S plugin | ||
- name: Build | ||
run: | | ||
cmake --build plugin/build --config Release | ||
- name: Run Tests | ||
run: | | ||
plugin/build/TapeLooperPlugin_Gtest --gtest_output=xml:TestResults/gtestResults_ubuntu.xml | ||
- name: Upload Test Results | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
|
@@ -154,7 +167,7 @@ jobs: | |
|
||
steps: | ||
- name: Download Artifacts | ||
uses: actions/download-artifact@v2 | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: TestResults | ||
path: TestResults | ||
|
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,5 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/mirrors-clang-format | ||
rev: v18.1.8 | ||
hooks: | ||
- id: clang-format |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.