aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2020-05-03 00:29:33 +0200
committerselsta <selsta@sent.at>2020-12-11 12:39:40 +0100
commit12a422c0935d19915c143114d682b3208f6edf8d (patch)
tree4e4ba99cb89ad68f90777f2e204cade4295dae93 /.github/workflows
parentMerge pull request #7072 (diff)
downloadmonero-12a422c0935d19915c143114d682b3208f6edf8d.tar.xz
workflows: add ccache support
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml43
1 files changed, 37 insertions, 6 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 806c8a0fc..1316249e7 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -5,14 +5,24 @@ on: [push, pull_request]
jobs:
build-macos:
runs-on: macOS-latest
+ env:
+ CCACHE_COMPRESS: 1
+ CCACHE_TEMPDIR: /tmp/.ccache-temp
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
+ - uses: actions/cache@v2
+ with:
+ path: ~/.ccache
+ key: ccache-macos-build-${{ github.sha }}
+ restore-keys: ccache-macos-build-
- name: install dependencies
- run: HOMEBREW_NO_AUTO_UPDATE=1 brew install boost hidapi zmq libpgm miniupnpc ldns expat libunwind-headers protobuf
+ run: HOMEBREW_NO_AUTO_UPDATE=1 brew install boost hidapi zmq libpgm miniupnpc ldns expat libunwind-headers protobuf ccache
- name: build
- run: make -j3
+ run: |
+ ccache --max-size=150M
+ make -j3
build-windows:
runs-on: windows-latest
@@ -32,10 +42,18 @@ jobs:
build-ubuntu:
runs-on: ubuntu-latest
+ env:
+ CCACHE_COMPRESS: 1
+ CCACHE_TEMPDIR: /tmp/.ccache-temp
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
+ - uses: actions/cache@v2
+ with:
+ path: ~/.ccache
+ key: ccache-ubuntu-build-${{ github.sha }}
+ restore-keys: ccache-ubuntu-build-
- name: remove bundled boost
run: sudo rm -rf /usr/local/share/boost
- name: set apt conf
@@ -46,16 +64,26 @@ jobs:
- name: update apt
run: sudo apt update
- name: install monero dependencies
- run: sudo apt -y install build-essential cmake libboost-all-dev miniupnpc libunbound-dev graphviz doxygen libunwind8-dev pkg-config libssl-dev libzmq3-dev libsodium-dev libhidapi-dev libnorm-dev libusb-1.0-0-dev libpgm-dev libprotobuf-dev protobuf-compiler
+ run: sudo apt -y install build-essential cmake libboost-all-dev miniupnpc libunbound-dev graphviz doxygen libunwind8-dev pkg-config libssl-dev libzmq3-dev libsodium-dev libhidapi-dev libnorm-dev libusb-1.0-0-dev libpgm-dev libprotobuf-dev protobuf-compiler ccache
- name: build
- run: make -j3
+ run: |
+ ccache --max-size=150M
+ make -j3
libwallet-ubuntu:
runs-on: ubuntu-latest
+ env:
+ CCACHE_COMPRESS: 1
+ CCACHE_TEMPDIR: /tmp/.ccache-temp
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
+ - uses: actions/cache@v2
+ with:
+ path: ~/.ccache
+ key: ccache-ubuntu-libwallet-${{ github.sha }}
+ restore-keys: ccache-ubuntu-libwallet-
- name: remove bundled boost
run: sudo rm -rf /usr/local/share/boost
- name: set apt conf
@@ -66,9 +94,12 @@ jobs:
- name: update apt
run: sudo apt update
- name: install monero dependencies
- run: sudo apt -y install build-essential cmake libboost-all-dev miniupnpc libunbound-dev graphviz doxygen libunwind8-dev pkg-config libssl-dev libzmq3-dev libsodium-dev libhidapi-dev libnorm-dev libusb-1.0-0-dev libpgm-dev libprotobuf-dev protobuf-compiler
+ run: sudo apt -y install build-essential cmake libboost-all-dev miniupnpc libunbound-dev graphviz doxygen libunwind8-dev pkg-config libssl-dev libzmq3-dev libsodium-dev libhidapi-dev libnorm-dev libusb-1.0-0-dev libpgm-dev libprotobuf-dev protobuf-compiler ccache
- name: build
- run: cmake -DBUILD_GUI_DEPS=ON && make -j3
+ run: |
+ ccache --max-size=150M
+ cmake -DBUILD_GUI_DEPS=ON
+ make -j3
test-ubuntu:
needs: build-ubuntu