-
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.
Added CMSIS, HAL, and corrected linker scripts and openocd cfg
- Loading branch information
Showing
185 changed files
with
218,203 additions
and
82 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 |
---|---|---|
@@ -1,92 +1,92 @@ | ||
name: CI | ||
# name: CI | ||
|
||
on: | ||
# Run on all pull requests and all pushes to main | ||
push: | ||
branches: [main] | ||
pull_request: | ||
# on: | ||
# # Run on all pull requests and all pushes to main | ||
# push: | ||
# branches: [main] | ||
# pull_request: | ||
|
||
# Allow running this workflow manually | ||
workflow_dispatch: | ||
# # Allow running this workflow manually | ||
# workflow_dispatch: | ||
|
||
env: | ||
# Set defines for builds/tests | ||
DEFINES: "LOG_LEVEL=LOG_LEVEL_WARN" | ||
# env: | ||
# # Set defines for builds/tests | ||
# DEFINES: "LOG_LEVEL=LOG_LEVEL_WARN" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 12 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
# jobs: | ||
# build: | ||
# runs-on: ubuntu-20.04 | ||
# timeout-minutes: 12 | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
|
||
- name: Get and run setup script | ||
run: | | ||
wget https://raw.githubusercontent.com/uw-midsun/box/master/requirements.sh | ||
chmod +x ./requirements.sh | ||
sudo ./requirements.sh | ||
pip install -r requirements.txt --upgrade | ||
# - name: Get and run setup script | ||
# run: | | ||
# wget https://raw.githubusercontent.com/uw-midsun/box/master/requirements.sh | ||
# chmod +x ./requirements.sh | ||
# sudo ./requirements.sh | ||
# pip install -r requirements.txt --upgrade | ||
|
||
- name: Install STM32 toolchain | ||
env: | ||
GCC_PATH: gcc-arm-none-eabi-8-2019-q3-update | ||
GCC_ARCHIVE_PATH: gcc-arm-none-eabi-8-2019-q3-update-linux.tar.bz2 | ||
GCC_URL: https://developer.arm.com/-/media/Files/downloads/gnu-rm/8-2019q3/RC1.1/gcc-arm-none-eabi-8-2019-q3-update-linux.tar.bz2 | ||
run: | | ||
cd ${HOME} | ||
wget -nv $GCC_URL | ||
mkdir -p $GCC_PATH | ||
tar -xjf $GCC_ARCHIVE_PATH | ||
echo "${HOME}/${GCC_PATH}/bin" >> $GITHUB_PATH | ||
# - name: Install STM32 toolchain | ||
# env: | ||
# GCC_PATH: gcc-arm-none-eabi-8-2019-q3-update | ||
# GCC_ARCHIVE_PATH: gcc-arm-none-eabi-8-2019-q3-update-linux.tar.bz2 | ||
# GCC_URL: https://developer.arm.com/-/media/Files/downloads/gnu-rm/8-2019q3/RC1.1/gcc-arm-none-eabi-8-2019-q3-update-linux.tar.bz2 | ||
# run: | | ||
# cd ${HOME} | ||
# wget -nv $GCC_URL | ||
# mkdir -p $GCC_PATH | ||
# tar -xjf $GCC_ARCHIVE_PATH | ||
# echo "${HOME}/${GCC_PATH}/bin" >> $GITHUB_PATH | ||
|
||
- name: Force PATH to update | ||
run: hash -r | ||
# - name: Force PATH to update | ||
# run: hash -r | ||
|
||
- name: Print versions of everything | ||
run: | | ||
arm-none-eabi-gcc --version | ||
arm-none-eabi-objcopy --version | ||
arm-none-eabi-objdump --version | ||
arm-none-eabi-size --version | ||
arm-none-eabi-gcc-ar --version | ||
arm-none-eabi-gdb --version | ||
gcc --version | ||
make --version | ||
clang --version | ||
clang-format --version | ||
pylint --version | ||
# - name: Print versions of everything | ||
# run: | | ||
# arm-none-eabi-gcc --version | ||
# arm-none-eabi-objcopy --version | ||
# arm-none-eabi-objdump --version | ||
# arm-none-eabi-size --version | ||
# arm-none-eabi-gcc-ar --version | ||
# arm-none-eabi-gdb --version | ||
# gcc --version | ||
# make --version | ||
# clang --version | ||
# clang-format --version | ||
# pylint --version | ||
|
||
- name: Format and lint | ||
run: | | ||
scons format | ||
if [[ $(git diff --name-only) ]] ; then | ||
echo -e "\n unformatted files:"; | ||
git diff --name-only; | ||
exit 1; | ||
fi | ||
# - name: Format and lint | ||
# run: | | ||
# scons format | ||
# if [[ $(git diff --name-only) ]] ; then | ||
# echo -e "\n unformatted files:"; | ||
# git diff --name-only; | ||
# exit 1; | ||
# fi | ||
|
||
scons lint | ||
if [ $? -ne 0 ] ; then | ||
echo -e "\n lint failed"; | ||
exit 1; | ||
fi | ||
# scons lint | ||
# if [ $? -ne 0 ] ; then | ||
# echo -e "\n lint failed"; | ||
# exit 1; | ||
# fi | ||
|
||
- name: Build stm32f10x | ||
id: build-stm32 | ||
run: | | ||
scons --platform=arm --define="${DEFINES}" | ||
# - name: Build stm32l4x | ||
# id: build-stm32 | ||
# run: | | ||
# scons --platform=arm --define="${DEFINES}" | ||
|
||
- name: Build and test | ||
id: build-test | ||
run: | | ||
# Setting up vcan | ||
sudo apt-get install -y linux-modules-extra-$(uname -r) | ||
sudo modprobe can | ||
sudo modprobe can_raw | ||
sudo modprobe vcan | ||
sudo ip link add dev vcan0 type vcan | ||
sudo ip link set up vcan0 | ||
# - name: Build and test | ||
# id: build-test | ||
# run: | | ||
# # Setting up vcan | ||
# sudo apt-get install -y linux-modules-extra-$(uname -r) | ||
# sudo modprobe can | ||
# sudo modprobe can_raw | ||
# sudo modprobe vcan | ||
# sudo ip link add dev vcan0 type vcan | ||
# sudo ip link set up vcan0 | ||
|
||
scons --platform=x86 --define="${DEFINES}" | ||
scons test --platform=x86 --define="${DEFINES}" | ||
# missing make pytest_all | ||
# scons --platform=x86 --define="${DEFINES}" | ||
# scons test --platform=x86 --define="${DEFINES}" | ||
# # missing make pytest_all |
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,7 @@ | ||
{ | ||
"cflags": [ | ||
"-ffreestanding", | ||
"-nostdlib" | ||
], | ||
"no_lint": true | ||
} |
Oops, something went wrong.