Don't use caches when making release builds

This commit is contained in:
Kevin Hester 2021-04-16 14:19:53 +08:00
parent 1ceeb1637a
commit 99828d9b73

View File

@ -19,12 +19,7 @@ jobs:
with: with:
python-version: 3.x python-version: 3.x
- name: Cache python libs # Note: we don't use caches on release builds because we don't want to accidentally not have a virgin build machine
uses: actions/cache@v1
id: cache-pip # needed in if test
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip
- name: Upgrade python tools - name: Upgrade python tools
# We actually want to run this every time # We actually want to run this every time
@ -33,13 +28,6 @@ jobs:
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install -U platformio meshtastic adafruit-nrfutil pip install -U platformio meshtastic adafruit-nrfutil
- name: Cache platformio
uses: actions/cache@v1
id: cache-platformio # needed in if test
with:
path: ~/.platformio
key: ${{ runner.os }}-platformio
- name: Upgrade platformio - name: Upgrade platformio
run: | run: |
pio upgrade pio upgrade
@ -52,19 +40,21 @@ jobs:
- name: Build everything - name: Build everything
run: bin/build-all.sh run: bin/build-all.sh
- name: release - name: Create release
uses: actions/create-release@v1 uses: actions/create-release@v1
id: create_release id: create_release
with: with:
draft: true draft: true
prerelease: true prerelease: true
release_name: ${{ steps.version.outputs.version }} release_name: ${{ steps.version.outputs.version }} alpha
tag_name: ${{ github.ref }} tag_name: ${{ steps.version.outputs.version }}
body: Text to be filled in by human # was ${{ github.ref }}
body: |
Autogenerated by github action, developer should edit as required before publishing...
env: env:
GITHUB_TOKEN: ${{ github.token }} GITHUB_TOKEN: ${{ github.token }}
- name: upload artifact - name: Add artifact to release
uses: actions/upload-release-asset@v1 uses: actions/upload-release-asset@v1
env: env:
GITHUB_TOKEN: ${{ github.token }} GITHUB_TOKEN: ${{ github.token }}