forked from external-repos/esp32cam-rtsp
Update main.yml
This commit is contained in:
54
.github/workflows/main.yml
vendored
54
.github/workflows/main.yml
vendored
@@ -1,42 +1,24 @@
|
|||||||
# This is a basic workflow to help you get started with Actions
|
|
||||||
|
|
||||||
name: Platform IO CI
|
name: Platform IO CI
|
||||||
|
on: [push]
|
||||||
# Controls when the workflow will run
|
|
||||||
on:
|
|
||||||
# Triggers the workflow on push or pull request events but only for the "develop" branch
|
|
||||||
push:
|
|
||||||
branches: [ "develop" ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ "develop" ]
|
|
||||||
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
||||||
jobs:
|
jobs:
|
||||||
# This workflow contains a single job called "build"
|
|
||||||
build:
|
build:
|
||||||
# The type of runner that the job will run on
|
name: Build
|
||||||
runs-on: self-hosted
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/checkout@v3
|
- name: Set up python
|
||||||
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
submodules: "recursive"
|
python-version: '3.x'
|
||||||
|
architecture: 'x64'
|
||||||
- name: Set up Python
|
- name: Show python version
|
||||||
uses: actions/setup-python@v3
|
run: python --version
|
||||||
with:
|
|
||||||
python-version: "3.9"
|
|
||||||
|
|
||||||
- name: Install PlatformIO
|
- name: Install PlatformIO
|
||||||
run: |
|
run: python -m pip install platformio==4.3.4
|
||||||
pip install -U https://github.com/platformio/platformio/archive/develop.zip
|
- name: Build firmware
|
||||||
pio pkg install --global --platform symlink://.
|
run: platformio run
|
||||||
|
- name: Archive
|
||||||
- name: Build
|
uses: actions/upload-artifact@v2
|
||||||
run: |
|
with:
|
||||||
pio run
|
name: firmware
|
||||||
|
path: .pio/build/*/firmware.bin
|
||||||
|
|||||||
Reference in New Issue
Block a user