diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1a59f71b2e..bb0a907d9c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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