Skip to content

Commit

Permalink
Update build-openwrt.yml
Browse files Browse the repository at this point in the history
Cache!

Signed-off-by: aUsernameWoW <[email protected]>
  • Loading branch information
aUsernameWoW authored May 19, 2024
1 parent 5953f24 commit 4a5b8f8
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/build-openwrt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,23 @@ jobs:
- name: Set up environment
run: |
sudo apt update
sudo apt install build-essential clang flex bison g++ gawk gcc-multilib g++-multilib gettext git libncurses5-dev libssl-dev python3-setuptools rsync swig unzip zlib1g-dev file wget
sudo apt install -y build-essential clang flex bison g++ gawk gcc-multilib g++-multilib gettext git libncurses5-dev libssl-dev python3-setuptools rsync swig unzip zlib1g-dev file wget
- name: Cache OpenWRT dl folder
uses: actions/cache@v3
with:
path: openwrt/dl
key: ${{ runner.os }}-openwrt-dl-${{ hashFiles('openwrt/feeds.conf.default') }}
restore-keys: |
${{ runner.os }}-openwrt-dl-
- name: Cache OpenWRT build_dir
uses: actions/cache@v3
with:
path: openwrt/build_dir
key: ${{ runner.os }}-openwrt-build-${{ hashFiles('openwrt/.config') }}
restore-keys: |
${{ runner.os }}-openwrt-build-
- name: Clone OpenWRT
run: |
Expand Down

0 comments on commit 4a5b8f8

Please sign in to comment.