-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
122 changed files
with
4,804 additions
and
1,349 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
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,84 @@ | ||
name: ci-cross-arm | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
|
||
jobs: | ||
Test: | ||
if: "!contains(github.event.head_commit.message, '[skip ci]')" | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-22.04 | ||
cmake: | ||
- true | ||
task: | ||
- rpi3:build.cross | ||
- rpi3:build.cross.bare-metal | ||
- rpi4:build.cross | ||
- rpi4:build.cross.aarch64 | ||
- rpi4:build.cross.custom-toolchain | ||
- rpi4-vcpkg:build.cross | ||
include: | ||
- task: rpi3:build.cross | ||
install-cross-compiler: gcc-arm-linux-gnueabi g++-arm-linux-gnueabi gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf | ||
target: arm-linux-gnueabi | ||
- task: rpi3:build.cross.bare-metal | ||
install-cross-compiler: gcc-arm-none-eabi binutils-arm-none-eabi libnewlib-arm-none-eabi | ||
target: arm-none-eabi | ||
- task: rpi4:build.cross | ||
install-cross-compiler: g++-aarch64-linux-gnu gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu | ||
target: aarch64-linux-gnu | ||
- task: rpi4:build.cross.aarch64 | ||
install-cross-compiler: g++-aarch64-linux-gnu gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu | ||
target: aarch64-linux-gnu | ||
- task: rpi4:build.cross.custom-toolchain | ||
install-cross-compiler: g++-aarch64-linux-gnu gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu | ||
target: aarch64-linux-gnu | ||
- task: rpi4-vcpkg:build.cross | ||
install-cross-compiler: g++-aarch64-linux-gnu gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu | ||
target: aarch64-linux-gnu | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/vcpkg | ||
./build/vcpkg_installed | ||
${{ env.HOME }}/.cache/vcpkg/archives | ||
${{ env.XDG_CACHE_HOME }}/vcpkg/archives | ||
${{ env.LOCALAPPDATA }}\vcpkg\archives | ||
${{ env.APPDATA }}\vcpkg\archives | ||
key: ${{ runner.os }}-cross-${{ matrix.target }}-${{ env.BUILD_TYPE }}-${{ hashFiles('**/CMakeLists.txt') }}-${{ hashFiles('./vcpkg.json')}}-${{ matrix.cmake }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ env.BUILD_TYPE }}- | ||
- name: Setup Cpp | ||
uses: aminya/setup-cpp@v1 | ||
with: | ||
cmake: ${{ matrix.cmake }} | ||
ninja: true | ||
vcpkg: true | ||
conan: true | ||
cppcheck: true | ||
clangtidy: true | ||
task: true | ||
doxygen: true | ||
|
||
- name: Setup ARM (Cross) Compiler | ||
run: sudo apt-get install -y ${{ matrix.install-cross-compiler }} | ||
shell: bash | ||
|
||
- name: Build (Task) | ||
run: | | ||
task ${{ matrix.task }} | ||
env: | ||
CMAKE_GENERATOR: ${{ matrix.cmake_generator }} |
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,47 @@ | ||
name: docs | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
Test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Setup Cpp | ||
uses: aminya/setup-cpp@v1 | ||
with: | ||
cmake: true | ||
ninja: true | ||
task: true | ||
doxygen: true | ||
|
||
- name: Setup pandoc | ||
run: | | ||
wget https://github.com/jgm/pandoc/releases/download/3.1.2/pandoc-3.1.2-1-amd64.deb | ||
sudo dpkg -i pandoc-3.1.2-1-amd64.deb | ||
rm pandoc-3.1.2-1-amd64.deb | ||
- name: Build Documentation | ||
run: | | ||
git checkout main | ||
task docs | ||
# TODO Automatic deploys fail | ||
# - name: Deploy Documentation | ||
# uses: Cecilapp/GitHub-Pages-deploy@v3 | ||
# with: | ||
# build_dir: docs/build/html/ | ||
# branch: gh-pages | ||
# email: [email protected] | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
.cache/ | ||
test/build/ | ||
install/ | ||
test_install/build/ | ||
test_install/build/ | ||
build/ | ||
compile_commands.json | ||
.mypy_cache/ |
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,3 @@ | ||
[submodule "examples/cpp_vcpkg_project"] | ||
path = examples/cpp_vcpkg_project | ||
url = https://github.com/aminya/cpp_vcpkg_project |
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.