Skip to content

Commit

Permalink
fix: fix bad links and bad image names (#1154)
Browse files Browse the repository at this point in the history
  • Loading branch information
acelyc111 committed Sep 28, 2022
1 parent a103b59 commit 3201aa4
Show file tree
Hide file tree
Showing 3 changed files with 164 additions and 2 deletions.
162 changes: 162 additions & 0 deletions .github/workflows/regular-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
---
name: Lint and build regularly

on:
push:
paths:
- '.github/workflows/regular-build.yml'
branches:
- master
- 'v[0-9]+.*' # release branch
- ci-test # testing branch for github action
- '*dev' # developing branch

# for manually triggering workflow
workflow_dispatch:

# run for every day 2am UTC+8(Beijing)
schedule:
- cron: '0 18 */1 * *'

jobs:
lint_cpp:
name: Lint Cpp
runs-on: ubuntu-latest
container:
image: apache/pegasus:clang-format-3.9
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
submodules: true
- name: clang-format
run: ./scripts/run-clang-format.py --clang-format-executable clang-format-3.9 -e ./src/shell/linenoise -e ./src/shell/sds -e ./thirdparty -r .

build_cpp:
name: Build Cpp
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os:
- ubuntu1604
- ubuntu1804
- ubuntu2004
- centos6
- centos7
compiler-family:
- gcc
include:
- compiler-family: clang
compiler: "clang-10,clang++-10"
os: ubuntu2004
- compiler-family: clang
compiler: "clang-9,clang++-9"
os: ubuntu1804
container:
image: apache/pegasus:thirdparties-bin-${{ matrix.os }}-${{ github.ref_name }}
defaults:
run:
working-directory: /root/incubator-pegasus
steps:
- name: Clone Apache Pegasus Source
working-directory: /root
run: |
git clone -b ${{ github.ref_name }} --depth=1 https://github.com/apache/incubator-pegasus.git
- name: Unpack prebuilt third-parties
run: unzip /root/thirdparties-bin.zip -d ./thirdparty
- name: Compilation Pegasus on GCC
if: ${{ matrix.compiler-family == 'gcc' }}
run: ./run.sh build -c --skip_thirdparty
- name: Compilation Pegasus on Clang
if: ${{ matrix.compiler-family == 'clang' }}
env:
COMPILER: ${{ matrix.compiler }}
run: ./run.sh build --test --compiler $COMPILER --skip_thirdparty -j $(nproc)
- name: Packaging Server
run: ./run.sh pack_server

lint_go:
name: Lint Golang
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: go-client
uses: golangci/golangci-lint-action@v3
with:
version: v1.29
working-directory: ./go-client
- name: admin-cli
uses: golangci/golangci-lint-action@v3
with:
version: v1.29
working-directory: ./admin-cli
- name: pegic
uses: golangci/golangci-lint-action@v3
with:
version: v1.29
working-directory: ./pegic

build_go:
name: Build Golang
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
- name: Build go-client
run: make
working-directory: ./go-client
- name: Build admin-cli
run: make
working-directory: ./admin-cli
- name: Build pegic
run: make
working-directory: ./pegic

build_java:
name: Build Java
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8', '11']
steps:
- uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Build
working-directory: ./java-client
run: |
cd idl && bash recompile_thrift.sh && cd -
mvn spotless:apply
mvn clean package -DskipTests
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ under the License.

![pegasus-logo](https://github.com/apache/incubator-pegasus-website/blob/master/assets/images/pegasus-logo-inv.png)

[![BuildPegasusRegularly - build pegasus and rdsn on different env every day](https://github.com/apache/incubator-pegasus/actions/workflows/pegasus-regular-build.yml/badge.svg)](https://github.com/apache/incubator-pegasus/actions/workflows/pegasus-regular-build.yml)
[![Lint and build regularly](https://github.com/apache/incubator-pegasus/actions/workflows/regular-build.yml/badge.svg)](https://github.com/apache/incubator-pegasus/actions/workflows/regular-build.yml)
[![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html)
[![Releases](https://img.shields.io/github/release/apache/incubator-pegasus.svg)][github-release]

Expand Down
2 changes: 1 addition & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ to deploying a standalone cluster of Pegasus containers on your local machine.

[![BuildThirdpartyDockerRegularly - build and publish thirdparty every week](https://github.com/apache/incubator-pegasus/actions/workflows/thirdparty-regular-push.yml/badge.svg)](https://github.com/apache/incubator-pegasus/actions/workflows/thirdparty-regular-push.yml)

[![BuildPegasusRegularly - build pegasus and rdsn on different env every day](https://github.com/apache/incubator-pegasus/actions/workflows/pegasus-regular-build.yml/badge.svg)](https://github.com/apache/incubator-pegasus/actions/workflows/pegasus-regular-build.yml)
[![Lint and build regularly](https://github.com/apache/incubator-pegasus/actions/workflows/regular-build.yml/badge.svg)](https://github.com/apache/incubator-pegasus/actions/workflows/regular-build.yml)

## pegasus-build-env

Expand Down

0 comments on commit 3201aa4

Please sign in to comment.