mirror of
https://github.com/EFeru/hoverboard-sideboard-hack-STM.git
synced 2025-07-27 01:09:33 +00:00
Moved from Travis to Github actions
Update README.md Update README.md
This commit is contained in:
parent
7ed59c6ee2
commit
ed5cba1794
41
.github/workflows/build_on_commit.yml
vendored
Normal file
41
.github/workflows/build_on_commit.yml
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
# Get required packages
|
||||
- uses: actions/checkout@v2
|
||||
- uses: fiam/arm-none-eabi-gcc@v1
|
||||
with:
|
||||
release: '9-2019-q4'
|
||||
|
||||
# Build with make
|
||||
- name: make
|
||||
env:
|
||||
VARIANT: VARIANT_DEBUG
|
||||
run: make
|
||||
|
||||
# Build with Platformio
|
||||
- name: PlatformIO Install
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install --upgrade platformio
|
||||
- name: PlatformIO Run
|
||||
run: pio run
|
||||
|
||||
- name: 'Upload Build Artifact'
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
path: ${{github.workspace}}/.pio/build/**
|
||||
name: ${{github.event.repository.name}}_build_${{github.run_number}}
|
||||
retention-days: 5
|
||||
|
55
.travis.yml
55
.travis.yml
@ -1,55 +0,0 @@
|
||||
notifications:
|
||||
email: true
|
||||
|
||||
os: linux
|
||||
|
||||
jobs:
|
||||
fast_finish: true
|
||||
include:
|
||||
|
||||
- name: make (gcc-arm-none-eabi-7)
|
||||
script: make
|
||||
env: VARIANT=VARIANT_DEBUG
|
||||
language: c
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- libc6-i386
|
||||
install:
|
||||
- pushd .
|
||||
- cd ~
|
||||
- mkdir arm-gcc-toolchain
|
||||
- wget -O $HOME/arm-gcc-toolchain/gcc.tar.bz2 https://developer.arm.com/-/media/Files/downloads/gnu-rm/7-2018q2/gcc-arm-none-eabi-7-2018-q2-update-linux.tar.bz2?revision=bc2c96c0-14b5-4bb4-9f18-bceb4050fee7?product=GNU%20Arm%20Embedded%20Toolchain,64-bit,,Linux,7-2018-q2-update
|
||||
- cd arm-gcc-toolchain
|
||||
- tar -jxf gcc.tar.bz2 --strip=1
|
||||
- popd
|
||||
- export PATH=$HOME/arm-gcc-toolchain/bin:$PATH
|
||||
before_script: arm-none-eabi-gcc --version
|
||||
|
||||
- name: make (gcc-arm-none-eabi-5)
|
||||
script: make
|
||||
env: VARIANT=VARIANT_DEBUG
|
||||
language: c
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- libc6-i386
|
||||
install:
|
||||
- pushd .
|
||||
- cd ~
|
||||
- mkdir arm-gcc-toolchain
|
||||
- wget -O $HOME/arm-gcc-toolchain/gcc.tar.bz2 https://developer.arm.com/-/media/Files/downloads/gnu-rm/5_4-2016q3/gcc-arm-none-eabi-5_4-2016q3-20160926-linux.tar.bz2?revision=111dee36-f88b-4672-8ac6-48cf41b4d375?product=GNU%20Arm%20Embedded%20Toolchain,32-bit,,Linux,5-2016-q3-update
|
||||
- cd arm-gcc-toolchain
|
||||
- tar -jxf gcc.tar.bz2 --strip=1
|
||||
- popd
|
||||
- export PATH=$HOME/arm-gcc-toolchain/bin:$PATH
|
||||
before_script: arm-none-eabi-gcc --version
|
||||
|
||||
- name: platformio
|
||||
script: platformio run
|
||||
language: python
|
||||
install:
|
||||
- pip install -U platformio
|
||||
- platformio update
|
||||
cache:
|
||||
- directories: "~/.platformio"
|
12
README.md
12
README.md
@ -1,6 +1,6 @@
|
||||
# hoverboard-sideboard-hack-STM
|
||||
|
||||
[](https://app.travis-ci.com/EFeru/hoverboard-sideboard-hack-STM)
|
||||
[](https://github.com/EFeru/hoverboard-sideboard-hack-STM/actions/workflows/build_on_commit.yml)
|
||||
[](https://www.gnu.org/licenses/gpl-3.0)
|
||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=CU2SWN2XV9SCY¤cy_code=EUR&source=url)
|
||||
|
||||
@ -64,7 +64,15 @@ If you have never flashed your sideboard before, the MCU is probably locked. To
|
||||
|
||||
To build and flash choose one of the following methods:
|
||||
|
||||
### Method 1: Using Platformio IDE
|
||||
### Method 0: Using GitHub Fork
|
||||
- Fork the project
|
||||
- Modify desired source files and commit
|
||||
- Go to Actions (in the repo top menu)
|
||||
- Click on latest build
|
||||
- Download the build zip file from the Artifacts section
|
||||
- Upload desired `firmware.bin` file using [ST-Link Utility](https://www.st.com/en/development-tools/stsw-link004.html)
|
||||
|
||||
### Method 1: Using Platformio IDE (recommended)
|
||||
|
||||
- open the folder in the IDE of choice (vscode or Atom)
|
||||
- press the 'PlatformIO:Build' or the 'PlatformIO:Upload' button (bottom left in vscode).
|
||||
|
Loading…
x
Reference in New Issue
Block a user