-
Notifications
You must be signed in to change notification settings - Fork 5
58 lines (56 loc) · 1.56 KB
/
main.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
name: macIntel
on: push
jobs:
build:
runs-on: macos-12
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Tag latest
uses: EndBug/latest-tag@latest
with:
description: Latest
- name: Prepare
run: |
brew install objc-codegenutils objc-run
brew install libomp git cmake fftw gcc qt lcov pkg-config zlib cmake libtiff cfitsio hdf5 gsl pandoc vulkan-headers
- name: Deps
run: |
brew install --force iltommi/brews/hdf4
brew install --force iltommi/brews/clfft
- name: PyhtonQt
run: |
git clone https://github.com/iltommi/pythonqt.git
cd pythonqt
cd generator
qmake -r generator.pro
make -j10
QTDIR=$(brew --prefix qt) ./pythonqt_generator
cd ..
QTDIR=$(brew --prefix qt) qmake -r
make -j10
INSTALL_ROOT=$(brew --prefix) make install
cd ..
continue-on-error: true
- name: Build
run: |
mkdir -p build && cd build
cmake ..
make -j$(sysctl -n hw.ncpu) install
../resources/macPackage/prepareapp.sh
- name: Archive
uses: actions/upload-artifact@v4
with:
name: Neutrino.zip
path: "build/Neutrino*.zip"
- name: Upload
if: github.ref == 'refs/heads/master'
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "build/Neutrino*.zip"
update_latest_release: true
overwrite: true