forked from candle-usb/candleLight_fw
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'candle-usb:master' into master
- Loading branch information
Showing
27 changed files
with
1,075 additions
and
395 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,53 @@ | ||
name: compile | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-24.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
release: | ||
- "ubuntu:20.04" | ||
- "ubuntu:22.04" | ||
- "ubuntu:24.04" | ||
- "ubuntu:rolling" | ||
- "debian:oldstable-slim" | ||
- "debian:stable-slim" | ||
- "debian:testing-slim" | ||
- "debian:unstable-slim" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Prepare ${{ matrix.release }} container | ||
run: | | ||
podman version | ||
podman run --name stable -di --userns=keep-id:uid=1000,gid=1000 -v "$PWD":/home -w /home ${{ matrix.release }} bash | ||
podman exec -i stable uname -a | ||
podman exec -i stable id | ||
podman exec -i -u root stable apt update | ||
podman exec -e DEBIAN_FRONTEND='noninteractive' -i -u root stable apt install -o APT::Install-Suggests=false -qy \ | ||
clang \ | ||
cmake \ | ||
gcc-arm-none-eabi \ | ||
git \ | ||
make | ||
- name: Configure & Build with arm-none-eabi-gcc | ||
env: | ||
toolchain: arm-none-eabi-gcc | ||
run: | | ||
podman exec -i stable cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=cmake/${toolchain}.cmake -B build-${toolchain} | ||
podman exec -i stable cmake --build build-${toolchain} | ||
- name: Show logs | ||
if: ${{ failure() }} | ||
run: | | ||
for log in build-*/CMakeFiles/{CMakeOutput.log,CMakeConfigureLog.yaml}; do \ | ||
if [ -e ${log} ]; then \ | ||
echo "---------------- ${log} ----------------"; \ | ||
cat ${log}; \ | ||
fi; \ | ||
done |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/.ccls-cache/ | ||
/.idea/ | ||
/.vscode/ | ||
/Debug/ | ||
|
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
# find and set DFU_SUFFIX_EXECUTABLE | ||
|
||
find_program ( DFU_SUFFIX_EXECUTABLE | ||
NAMES dfu-suffix | ||
DOC "dfu-suffix executable" | ||
) | ||
|
||
mark_as_advanced ( DFU_SUFFIX_EXECUTABLE ) | ||
|
||
# find and set DFU_SUFFIX_EXECUTABLE | ||
|
||
find_program(DFU_SUFFIX_EXECUTABLE | ||
NAMES dfu-suffix | ||
DOC "dfu-suffix executable" | ||
) | ||
|
||
mark_as_advanced(DFU_SUFFIX_EXECUTABLE) |
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,8 @@ | ||
set(CMAKE_SYSTEM_NAME Generic) | ||
set(CMAKE_SYSTEM_PROCESSOR arm) | ||
|
||
set(CMAKE_C_COMPILER clang) | ||
set(CMAKE_C_COMPILER_TARGET arm-none-eabi) | ||
|
||
SET (CMAKE_C_COMPILER_WORKS 1) | ||
SET (CMAKE_CXX_COMPILER_WORKS 1) |
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,8 @@ | ||
set(CMAKE_SYSTEM_NAME Generic) | ||
set(CMAKE_SYSTEM_PROCESSOR arm) | ||
|
||
set(CMAKE_C_COMPILER arm-none-eabi-gcc) | ||
set(CMAKE_C_COMPILER_TARGET arm-none-eabi) | ||
|
||
SET (CMAKE_C_COMPILER_WORKS 1) | ||
SET (CMAKE_CXX_COMPILER_WORKS 1) |
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
Oops, something went wrong.