forked from cryptonotefoundation/cryptonote
-
-
Notifications
You must be signed in to change notification settings - Fork 33
68 lines (64 loc) · 1.97 KB
/
windows.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
66
67
name: mingw 64
on:
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:
windows:
runs-on: windows-latest
env:
CCACHE_TEMPDIR: C:\Users\runneradmin\.ccache-temp
CCACHE_DIR: C:\Users\runneradmin\.ccache
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- uses: actions/cache@v2
with:
path: C:\Users\runneradmin\.ccache
key: ccache-${{ runner.os }}-build-${{ github.sha }}
restore-keys: ccache-${{ runner.os }}-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-ccache 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 mingw-w64-x86_64-unbound mingw-w64-x86_64-winpthreads-git mingw-w64-x86_64-libwinpthread-git git
- name: build
run: |
${{env.CCACHE_SETTINGS}}
make release-static-win64-boost
make release-static-win64 -j2
- run: LETHEAN_RELEASE=lethean-cli-windows make zip-release
- uses: actions/upload-artifact@v2
with:
name: windows.tar
path: ${{ github.workspace }}\build\lethean-cli-windows.tar
- name: Get the version
id: get_version
if: startsWith(github.ref, 'refs/tags/')
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ${{ github.workspace }}\build\lethean-cli-windows.tar