From 31ca47837da1b472c1a551e2f7687cd8a647114b Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sun, 26 Apr 2020 12:58:32 +0300 Subject: [PATCH] Disable build cache for Github Actions --- .github/workflows/examples.yml | 3 --- platformio/telemetry.py | 10 +++++++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index b5d18772..3fa5b26c 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -25,7 +25,6 @@ jobs: - name: Run on Linux if: startsWith(matrix.os, 'ubuntu') env: - PLATFORMIO_BUILD_CACHE_DIR: /tmp/pio PIO_INSTALL_DEVPLATFORMS_IGNORE: "ststm8,infineonxmc,intel_mcs51,aceinna_imu" run: | # ChipKIT issue: install 32-bit support for GCC PIC32 @@ -40,7 +39,6 @@ jobs: - name: Run on macOS if: startsWith(matrix.os, 'macos') env: - PLATFORMIO_BUILD_CACHE_DIR: /tmp/pio PIO_INSTALL_DEVPLATFORMS_IGNORE: "ststm8,infineonxmc,microchippic32,gd32v,nuclei" run: | df -h @@ -50,7 +48,6 @@ jobs: if: startsWith(matrix.os, 'windows') env: PLATFORMIO_CORE_DIR: C:/pio - PLATFORMIO_BUILD_CACHE_DIR: C:/pio/tmp PIO_INSTALL_DEVPLATFORMS_IGNORE: "ststm8,infineonxmc,riscv_gap" run: | tox -e testexamples diff --git a/platformio/telemetry.py b/platformio/telemetry.py index e495402a..396bb8e0 100644 --- a/platformio/telemetry.py +++ b/platformio/telemetry.py @@ -315,7 +315,15 @@ def on_exception(e): def measure_ci(): event = {"category": "CI", "action": "NoName", "label": None} - known_cis = ("TRAVIS", "APPVEYOR", "GITLAB_CI", "CIRCLECI", "SHIPPABLE", "DRONE") + known_cis = ( + "GITHUB_ACTIONS", + "TRAVIS", + "APPVEYOR", + "GITLAB_CI", + "CIRCLECI", + "SHIPPABLE", + "DRONE", + ) for name in known_cis: if os.getenv(name, "false").lower() == "true": event["action"] = name