mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-04 18:30:37 +08:00
Create cron-ci.yml
for automated monthly check if any problem with update of cores repositories
This commit is contained in:
parent
2c919cb681
commit
7debf1c41c
49
.github/workflows/cron-ci.yml
vendored
Normal file
49
.github/workflows/cron-ci.yml
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
name: cron-ci
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 1 * *'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python 3.x
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: "3.x"
|
||||
architecture: "x64"
|
||||
- name: Install Arduino
|
||||
run: bash ./.github/ci/install-arduino.sh
|
||||
- name: Install platformIO
|
||||
run: bash ./.github/ci/install-platformio.sh
|
||||
- name: Install ESP8266
|
||||
run: bash ./.github/ci/install-esp8266.sh
|
||||
- name: Install ESP32
|
||||
run: bash ./.github/ci/install-esp32.sh
|
||||
- name: Setup libraries
|
||||
run: bash ./.github/ci/prepare-libs.sh
|
||||
- name: Build ESP8266 arduino
|
||||
id: esp8266_1
|
||||
run: bash ./.github/ci/build-esp3d.sh esp8266 arduino
|
||||
continue-on-error: true
|
||||
- name: Build ESP32 arduino
|
||||
id: esp32_1
|
||||
run: bash ./.github/ci/build-esp3d.sh esp32 arduino
|
||||
continue-on-error: true
|
||||
- name: Build platformIO
|
||||
id: pio_1
|
||||
run: bash ./.github/ci/build-esp3d.sh esp32 pio
|
||||
continue-on-error: true
|
||||
- name: Final check
|
||||
env:
|
||||
STEPS_CONTEXT: ${{ toJson(steps) }}
|
||||
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
||||
if: steps.esp8266_1.outcome == 'failure' || steps.esp32_1.outcome == 'failure'
|
||||
run: bash ./.github/ci/final-check.sh "cron-ci $GITHUB_RUN_ID" "failure"
|
||||
- name: Final confirmation
|
||||
env:
|
||||
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
||||
if: steps.esp8266_1.outcome == 'success' && steps.esp32_1.outcome == 'success'
|
||||
run: bash ./.github/ci/final-check.sh "cron-ci $GITHUB_RUN_ID" "success"
|
Loading…
x
Reference in New Issue
Block a user