S3-usb-stick workflow
This commit is contained in:
parent
f05c0b2d21
commit
72a4bf4b73
54
.github/workflows/build.yml
vendored
54
.github/workflows/build.yml
vendored
@ -14,17 +14,10 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
# os: [ubuntu-latest, windows-latest, macos-latest]
|
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
path: ~/.cache/pip
|
path: ~/.cache/pip
|
||||||
platformio-path: ~/.platformio
|
platformio-path: ~/.platformio
|
||||||
# - os: macos-latest
|
|
||||||
# path: ~/Library/Caches/pip
|
|
||||||
# platformio-path: ~/Library/Caches/platformio
|
|
||||||
# - os: windows-latest
|
|
||||||
# path: ~\AppData\Local\pip\Cache
|
|
||||||
# platformio-path: ~\AppData\Local\platformio\Cache
|
|
||||||
board:
|
board:
|
||||||
[
|
[
|
||||||
generic.h,
|
generic.h,
|
||||||
@ -94,3 +87,50 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CI_HALFILE: ${{ matrix.board }}
|
CI_HALFILE: ${{ matrix.board }}
|
||||||
run: pio run -e ci
|
run: pio run -e ci
|
||||||
|
|
||||||
|
build-s3-usb-stick:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest]
|
||||||
|
include:
|
||||||
|
- os: ubuntu-latest
|
||||||
|
path: ~/.cache/pip
|
||||||
|
platformio-path: ~/.platformio
|
||||||
|
board: [ttgotdongles3.h, ttgotdongledisplays3.h]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Cache pip
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: ${{ matrix.path }}
|
||||||
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-pip-
|
||||||
|
- name: Cache PlatformIO
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: ${{ matrix.platformio-path }}
|
||||||
|
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: "3.9.13"
|
||||||
|
- name: Install PlatformIO
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install --upgrade platformio
|
||||||
|
- name: Copy of necessary files
|
||||||
|
run: |
|
||||||
|
cp platformio_orig_s3-usb-stick.ini platformio.ini
|
||||||
|
cp src/loraconf_sample.h src/loraconf.h
|
||||||
|
cp src/ota_sample.conf src/ota.conf
|
||||||
|
cp src/paxcounter_orig.conf src/paxcounter.conf
|
||||||
|
- name: Clean
|
||||||
|
run: pio run -t clean -e usb
|
||||||
|
- name: Run PlatformIO CI for ${{ matrix.board }}
|
||||||
|
env:
|
||||||
|
CI_HALFILE: ${{ matrix.board }}
|
||||||
|
run: pio run -e usb
|
||||||
|
Loading…
Reference in New Issue
Block a user