-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from Luos-io/workflow
New 1.0.0 branch
- Loading branch information
Showing
21 changed files
with
416 additions
and
258 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 |
---|---|---|
@@ -0,0 +1,90 @@ | ||
name: Build | ||
|
||
on: [push] | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
include: | ||
- os: windows-latest | ||
pio_lib_path: D:\a\Luos | ||
- os: macos-latest | ||
pio_lib_path: ~/work/Luos | ||
- os: ubuntu-latest | ||
pio_lib_path: ~/work/Luos | ||
|
||
|
||
steps: | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install platformio | ||
- name: Check out Luos repository | ||
uses: actions/checkout@v2 | ||
# - name: Setup tmate session | ||
# uses: mxschmitt/action-tmate@v3 | ||
|
||
- name: Create env repo | ||
shell: bash | ||
run: | | ||
# Save branch name | ||
branch_name=$(git branch --show-current) | ||
origine_branch_name="origin/${branch_name}" | ||
# Step back and get dependancies | ||
cd .. | ||
# LuosHAL | ||
git clone https://github.com/Luos-io/LuosHAL.git | ||
cd LuosHAL | ||
if [ `git branch -r --list $origine_branch_name` ] | ||
then | ||
echo A dependant branch have been found on LuosHAL | ||
git checkout $branch_name | ||
fi | ||
cd .. | ||
# Examples | ||
git clone https://github.com/Luos-io/Examples.git | ||
cd Examples | ||
if [ `git branch -r --list $origine_branch_name` ] | ||
then | ||
echo A dependant branch have been found on Examples | ||
git checkout $branch_name | ||
fi | ||
cd .. | ||
- name: Run PlatformIO | ||
env: | ||
PLATFORMIO_LIB_EXTRA_DIRS: ${{ matrix.pio_lib_path }} | ||
run: | | ||
cd .. | ||
platformio run -d Examples/Projects/Button | ||
platformio run -d Examples/Projects/Controller_motor | ||
platformio run -d Examples/Projects/Dc_motor | ||
platformio run -d Examples/Projects/Distance | ||
platformio run -d Examples/Projects/Dxl | ||
platformio run -d Examples/Projects/Gate | ||
platformio run -d Examples/Projects/Gpio | ||
platformio run -d Examples/Projects/Imu | ||
platformio run -d Examples/Projects/Led | ||
platformio run -d Examples/Projects/Led_strip | ||
platformio run -d Examples/Projects/Light_sensor | ||
platformio run -d Examples/Projects/Load | ||
platformio run -d Examples/Projects/Potentiometer | ||
platformio run -d Examples/Projects/Power_switch | ||
platformio run -d Examples/Projects/Servo | ||
platformio run -d Examples/Projects/Stepper | ||
platformio run -d Examples/Projects/Bike_alarm/Alarm_controller | ||
platformio run -d Examples/Projects/Bike_alarm/Start_controller |
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,25 @@ | ||
name: Upload platformio library | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install platformio | ||
- name: Build and publish | ||
env: | ||
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PIO_TOKEN }} | ||
run: | | ||
pio package pack | ||
pio package publish --owner "Luos" |
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
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.