-
Notifications
You must be signed in to change notification settings - Fork 1
88 lines (75 loc) · 2.21 KB
/
deploy.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
88
name: Deploy
on:
release:
types:
- created
jobs:
########################################################################################
checkout:
name: Checkout
strategy:
matrix:
machine: [x64_linux, x64_mac, arm64_linux, arm64_mac]
runs-on: [self-hosted, clusty, '${{ matrix.machine }}']
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Get tags
run: |
cd ./libs/igraph
echo exit code $?
git tag --list
########################################################################################
make:
name: Make
needs: checkout
strategy:
fail-fast: false
matrix:
machine: [x64_linux, arm64_linux]
leiden: [true]
include:
- machine: x64_mac
leiden: false
- machine: arm64_mac
leiden: false
runs-on: [self-hosted, clusty, '${{ matrix.machine }}']
steps:
- name: make
run: |
make clean
make -j32 CXX=g++-12 STATIC_LINK=true LEIDEN=${{ matrix.leiden }}
- name: tar artifacts
run: tar -cvzf clusty.tar.gz clusty LICENSE
########################################################################################
help:
name: Print usage
needs: make
strategy:
fail-fast: false
matrix:
machine: [x64_linux, x64_mac, arm64_linux, arm64_mac]
runs-on: [self-hosted, clusty, '${{ matrix.machine }}']
steps:
- name: help
run: ./clusty
########################################################################################
upload:
name: Upload
needs: help
strategy:
fail-fast: false
matrix:
machine: [x64_linux, x64_mac, arm64_linux, arm64_mac]
runs-on: [self-hosted, clusty, '${{ matrix.machine }}']
steps:
- name: deploy
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./clusty.tar.gz
asset_name: clusty-${{ github.event.release.tag_name }}-${{matrix.machine}}.tar.gz
asset_content_type: application/gzip