diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index be63114..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,128 +0,0 @@ -name: Build - -on: [push, pull_request] - -jobs: - build: - strategy: - fail-fast: false - matrix: - environments: - - "rfbridge" - - "rfbridge-direct" - - "esp32dev-all-test" - - "esp32dev-rf" - - "esp32dev-pilight-cc1101" - - "esp32dev-somfy-cc1101" - - "esp32dev-pilight-somfy-cc1101" - - "esp32dev-weatherstation" - - "esp32dev-gf-sun-inverter" - - "esp32dev-ir" - - "esp32dev-ble" - - "esp32dev-ble-mqtt-undecoded" - - "esp32dev-ble-aws" - - "esp32feather-ble" - - "esp32-lolin32lite-ble" - - "esp32-olimex-gtw-ble-eth" - - "esp32-olimex-gtw-ble-poe" - - "esp32-olimex-gtw-ble-poe-iso" - - "esp32-wt32-eth01-ble-eth" - - "esp32-olimex-gtw-ble-wifi" - - "esp32-m5stick-ble" - - "esp32-m5stack-ble" - - "esp32-m5tough-ble" - - "esp32-m5stick-c-ble" - - "esp32-m5stick-cp-ble" - - "esp32s3-atomS3U" - - "esp32-m5atom-matrix" - - "esp32-m5atom-lite" - - "esp32dev-rtl_433" - - "esp32doitv1-aithinker-r01-sx1278" - - "heltec-rtl_433" - - "heltec-rtl_433-fsk" - - "heltec-ble" - - "lilygo-rtl_433" - - "lilygo-rtl_433-fsk" - - "lilygo-ble" - - "esp32dev-multi_receiver" - - "esp32dev-multi_receiver-pilight" - - "tinypico-ble" - - "ttgo-lora32-v1" - - "ttgo-lora32-v21" - - "ttgo-t-beam" - - "heltec-wifi-lora-32" - - "shelly-plus1" - - "nodemcuv2-all-test" - - "nodemcuv2-fastled-test" - - "nodemcuv2-2g" - - "nodemcuv2-ir" - - "nodemcuv2-rs232" - - "avatto-bakeey-ir" - - "nodemcuv2-rf" - - "nodemcuv2-rf-cc1101" - - "nodemcuv2-somfy-cc1101" - - "manual-wifi-test" - - "nodemcuv2-mqtt-fw-test" - - "rf-wifi-gateway" - - "nodemcuv2-rf2" - - "nodemcuv2-rf2-cc1101" - - "nodemcuv2-pilight" - - "nodemcuv2-weatherstation" - - "sonoff-basic" - - "sonoff-basic-rfr3" - - "atmega-all-test" - - "uno-rf" - - "uno-fastled" - - "esp32dev-ble-datatest" - - "esp32s3-dev-c1-ble" - - "esp32c3-dev-m1-ble" - - "airm2m_core_esp32c3" - - "esp32c3_lolin_mini" - - "esp32c3-m5stamp" - - "thingpulse-espgateway" - - "theengs-bridge" - - "esp32dev-ble-idf" - runs-on: ubuntu-latest - name: Build with PlatformIO - steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: "3.x" - - name: Install platformio - run: | - python -m pip install --upgrade pip - pip install platformio - pip install setuptools - - name: Extract ESP32 platform version from platformio.ini - run: | - ESP32_VERSION=$(grep 'esp32_platform\s*=' platformio.ini | cut -d'@' -f2 | tr -d '[:space:]') - echo "ESP32_PLATFORM_VERSION=${ESP32_VERSION}" >> $GITHUB_ENV - - name: Run PlatformIO - run: platformio run -e ${{ matrix.environments }} - - name: Upload Assets - uses: actions/upload-artifact@v3 - with: - name: ${{ matrix.environments }} - path: | - .pio/build/*/firmware.bin - .pio/build/*/partitions.bin - retention-days: 7 - - documentation: - runs-on: ubuntu-latest - name: Create the documentation - steps: - - uses: actions/checkout@v3 - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: "14.x" - - name: Download Common Config - run: | - curl -o docs/.vuepress/public/commonConfig.js https://www.theengs.io/commonConfig.js - - name: Install build dependencies - run: npm install - - name: Build documentation - run: npm run docs:build diff --git a/.github/workflows/build_and_docs_to_dev.yml b/.github/workflows/build_and_docs_to_dev.yml deleted file mode 100644 index b6c2c5e..0000000 --- a/.github/workflows/build_and_docs_to_dev.yml +++ /dev/null @@ -1,67 +0,0 @@ -name: Build binaries, docs and publish to dev folder -on: - workflow_dispatch: - schedule: - - cron: '0 0 * * *' -jobs: - build-upload: - runs-on: ubuntu-latest - if: github.repository_owner == '1technophile' - name: Build and upload Assets to Release - steps: - - uses: actions/checkout@v3 - - uses: benjlevesque/short-sha@v2.1 - id: short-sha - with: - length: 6 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: "3.7" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install platformio requests shutils - npm install - - name: Set sha tag - run: | - sed -i "s/version_tag/${{ steps.short-sha.outputs.sha }}/g" main/User_config.h scripts/latest_version_dev.json - sed -i "s/version_tag/DEVELOPMENT SHA:${{ steps.short-sha.outputs.sha }} TEST ONLY/g" docs/.vuepress/config.js - sed -i "s|base: '/'|base: '/dev/'|g" docs/.vuepress/config.js - - name: Extract ESP32 platform version from platformio.ini - run: | - ESP32_VERSION=$(grep 'esp32_platform\s*=' platformio.ini | cut -d'@' -f2 | tr -d '[:space:]') - echo "ESP32_PLATFORM_VERSION=${ESP32_VERSION}" >> $GITHUB_ENV - - name: Run PlatformIO - run: | - export PLATFORMIO_BUILD_FLAGS="'-DDEVELOPMENTOTA=true'" - platformio run - - name: Prepare Release Assets - run: | - sudo apt install rename - ./scripts/prepare_deploy.sh - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: "14.x" - - name: Download Common Config - run: | - curl -o docs/.vuepress/public/commonConfig.js https://www.theengs.io/commonConfig.js - - name: Build documentation - run: | - python ./scripts/gen_wu.py --dev - npm run docs:build - - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./docs/.vuepress/dist - destination_dir: dev - cname: docs.openmqttgateway.com - - name: Running Page Speed Insights - uses: jakepartusch/psi-action@v1.3 - id: psi - with: - url: "https://docs.openmqttgateway.com/dev/" - threshold: 70 - key: ${{ secrets.APIKEY }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 3bb98a7..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Check Code Format - -on: [push, pull_request] - -jobs: - lint: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Check main format - uses: DoozyX/clang-format-lint-action@v0.6 - with: - source: "./main" - extensions: "h,ino" - clangFormatVersion: 9 diff --git a/.github/workflows/manual_docs.yml b/.github/workflows/manual_docs.yml deleted file mode 100644 index dd7cf09..0000000 --- a/.github/workflows/manual_docs.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Create and publish documentation -on: - workflow_dispatch: - workflow_call: -jobs: - documentation: - runs-on: ubuntu-latest - name: Create the documentation and deploy it to GitHub Pages - steps: - - uses: actions/checkout@v3 - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: "14.x" - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: "3.7" - - name: Install build dependencies - run: | - python -m pip install --upgrade pip - pip install requests pandas markdown pytablereader tabulate - npm install - - name: Download Common Config - run: | - curl -o docs/.vuepress/public/commonConfig.js https://www.theengs.io/commonConfig.js - - name: get lastest release tag - id: last_release - uses: InsonusK/get-latest-release@v1.0.1 - with: - myToken: ${{ github.token }} - view_top: 1 - - name: Set version tag from git - run: sed -i "s/version_tag/${{steps.last_release.outputs.tag_name}}/g" docs/.vuepress/config.js scripts/latest_version.json - - name: Build documentation - run: | - python ./scripts/generate_board_docs.py - python ./scripts/gen_wu.py ${GITHUB_REPOSITORY} - npm run docs:build - - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./docs/.vuepress/dist - cname: docs.openmqttgateway.com \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 19f3cf3..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: Release - -on: - release: - types: [published] - -jobs: - build-upload: - runs-on: ubuntu-latest - name: Build and upload Assets to Release - steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: "3.7" - - name: Install platformio - run: | - python -m pip install --upgrade pip - pip install platformio - - name: Set version tag from git - run: sed -i "s/version_tag/${GITHUB_REF#refs/tags/}/g" main/User_config.h scripts/latest_version.json - - name: Extract ESP32 platform version from platformio.ini - run: | - ESP32_VERSION=$(grep 'esp32_platform\s*=' platformio.ini | cut -d'@' -f2 | tr -d '[:space:]') - echo "ESP32_PLATFORM_VERSION=${ESP32_VERSION}" >> $GITHUB_ENV - - name: Run PlatformIO - run: platformio run - - name: Prepare Release Assets - run: | - sudo apt install rename - ./scripts/prepare_deploy.sh - - name: Get upload url - id: release-id - run: | - RELEASE_ID=$(jq --raw-output '.release.id' $GITHUB_EVENT_PATH) - echo "::set-output name=upload_url::https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets{?name,label}" - - name: Upload Release Assets - uses: bgpat/release-asset-action@03b0c30db1c4031ce3474740b0e4275cd7e126a3 - with: - pattern: "toDeploy/*" - github-token: ${{ secrets.GITHUB_TOKEN }} - release-url: ${{ steps.release-id.outputs.upload_url }} - allow-overwrite: true - call-workflow-passing-data: - needs: build-upload - uses: ./.github/workflows/manual_docs.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index 28f46eb..0000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Close inactive issues or PR -on: - schedule: - - cron: "30 0 * * *" - -jobs: - close-issues: - runs-on: ubuntu-latest - permissions: - issues: write - pull-requests: write - steps: - - uses: actions/stale@v4.1.1 - with: - days-before-issue-stale: 90 - days-before-issue-close: 14 - stale-issue-label: "stale" - stale-issue-message: "This issue is stale because it has been open for 90 days with no activity." - close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale." - days-before-pr-stale: 90 - days-before-pr-close: 14 - repo-token: ${{ secrets.GITHUB_TOKEN }} - exempt-issue-labels: "enhancement"