-
Notifications
You must be signed in to change notification settings - Fork 3
82 lines (68 loc) · 1.9 KB
/
osx-build.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
name: OSX build (Intel)
on:
push:
release:
types:
- created
jobs:
build:
runs-on: macos-11
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Cache Conan libs
id: cache-conan
uses: pat-s/[email protected]
with:
path: /Users/runner/.conan
key: conan-osx
- name: Install conan
run: |
python -m pip install --upgrade pip
pip install conan==1.*
# gitlab support
conan config set general.revisions_enabled=1
conan remote add gitlab https://gitlab.com/api/v4/packages/conan
conan user gitlab+deploy-token-653038 -r gitlab -p sBwmejFz5Pn-gZPSNFMy
- name: Install libraries
run: |
mkdir ${{github.workspace}}/bin
cd ${{github.workspace}}/bin
conan install .. -o unit_test=True --build=qhull --build=missing
- name: Build
run: |
cd ${{github.workspace}}/bin
conan build ..
- name: Installer DND
run: |
cd ${{github.workspace}}/bin
cpack -G DragNDrop
- name: Upload
uses: actions/upload-artifact@v3
with:
path: |
${{github.workspace}}/bin/*.dmg
upload_all:
name: Upload if release
needs: [build]
runs-on: ubuntu-22.04
if: github.event_name == 'release' && github.event.action == 'created'
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist
- name: Upload to releases
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "dist/*.dmg"
tags: true
draft: true
verbose: true