Skip to content

Commit

Permalink
Set up ccache and buildroot download cache in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
icedream committed Jun 12, 2022
1 parent 2b6e83d commit a8b601f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ jobs:
build:
runs-on: [ self-hosted, ubuntu ]

strategy:
matrix:
model:
- JC11

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Install dependencies
Expand All @@ -32,6 +37,19 @@ jobs:
unzip \
wget \
xz-utils
- name: Set up caching for buildroot downloads
uses: actions/cache@v1
with:
path: ~/buildroot-dl
key: buildroot-dl
- name: Set up ccache
uses: hendrikmuhs/[email protected]
with:
key: ${{ matrix.model }}
- name: Set up environment for buildroot
run: |
export BR2_CCACHE=y
export BR2_DL_DIR="$HOME/buildroot-dl"
- name: Set up Git for patching
run: |
git config --global user.name "Buildroot"
Expand Down

0 comments on commit a8b601f

Please sign in to comment.