Try to cache the files Arduino downloads

pull/1147/head
Jesse Vincent 3 years ago
parent 938536f553
commit 430b5bac53
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -11,18 +11,28 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Cache arduino dep downloads
## We delete the Bundle's version of Kaleidoscope, and symlink ourselves in. uses: actions/cache@v2
## This makes sure we're using the current version of the library. with:
- run: sudo apt-get install ccache path: ${{ github.workspace}}/.arduino/downloads
key: ${{ runner.os }}-arduino-downloads
- run: sudo apt update
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
- run: make setup - run: make setup
- run: make -j $(nproc) smoke-sketches - run: make -j $(nproc) smoke-sketches
run-google-tests: run-google-tests:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
# - uses: mxschmitt/action-tmate@v3 - name: Cache arduino dep downloads
- run: sudo apt-get install ccache uses: actions/cache@v2
with:
path: ${{ github.workspace}}/.arduino/downloads
key: ${{ runner.os }}-arduino-downloads
- run: sudo apt update
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
- run: make setup - run: make setup
- run: make -j $(nproc) simulator-tests - run: make -j $(nproc) simulator-tests
check-formatting: check-formatting:

@ -92,7 +92,6 @@ compile-sketch: ${TEST_OBJS}
# If we have a test.ktest file, it should be processed into a c++ testcase # If we have a test.ktest file, it should be processed into a c++ testcase
.PHONY: generate-testcase .PHONY: generate-testcase
generate-testcase: $(if $(HAS_KTEST_FILE), ${SRC_DIR}/generated-testcase.cpp) generate-testcase: $(if $(HAS_KTEST_FILE), ${SRC_DIR}/generated-testcase.cpp)

Loading…
Cancel
Save