forked from cryptonotefoundation/cryptonote
-
-
Notifications
You must be signed in to change notification settings - Fork 33
66 lines (62 loc) · 1.68 KB
/
macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: macOS
on:
workflow_dispatch:
push:
branches:
- 'main'
- 'dev'
- 'v*'
tags:
- 'v*'
paths-ignore:
- '**.md'
pull_request:
branches:
- 'main'
- 'dev'
- 'v*'
paths-ignore:
- '**.md'
env:
REMOVE_BUNDLED_BOOST : rm -rf /usr/local/share/boost
CCACHE_SETTINGS: |
ccache --max-size=150M
ccache --set-config=compression=true
jobs:
macos:
runs-on: macos-latest
env:
HOMEBREW_MAKE_JOBS: 2
HOMEBREW_NO_AUTO_UPDATE: 1
CCACHE_TEMPDIR: /tmp/.ccache-temp
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- uses: actions/cache@v2
with:
path: /Users/runner/Library/Caches/ccache
key: ccache-${{ runner.os }}-build-${{ github.sha }}
restore-keys: ccache-${{ runner.os }}-build-
- name: install dependencies
run: |
brew install hidapi openssl zmq libpgm miniupnpc ldns expat libunwind-headers protobuf ccache
brew install mitchellh/gon/gon
brew install --build-from-source ./utils/homebrew/[email protected]
- name: build
run: |
${{env.CCACHE_SETTINGS}}
make release-static-mac-x86_64 -j${HOMEBREW_MAKE_JOBS}
- run: LETHEAN_RELEASE=lethean-cli-macos make zip-release
- run: chmod +x build/packaged/lethean*
- uses: actions/upload-artifact@v2
with:
name: lethean-cli-macos
path: |
${{ github.workspace }}/build/lethean-cli-macos.tar
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
${{ github.workspace }}/build/lethean-cli-macos.tar