diff options
author | mj-xmr <mjxmr@protonmail.com> | 2021-02-13 20:03:14 +0100 |
---|---|---|
committer | mj-xmr <mjxmr@protonmail.com> | 2021-02-17 14:04:21 +0100 |
commit | 21566fef9b9ad4226d4d401b9610038c36d889e5 (patch) | |
tree | 06cf4131123e6a6cc4084c54d3b06d04c3bb85fb /.github/workflows/build.yml | |
parent | Merge pull request #7311 from selsta/miniupnp (diff) | |
download | monero-21566fef9b9ad4226d4d401b9610038c36d889e5.tar.xz |
[CI] Add ccache to Windows build
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r-- | .github/workflows/build.yml | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c6ed13e62..c9c88eccd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,6 +26,10 @@ jobs: build-windows: runs-on: windows-latest + env: + CCACHE_COMPRESS: 1 + CCACHE_TEMPDIR: C:\Users\runneradmin\.ccache-temp + CCACHE_DIR: C:\Users\runneradmin\.ccache defaults: run: shell: msys2 {0} @@ -33,12 +37,19 @@ jobs: - uses: actions/checkout@v1 with: submodules: recursive + - uses: actions/cache@v2 + with: + path: C:\Users\runneradmin\.ccache + key: ccache-windows-build-${{ github.sha }} + restore-keys: ccache-windows-build- - uses: eine/setup-msys2@v2 with: update: true - install: mingw-w64-x86_64-toolchain make mingw-w64-x86_64-cmake mingw-w64-x86_64-boost mingw-w64-x86_64-openssl mingw-w64-x86_64-zeromq mingw-w64-x86_64-libsodium mingw-w64-x86_64-hidapi mingw-w64-x86_64-protobuf-c mingw-w64-x86_64-libusb git + install: mingw-w64-x86_64-toolchain make mingw-w64-x86_64-cmake mingw-w64-x86_64-ccache mingw-w64-x86_64-boost mingw-w64-x86_64-openssl mingw-w64-x86_64-zeromq mingw-w64-x86_64-libsodium mingw-w64-x86_64-hidapi mingw-w64-x86_64-protobuf-c mingw-w64-x86_64-libusb git - name: build - run: make release-static-win64 -j2 + run: | + ccache --max-size=150M + make release-static-win64 -j2 build-ubuntu: runs-on: ubuntu-latest |