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
|
||||
|
||||
# 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
|
||||
on: [push]
|
||||
jobs:
|
||||
# This workflow contains a single job called "build"
|
||||
build:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: self-hosted
|
||||
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
name: Build
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: "3.9"
|
||||
|
||||
python-version: '3.x'
|
||||
architecture: 'x64'
|
||||
- name: Show python version
|
||||
run: python --version
|
||||
- name: Install PlatformIO
|
||||
run: |
|
||||
pip install -U https://github.com/platformio/platformio/archive/develop.zip
|
||||
pio pkg install --global --platform symlink://.
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
pio run
|
||||
run: python -m pip install platformio==4.3.4
|
||||
- name: Build firmware
|
||||
run: platformio run
|
||||
- name: Archive
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: firmware
|
||||
path: .pio/build/*/firmware.bin
|
||||
|
||||
Reference in New Issue
Block a user