mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
circle ci skip cache for toolchain
action skip cache for toolchain url hosted by github
This commit is contained in:
parent
c2cfb71dce
commit
4e24ec5e5d
@ -8,14 +8,14 @@ commands:
|
|||||||
toolchain_url:
|
toolchain_url:
|
||||||
type: string
|
type: string
|
||||||
steps:
|
steps:
|
||||||
- run:
|
# - run:
|
||||||
name: Make toolchain cache key
|
# name: Make toolchain cache key
|
||||||
command: echo "<< parameters.toolchain >>-<< parameters.toolchain_url>>" > toolchain_key
|
# command: echo "<< parameters.toolchain >>-<< parameters.toolchain_url>>" > toolchain_key
|
||||||
- restore_cache:
|
# - restore_cache:
|
||||||
name: Restore Toolchain Cache
|
# name: Restore Toolchain Cache
|
||||||
key: deps-{{ checksum "toolchain_key" }}
|
# key: deps-{{ checksum "toolchain_key" }}
|
||||||
paths:
|
# paths:
|
||||||
- ~/cache/<< parameters.toolchain >>
|
# - ~/cache/<< parameters.toolchain >>
|
||||||
- run:
|
- run:
|
||||||
name: Install Toolchain
|
name: Install Toolchain
|
||||||
command: |
|
command: |
|
||||||
@ -25,11 +25,11 @@ commands:
|
|||||||
wget << parameters.toolchain_url>> -O toolchain.tar.gz
|
wget << parameters.toolchain_url>> -O toolchain.tar.gz
|
||||||
tar -C ~/cache/<< parameters.toolchain >> -xaf toolchain.tar.gz
|
tar -C ~/cache/<< parameters.toolchain >> -xaf toolchain.tar.gz
|
||||||
fi
|
fi
|
||||||
- save_cache:
|
# - save_cache:
|
||||||
name: Save Toolchain Cache
|
# name: Save Toolchain Cache
|
||||||
key: deps-{{ checksum "toolchain_key" }}
|
# key: deps-{{ checksum "toolchain_key" }}
|
||||||
paths:
|
# paths:
|
||||||
- ~/cache/<< parameters.toolchain >>
|
# - ~/cache/<< parameters.toolchain >>
|
||||||
- run:
|
- run:
|
||||||
name: Setup build environment
|
name: Setup build environment
|
||||||
command: |
|
command: |
|
||||||
|
@ -12,6 +12,7 @@ runs:
|
|||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Cache Toolchain
|
- name: Cache Toolchain
|
||||||
|
if: ${{ !startsWith(inputs.toolchain_url, 'https://github.com') }}
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
id: cache-toolchain-download
|
id: cache-toolchain-download
|
||||||
with:
|
with:
|
||||||
@ -22,7 +23,7 @@ runs:
|
|||||||
if: steps.cache-toolchain-download.outputs.cache-hit != 'true'
|
if: steps.cache-toolchain-download.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/cache/${{ inputs.toolchain }}
|
mkdir -p ~/cache/${{ inputs.toolchain }}
|
||||||
wget --progress=dot:mega ${{ inputs.toolchain_url }} -O toolchain.tar.gz
|
wget --progress=dot:giga ${{ inputs.toolchain_url }} -O toolchain.tar.gz
|
||||||
tar -C ~/cache/${{ inputs.toolchain }} -xaf toolchain.tar.gz
|
tar -C ~/cache/${{ inputs.toolchain }} -xaf toolchain.tar.gz
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user