-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
152 additions
and
0 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,63 @@ | ||
name: Arduino_CI | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
paths: | ||
- "examples/**" | ||
- "src/**" | ||
- ".github/workflows/arduino_ci.yml" | ||
branches: | ||
- t-watch-s3 | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
examples: | ||
- examples/Glass/Glass6DoF/Glass6DoF.ino | ||
- examples/Glass/GlassBatteryVoltage/GlassBatteryVoltage.ino | ||
- examples/Glass/GlassDeepSleep/GlassDeepSleep.ino | ||
- examples/Glass/GlassFactory/GlassFactory.ino | ||
- examples/Glass/GlassHelloWorld/GlassHelloWorld.ino | ||
- examples/Glass/GlassRtcAlarm/GlassRtcAlarm.ino | ||
- examples/Glass/GlassRtcDateTime/GlassRtcDateTime.ino | ||
- examples/Glass/GlassTouchButton/GlassTouchButton.ino | ||
- examples/Glass/GlassTouchButtonEvent/GlassTouchButtonEvent.ino | ||
- examples/Glass/GlassVoiceActivityDetection/GlassVoiceActivityDetection.ino | ||
- examples/Wristband/Wristband6DoF/Wristband6DoF.ino | ||
- examples/Wristband/WristbandBatteryVoltage/WristbandBatteryVoltage.ino | ||
- examples/Wristband/WristbandDeepSleep/WristbandDeepSleep.ino | ||
- examples/Wristband/WristbandDisplayRotation/WristbandDisplayRotation.ino | ||
- examples/Wristband/WristbandDisplayVisualWindow1/WristbandDisplayVisualWindow1.ino | ||
- examples/Wristband/WristbandFactory/WristbandFactory.ino | ||
- examples/Wristband/WristbandHelloWorld/WristbandHelloWorld.ino | ||
- examples/Wristband/WristbandLightSleep/WristbandLightSleep.ino | ||
- examples/Wristband/WristbandRtcAlarm/WristbandRtcAlarm.ino | ||
- examples/Wristband/WristbandRtcDateTime/WristbandRtcDateTime.ino | ||
- examples/Wristband/WristbandTouchButton/WristbandTouchButton.ino | ||
- examples/Wristband/WristbandTouchButtonEvent/WristbandTouchButtonEvent.ino | ||
env: | ||
EXAMPLES: ${{matrix.examples}} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Arduino Ci | ||
run: | | ||
wget https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Linux_64bit.tar.gz -O arduino-cli.tar.gz ; | ||
sudo tar xf arduino-cli.tar.gz -C /usr/local/bin arduino-cli ; | ||
arduino-cli config init ; | ||
arduino-cli config add board_manager.additional_urls https://espressif.github.io/arduino-esp32/package_esp32_index.json ; | ||
arduino-cli core update-index ; | ||
arduino-cli core install esp32:[email protected] ; | ||
- name: Build examples | ||
run: | | ||
mkdir -p $HOME/Arduino/libraries ; | ||
cp -r $PWD/libdeps/* $HOME/Arduino/libraries | ||
cd $GITHUB_WORKSPACE ; | ||
arduino-cli compile -besp32:esp32:esp32s3:CDCOnBoot=cdc,PartitionScheme=huge_app,PSRAM=enabled --library . $PWD/$EXAMPLES ; |
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,22 @@ | ||
name: Close inactive issues | ||
on: | ||
schedule: | ||
- cron: "30 1 * * *" | ||
|
||
jobs: | ||
close-issues: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/stale@v5 | ||
with: | ||
days-before-issue-stale: 30 | ||
days-before-issue-close: 30 | ||
stale-issue-label: "stale" | ||
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity." | ||
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale." | ||
days-before-pr-stale: 1 | ||
days-before-pr-close: 1 | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |
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,59 @@ | ||
name: PlatformIO CI | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
paths: | ||
- "examples/**" | ||
- "src/**" | ||
- "platformio.ini" | ||
- ".github/workflows/platformio.yml" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
examples: | ||
- examples/Glass/Glass6DoF | ||
- examples/Glass/GlassBatteryVoltage | ||
- examples/Glass/GlassDeepSleep | ||
- examples/Glass/GlassFactory | ||
- examples/Glass/GlassHelloWorld | ||
- examples/Glass/GlassRtcAlarm | ||
- examples/Glass/GlassRtcDateTime | ||
- examples/Glass/GlassTouchButton | ||
- examples/Glass/GlassTouchButtonEvent | ||
- examples/Glass/GlassVoiceActivityDetection | ||
- examples/Wristband/Wristband6DoF | ||
- examples/Wristband/WristbandBatteryVoltage | ||
- examples/Wristband/WristbandDeepSleep | ||
- examples/Wristband/WristbandDisplayRotation | ||
- examples/Wristband/WristbandDisplayVisualWindow1 | ||
- examples/Wristband/WristbandFactory | ||
- examples/Wristband/WristbandHelloWorld | ||
- examples/Wristband/WristbandLightSleep | ||
- examples/Wristband/WristbandRtcAlarm | ||
- examples/Wristband/WristbandRtcDateTime | ||
- examples/Wristband/WristbandTouchButton | ||
- examples/Wristband/WristbandTouchButtonEvent | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cache/pip | ||
~/.platformio/.cache | ||
key: ${{ runner.os }}-pio | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.9" | ||
- name: Install PlatformIO Core | ||
run: pip install --upgrade platformio | ||
|
||
- name: Run PlatformIO | ||
run: | | ||
export PLATFORMIO_SRC_DIR=${{ matrix.examples }} | ||
pio run |
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 @@ | ||
.pio | ||
.vscode/.browse.c_cpp.db* | ||
.vscode/c_cpp_properties.json | ||
.vscode/launch.json | ||
.vscode | ||
script | ||
History | ||
build |