Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger release workflow manually #4105

Merged
merged 12 commits into from
Mar 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/actions/tagname-action/action.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
name: 'Extract tag information'
description: 'Extract tag information'
name: "Extract tag information"
description: "Extract tag information"
outputs:
tag:
description: 'tag name'
description: "tag name"
value: ${{ steps.tag.outputs.tag }}
tagnum:
description: 'tag number'
description: "tag number"
value: ${{ steps.tag.outputs.tagnum }}
majorver:
description: 'major version'
description: "major version"
value: ${{ steps.tag.outputs.majorver }}
runs:
using: "composite"
steps:
- id: tag
run: |
tag=$(echo ${{ github.ref }} | rev | cut -d/ -f1 | rev)
tagnum=$(echo $tag | sed 's/^v//')
majorver=$(echo $tag | cut -d '.' -f 1)
tagnum=$(echo $tag | sed "s/^v//")
majorver=$(echo $tag | cut -d "." -f 1)
echo "::set-output name=tag::$tag"
echo "::set-output name=tagnum::$tagnum"
echo "::set-output name=majorver::$majorver"
Expand Down
33 changes: 16 additions & 17 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ jobs:
find pkg-build/cpack_output -type f \( -iname \*.deb -o -iname \*.rpm -o -iname \*.tar.gz \) -exec bash -c "sha256sum {} > {}.sha256sum.txt" \;
subdir=$(date -u +%Y.%m.%d)
echo "::set-output name=subdir::$subdir"
- uses: actions/upload-artifact@v1
with:
name: ${{ matrix.os }}-nightly
path: pkg-build/cpack_output
# - uses: actions/upload-artifact@v1
# with:
# name: ${{ matrix.os }}-nightly
# path: pkg-build/cpack_output
- uses: ./.github/actions/upload-to-oss-action
with:
key-id: ${{ secrets.OSS_ID }}
Expand All @@ -75,12 +75,12 @@ jobs:
with:
run: sh -c "find . -mindepth 1 -delete"
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: docker/build-push-action@v2
with:
context: .
Expand All @@ -97,9 +97,9 @@ jobs:
fail-fast: false
matrix:
os:
- ubuntu2004
- centos7
compiler:
- gcc-9.2
- gcc-9.3
container:
image: vesoft/nebula-dev:${{ matrix.os }}
env:
Expand All @@ -114,26 +114,25 @@ jobs:
run: sh -c "find . -mindepth 1 -delete"
- uses: actions/checkout@v2
- name: Prepare environment
id: prepare
run: |
[ -d build/ ] && rm -rf build/* || mkdir -p build
make init -C tests
- name: CMake
id: cmake
run: |
cmake \
-DCMAKE_CXX_COMPILER=$TOOLSET_CLANG_DIR/bin/g++ \
-DCMAKE_C_COMPILER=$TOOLSET_CLANG_DIR/bin/gcc \
-DCMAKE_CXX_COMPILER=$TOOLSET_GCC_DIR/bin/g++ \
-DCMAKE_C_COMPILER=$TOOLSET_GCC_DIR/bin/gcc \
-DCMAKE_BUILD_TYPE=Debug \
-DENABLE_TESTING=on \
-DENABLE_COVERAGE=on \
-GNinja
-B build
echo "::set-output name=j::8"
- name: Make
run: |
ccache -z
cmake --build build/ -j $(nproc)
ninja -j $(nproc)
ccache -s
working-directory: build/
- name: CTest
env:
ASAN_OPTIONS: fast_unwind_on_malloc=1
Expand All @@ -147,12 +146,12 @@ jobs:
timeout-minutes: 2
- name: Pytest
run: |
make RM_DIR=false DEBUG=false J=${{ steps.cmake.outputs.j }} test
make RM_DIR=false DEBUG=false J=8 test
working-directory: tests/
timeout-minutes: 15
- name: TCK
run: |
make RM_DIR=false DEBUG=false J=${{ steps.cmake.outputs.j }} tck
make RM_DIR=false DEBUG=false J=8 tck
working-directory: tests/
timeout-minutes: 60
- name: Down cluster
Expand All @@ -162,7 +161,7 @@ jobs:
timeout-minutes: 2
- name: coverage
run: |
~/.local/bin/fastcov -d build -l -o fastcov.info -p --exclude /usr/include --exclude=/opt/vesoft --exclude scanner.lex
~/.local/bin/fastcov -d build -l -o fastcov.info -p --exclude /usr/include --exclude=/opt/vesoft --exclude scanner.lex
- uses: codecov/codecov-action@v2
with:
files: fastcov.info
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [synchronize, reopened, labeled]
branches:
- master
- 'v[0-9]+.*'
- 'release-**'
HarrisChu marked this conversation as resolved.
Show resolved Hide resolved

concurrency:
group: ${{ github.head_ref }}
Expand Down Expand Up @@ -183,11 +183,11 @@ jobs:
working-directory: tests/
timeout-minutes: 2
- name: coverage
if: ${{ matrix.compiler == 'gcc-9.2' && matrix.os == 'ubuntu2004' }}
if: ${{ matrix.compiler == 'gcc-9.3' && matrix.os == 'ubuntu2004' }}
run: |
~/.local/bin/fastcov -d build -l -o fastcov.info -p --exclude /usr/include --exclude=/opt/vesoft --exclude scanner.lex
- uses: codecov/codecov-action@v2
if: ${{ matrix.compiler == 'gcc-9.2' && matrix.os == 'ubuntu2004' }}
if: ${{ matrix.compiler == 'gcc-9.3' && matrix.os == 'ubuntu2004' }}
with:
files: fastcov.info
fail_ci_if_error: false
Expand Down Expand Up @@ -227,7 +227,6 @@ jobs:
run: sh -c "find . -mindepth 1 -delete"
- uses: actions/checkout@v2
- name: Prepare environment
id: prepare
run: |
[ -d build/ ] && rm -rf build/* || mkdir -p build
make init -C tests
Expand Down
19 changes: 12 additions & 7 deletions .github/workflows/rc.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: rc

on:
push:
branches:
- 'v[0-9]+.*'
workflow_dispatch:
inputs:
version:
description: "version such as '3.1.0'"
required: true

concurrency:
group: rc
Expand Down Expand Up @@ -40,8 +42,8 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: '^1.16.7'
- uses: ./.github/actions/tagname-action
id: tag
- id: tag
run: echo ::set-output name=tagnum::${{ github.event.inputs.version }}
- name: package
run: ./package/package.sh -v ${{ steps.tag.outputs.tagnum }} -t RelWithDebInfo -r OFF -p ON -s TRUE -k ON
- name: output some vars
Expand Down Expand Up @@ -81,8 +83,11 @@ jobs:
with:
run: sh -c "find . -mindepth 1 -delete"
- uses: actions/checkout@v2
- uses: ./.github/actions/tagname-action
id: tagname
- id: tagname
run: |
echo ::set-output name=tag::"v${{ github.event.inputs.version }}"
echo ::set-output name=tagnum::"${{ github.event.inputs.version }}"
echo ::set-output name=majorver::"v$(echo ${{ github.event.inputs.version }} | cut -f1 -d'.')"
- id: docker
run: |
majorver=$(git tag -l --sort=v:refname | tail -n1 | cut -f1 -d".")
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
id: tagname
- id: docker
run: |
majorver=$(git tag -l --sort=v:refname | tail -n1 | cut -f1 -d'.')
majorver=$(git tag -l --sort=v:refname | tail -n1 | cut -f1 -d".")
tag=""
if [[ $majorver == ${{ steps.tagname.outputs.majorver }} ]]; then
tag="latest"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ modules/

# tests
!tests/Makefile
tests/secrets
Aiee marked this conversation as resolved.
Show resolved Hide resolved
reformat-gherkin
nebula-python

Expand Down