Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci cd #5

Merged
merged 12 commits into from
Aug 20, 2024
52 changes: 52 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Ats PLC

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
Tests-esp-idf:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Prepare main project
working-directory: ./PLC_esp8266
run: make project_prepare

- name: Run tests
working-directory: ./Tests_esp8266
run: make run


Build-ota-bin:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Prepare
working-directory: ./PLC_esp8266
run: make project_prepare

- name: Requirements pip
working-directory: ./SDK/ESP8266_RTOS_SDK
run: python -m pip install --user -r requirements.txt

- name: Build ota
working-directory: ./PLC_esp8266
run: make ota

- name: Deploy
uses: actions/upload-artifact@v4
with:
name: AtsPLC-esp8266.ota.bin
path: ./PLC_esp8266/build/AtsPLC-esp8266.ota.bin
retention-days: 90