summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorScott <[email protected]>2019-11-10 20:26:33 +0000
committerScott <[email protected]>2019-11-15 22:14:47 +0000
commit672acfece33ca0301e2b1fa5e4c1f6c4ece8268c (patch)
tree2f599c4d501ae9a122c74ada67ed6874403051ad /.github
parent6981889d90a27f71448e2edad40a1bcccbf353fd (diff)
Add caching to the mac build toolchain
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/mac.yml10
1 files changed, 9 insertions, 1 deletions
diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml
index 18f2cdce8..342806cd6 100644
--- a/.github/workflows/mac.yml
+++ b/.github/workflows/mac.yml
@@ -10,7 +10,15 @@ jobs:
steps:
- uses: actions/checkout@master
+ - name: Toolchain Cache
+ id: mac-toolchain
+ uses: actions/cache@v1
+ with:
+ path: /usr/local
+ key: mac-toolchain
+
- name: Setup Environment
+ if: steps.mac-toolchain.outputs.cache-hit != 'true'
run: |
scripts/mac-toolchain-build /usr/local
@@ -18,4 +26,4 @@ jobs:
run: |
./configure --launch-jobs=$(sysctl -n hw.ncpu) --launch
cd build
- make pkg.create \ No newline at end of file
+ make pkg.create