Update build.yml

This commit is contained in:
klzgrad 2021-02-28 23:32:09 +08:00 committed by GitHub
parent 444cc9b7f7
commit a959ec09bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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