From a959ec09bc12832381f2eff8eba4679ee66db5f4 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Sun, 28 Feb 2021 23:32:09 +0800 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e95cd44119..6b8ba48f76 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,6 +27,13 @@ jobs: with: path: src/out/sysroot-build/ key: sysroot-${{ github.job }}-${{ matrix.arch }}-${{ hashFiles('CHROMIUM_VERSION') }} + - uses: actions/cache@v2 + with: + path: | + src/third_party/llvm-build/Release+Asserts/ + src/chrome/android/profiles/ + src/chrome/build/pgo_profiles/ + key: toolchain-linux-${{ hashFiles('CHROMIUM_VERSION') }} - run: sudo apt update - run: sudo apt install ninja-build pkg-config libnss3-dev qemu-user ccache # libc6-i386 interferes with x86 build @@ -63,8 +70,14 @@ jobs: - uses: actions/checkout@v2 - uses: actions/cache@v2 with: - path: '%LOCALAPPDATA%\Mozilla\sccache' + path: ~/AppData/Local/Mozilla/sccache key: ccache-${{ github.job }}-${{ matrix.arch }}-${{ hashFiles('CHROMIUM_VERSION') }} + - uses: actions/cache@v2 + with: + path: | + src/third_party/llvm-build/Release+Asserts/ + src/chrome/build/pgo_profiles/ + key: toolchain-win-${{ hashFiles('CHROMIUM_VERSION') }} - run: cinst ninja - run: ./get-clang.sh working-directory: src @@ -96,8 +109,14 @@ jobs: - uses: actions/checkout@v2 - uses: actions/cache@v2 with: - path: ~/.ccache + path: ~/Library/Caches/ccache key: ccache-${{ github.job }}-${{ matrix.arch }}-${{ hashFiles('CHROMIUM_VERSION') }} + - uses: actions/cache@v2 + with: + path: | + src/third_party/llvm-build/Release+Asserts/ + src/chrome/build/pgo_profiles/ + key: toolchain-mac-${{ hashFiles('CHROMIUM_VERSION') }} - run: brew install ninja ccache - run: ./get-clang.sh working-directory: src @@ -161,6 +180,13 @@ jobs: with: path: src/out/sysroot-build/ key: openwrt-${{ github.job }}-${{ matrix.arch }}-19.07.7 + - uses: actions/cache@v2 + with: + path: | + src/third_party/llvm-build/Release+Asserts/ + src/chrome/android/profiles/ + src/chrome/build/pgo_profiles/ + key: toolchain-linux-${{ hashFiles('CHROMIUM_VERSION') }} - run: sudo apt update - run: sudo apt install ninja-build pkg-config libnss3-dev qemu-user ccache # libc6-i386 interferes with x86 build