-
-
Notifications
You must be signed in to change notification settings - Fork 4
87 lines (65 loc) · 1.74 KB
/
build_release.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Build Release
on:
workflow_dispatch:
jobs:
### x86-64 linux
build-linux_x86_64:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up alire
uses: alire-project/setup-alire@v3
- name: Build yass
run: >
alr -n update &&
alr -n build --release
- name: Compress yass
run: zip -r yass-linux_x86_64.zip bin
- name: Upload yass
uses: actions/upload-artifact@v2
with:
name: yass-linux_x86_64.zip
path: yass-linux_x86_64.zip
### x86-64 MacOS
build-macos_x86_64:
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3
- name: install latest xcode stuff
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Set up alire
uses: alire-project/setup-alire@v3
- name: Build yass
run: >
alr -n update &&
alr -n build --release
- name: Compress yass
run: zip -r yass-mac_x86_64.zip bin
- name: Upload yass
uses: actions/upload-artifact@v2
with:
name: yass-mac_x86_64.zip
path: yass-mac_x86_64.zip
### build on windows
build-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up alire
uses: alire-project/setup-alire@v3
- name: Build yass
run: >
alr -n update &&
alr -n build --release
- name: Compress yass
run: 7z a -tzip yass-win.zip bin
- name: upload yass
uses: actions/upload-artifact@v2
with:
name: yass-win.zip
path: yass-win.zip