-
Notifications
You must be signed in to change notification settings - Fork 25
45 lines (42 loc) · 1.21 KB
/
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
name: cpp_release
on:
release:
types:
- published
defaults:
run:
shell: bash
jobs:
cpp-package:
name: package
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os:
- ubuntu1604
- ubuntu1804
- ubuntu2004
- centos6
- centos7
- centos8
container:
image: vesoft/nebula-dev:${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: ./.github/actions/tagname-action
id: tag
- name: package
if: ${{ contains(fromJson('["centos6", "centos7"]'), matrix.os) }}
run: ./package/package.sh -b ${{ steps.tag.outputs.tag }} -a ON
- name: package abi 11
if: ${{ contains(fromJson('["centos8", "ubuntu1604", "ubuntu1804", "ubuntu2004"]'), matrix.os) }}
run: ./package/package.sh -b ${{ steps.tag.outputs.tag }}
- name: Get package name
id: pkg
run: |
echo "::set-output name=filepath::$(find build/cpack_output -type f \( -iname \*.deb -o -iname \*.rpm \))"
- uses: ./.github/actions/upload-assets-action
with:
file-path: ${{ steps.pkg.outputs.filepath }}
tag: ${{ steps.tag.outputs.tag }}