Update build.yml

This commit is contained in:
klzgrad 2021-02-28 22:30:08 +08:00 committed by GitHub
parent da2367647e
commit 0470eb07da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,8 +19,16 @@ jobs:
BUNDLE: 'naiveproxy-${{ github.event.release.tag_name }}-${{ github.job }}-${{ matrix.arch }}'
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.ccache
key: ccache-${{ github.job }}-${{ matrix.arch }}-${{ hashFiles('CHROMIUM_VERSION') }}
- uses: actions/cache@v2
with:
path: src/out/sysroot-build/
key: sysroot-${{ github.job }}-${{ matrix.arch }}-${{ hashFiles('CHROMIUM_VERSION') }}
- run: sudo apt update
- run: sudo apt install ninja-build pkg-config libnss3-dev qemu-user
- run: sudo apt install ninja-build pkg-config libnss3-dev qemu-user ccache
# libc6-i386 interferes with x86 build
- run: sudo apt remove libc6-i386
- run: ./get-clang.sh
@ -51,6 +59,10 @@ jobs:
BUNDLE: 'naiveproxy-${{ github.event.release.tag_name }}-${{ github.job }}-${{ matrix.arch }}'
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: '%LOCALAPPDATA%\Mozilla\sccache'
key: ccache-${{ github.job }}-${{ matrix.arch }}-${{ hashFiles('CHROMIUM_VERSION') }}
- run: cinst ninja
- run: ./get-clang.sh
working-directory: src
@ -78,7 +90,11 @@ jobs:
BUNDLE: 'naiveproxy-${{ github.event.release.tag_name }}-${{ github.job }}-${{ matrix.arch }}'
steps:
- uses: actions/checkout@v2
- run: brew install ninja
- uses: actions/cache@v2
with:
path: ~/.ccache
key: ccache-${{ github.job }}-${{ matrix.arch }}-${{ hashFiles('CHROMIUM_VERSION') }}
- run: brew install ninja ccache
- run: ./get-clang.sh
working-directory: src
- run: ./build.sh
@ -131,8 +147,16 @@ jobs:
BUNDLE: 'naiveproxy-${{ github.event.release.tag_name }}-${{ github.job }}-${{ matrix.arch }}'
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.ccache
key: ccache-${{ github.job }}-${{ matrix.arch }}-${{ hashFiles('CHROMIUM_VERSION') }}
- uses: actions/cache@v2
with:
path: src/out/sysroot-build/
key: openwrt-${{ github.job }}-${{ matrix.arch }}-19.07.7
- run: sudo apt update
- run: sudo apt install ninja-build pkg-config libnss3-dev qemu-user
- run: sudo apt install ninja-build pkg-config libnss3-dev qemu-user ccache
# libc6-i386 interferes with x86 build
- run: sudo apt remove libc6-i386
- run: ./get-clang.sh