-
Notifications
You must be signed in to change notification settings - Fork 65
Add a demo for using LVGL, DRAM, LLVM Toolchain, ELF on an STM32F746G discovery board #104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Phew, the CI finally passes |
.github/workflows/build-stm.yml
Outdated
@@ -42,5 +46,12 @@ jobs: | |||
- name: Build ${{ matrix.example }} | |||
working-directory: ${{ matrix.example }} | |||
run: | | |||
export STM_BOARD=STM32F746G_DISCOVERY | |||
./build-elf.sh | |||
if [[ "${{ matrix.example }}" == "stm32-blink" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should make this part of matrix. instead of manually switching
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about like this? (I don't immediately have an idea how to avoid the ifs completely, we do need to run different commands per example.)
- name: Set environment variables
run: |
echo "STM_BOARD=STM32F746G_DISCOVERY" >> $GITHUB_ENV
- name: Build ${{ matrix.example }}
working-directory: ${{ matrix.example }}
run: |
if [[ -f ./fetch-dependencies.sh ]]; then
./fetch-dependencies.sh
fi
if [[ -f ./build-elf.sh ]]; then
./build-elf.sh
fi
if [[ -f Makefile ]]; then
make
fi
} | ||
}, | ||
{ | ||
"identity" : "swiftsdl2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this avoidable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As in, the whole SwiftSDL2 dependency? I'm not sure what better alternative would there be -- the only that comes to mind seems worse: To write a custom SDL Swift wrapper + also custom multiplatform makefile build steps to build SDL from its C source...
EDIT: fixed the problem Can't build the project. I get a lot of errors related to
|
This has been recently fixed in swift-mmio. You might need to wipe Package.resolved to get a new "main" checkout. |
651fe01
to
8fbf045
Compare
Thanks everyone for reviews and feedback! |
See:
TODOs: