LoRa_APRS_iGate/.github/workflows/build_check.yml

57 wiersze
1.7 KiB
YAML
Czysty Zwykły widok Historia

2021-03-12 23:19:33 +00:00
name: push pull checks
2020-06-14 21:34:13 +00:00
2021-02-12 22:45:51 +00:00
on: [push, pull_request]
2020-06-14 21:34:13 +00:00
jobs:
2021-03-12 23:19:33 +00:00
check:
2020-06-14 23:24:19 +00:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
2021-02-12 22:45:51 +00:00
- name: Cache pip
uses: actions/cache@v2
2020-12-06 22:11:54 +00:00
with:
2021-02-12 22:45:51 +00:00
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: ${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v2
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Set up Python
uses: actions/setup-python@v2
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Run PlatformIO Check
run: platformio check --fail-on-defect low --fail-on-defect medium --fail-on-defect high
2020-08-01 08:49:56 +00:00
2021-03-12 23:19:33 +00:00
build:
2020-08-01 08:49:56 +00:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
2021-02-12 22:45:51 +00:00
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: ${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v2
2020-12-06 22:11:54 +00:00
with:
2021-02-12 22:45:51 +00:00
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Set up Python
uses: actions/setup-python@v2
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Run PlatformIO CI
run: platformio run
2020-08-01 08:49:56 +00:00
- uses: actions/upload-artifact@v2
with:
name: firmware
2020-12-17 21:32:01 +00:00
path: .pio/build/lora_board/firmware.bin