Skip to content

Commit

Permalink
Remove caching steps (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz authored Jan 16, 2025
1 parent 11097cf commit bc714c6
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ inputs:
description: Platform (OS/Arch) to use
required: false
default: linux/amd64
cache:
description: Cache build directory
required: false
default: false
deprecationMessage: |
There is little to no gain in caching the build directory as
ESPHome will wipe the build artifacts in most cases for releases.
This will be removed in a future release.
release-summary:
description: Release summary
required: false
Expand Down Expand Up @@ -71,34 +63,6 @@ runs:
tags: esphome:${{ inputs.version }}
build-args: VERSION=${{ inputs.version }}
platforms: ${{ inputs.platform }}

- if: ${{ inputs.cache == 'true' }}
id: data-dir
shell: bash
run: |
data_dir=$(dirname ${{ inputs.yaml-file }})/.esphome
echo "data_dir=$data_dir" >> $GITHUB_OUTPUT
- if: ${{ inputs.cache == 'true' }}
name: Cache platformio directory
uses: actions/[email protected]
with:
path: ~/.platformio
key: ${{ runner.os }}-esphome-${{ inputs.yaml-file }}-${{ inputs.version }}-platformio
- if: ${{ inputs.cache == 'true' }}
name: Cache build directory
uses: actions/[email protected]
with:
path: ${{ steps.data-dir.outputs.data_dir }}/build
key: ${{ runner.os }}-esphome-${{ inputs.yaml-file }}-${{ inputs.version }}-build
save-always: true
- if: ${{ inputs.cache == 'true' }}
name: Cache storage directory
uses: actions/[email protected]
with:
path: ${{ steps.data-dir.outputs.data_dir }}/storage
key: ${{ runner.os }}-esphome-${{ inputs.yaml-file }}-${{ inputs.version }}-storage
save-always: true

- name: Run container
shell: bash
id: build-step
Expand Down

0 comments on commit bc714c6

Please sign in to comment.