Trying caching
This commit is contained in:
Родитель
2f897fb5a8
Коммит
f6f6e0c5e5
|
@ -8,6 +8,8 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
env:
|
||||
GCC_VERSION: '9-2019-q4'
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
@ -18,10 +20,27 @@ jobs:
|
|||
- uses: actions/setup-node@v2-beta
|
||||
with:
|
||||
node-version: 'v12'
|
||||
- uses: fiam/arm-none-eabi-gcc@v1
|
||||
|
||||
- name: Restore ARM GCC Cache
|
||||
id: arm-gcc-cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
release: '9-2019-q4'
|
||||
path: arm-gcc
|
||||
key: ${{ runner.os }}-arm-gcc-${{ env.GCC_VERSION }}
|
||||
- name: Install ARM GCC
|
||||
if: steps.arm-gcc-cache.outputs.cache-hit != 'true'
|
||||
uses: fiam/arm-none-eabi-gcc@v1
|
||||
with:
|
||||
release: ${{ env.GCC_VERSION }}
|
||||
directory: arm-gcc
|
||||
- name: Save ARM GCC cache
|
||||
if: steps.arm-gcc-cache.outputs.cache-hit != 'true'
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: arm-gcc
|
||||
key: ${{ runner.os }}-arm-gcc-${{ env.GCC_VERSION }}
|
||||
- name: set PATH
|
||||
run: echo "::add-path::arm-gcc"
|
||||
|
||||
- name: make
|
||||
run: make TARGET=jm-v2.0 drop
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче