Skip to content

Commit

Permalink
Add ci test-request
Browse files Browse the repository at this point in the history
  • Loading branch information
JackyWoo committed Sep 12, 2024
1 parent 78c8285 commit b86b265
Show file tree
Hide file tree
Showing 8 changed files with 521 additions and 411 deletions.
130 changes: 65 additions & 65 deletions .github/workflows/build-and-test-asan.yml
Original file line number Diff line number Diff line change
@@ -1,65 +1,65 @@
name: build-and-test-asan

on: # yamllint disable-line rule:truthy
push:
branches:
- master
paths-ignore:
- "**.md"
- "**/docs/**"
- "**/LICENSE"
- "**/NOTICE"
- "**/benchmark/**"
- "version.txt"
- "build.sh"
pull_request:
types:
- opened
- synchronize
- reopened
paths-ignore:
- "**.md"
- "**/docs/**"
- "**/LICENSE"
- "**/NOTICE"
- "**/benchmark/**"
- "version.txt"
- "build.sh"

workflow_dispatch:
inputs:
pr:
description: "Pull request#"
required: false

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: RelWithDebInfo

jobs:
build-and-test-asan:
name: "ubuntu clang"
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Prepare
run: bash ${{github.workspace}}/.github/workflows/prepare-env.sh 14

- name: Generate Makefile
run: clang -v && export CC=`which clang` CXX=`which clang++` && cmake -G Ninja -B ./build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DSANITIZE=address

- name: Build
working-directory: ${{github.workspace}}/build
run: ninja -j 10

- name: Run unit Tests
working-directory: ${{github.workspace}}/build
run: ./src/rk_unit_tests --gtest_color=yes

- name: Run integration Tests
working-directory: ${{github.workspace}}/tests/integration
run: bash ${{github.workspace}}/.github/workflows/run-integration-test.sh ${{github.workspace}}/tests/integration
#name: build-and-test-asan
#
#on: # yamllint disable-line rule:truthy
# push:
# branches:
# - master
# paths-ignore:
# - "**.md"
# - "**/docs/**"
# - "**/LICENSE"
# - "**/NOTICE"
# - "**/benchmark/**"
# - "version.txt"
# - "build.sh"
# pull_request:
# types:
# - opened
# - synchronize
# - reopened
# paths-ignore:
# - "**.md"
# - "**/docs/**"
# - "**/LICENSE"
# - "**/NOTICE"
# - "**/benchmark/**"
# - "version.txt"
# - "build.sh"
#
# workflow_dispatch:
# inputs:
# pr:
# description: "Pull request#"
# required: false
#
#env:
# # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
# BUILD_TYPE: RelWithDebInfo
#
#jobs:
# build-and-test-asan:
# name: "ubuntu clang"
# runs-on: ubuntu-22.04
#
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: recursive
#
# - name: Prepare
# run: bash ${{github.workspace}}/.github/workflows/prepare-env.sh 14
#
# - name: Generate Makefile
# run: clang -v && export CC=`which clang` CXX=`which clang++` && cmake -G Ninja -B ./build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DSANITIZE=address
#
# - name: Build
# working-directory: ${{github.workspace}}/build
# run: ninja -j 10
#
# - name: Run unit Tests
# working-directory: ${{github.workspace}}/build
# run: ./src/rk_unit_tests --gtest_color=yes
#
# - name: Run integration Tests
# working-directory: ${{github.workspace}}/tests/integration
# run: bash ${{github.workspace}}/.github/workflows/run-integration-test.sh ${{github.workspace}}/tests/integration
122 changes: 61 additions & 61 deletions .github/workflows/build-and-test-macos.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,61 @@
name: build-and-test-macos

on: # yamllint disable-line rule:truthy
push:
branches:
- master
paths-ignore:
- "**.md"
- "**/docs/**"
- "**/LICENSE"
- "**/NOTICE"
- "**/benchmark/**"
- "version.txt"
- "build.sh"
pull_request:
types:
- opened
- synchronize
- reopened
paths-ignore:
- "**.md"
- "**/docs/**"
- "**/LICENSE"
- "**/NOTICE"
- "**/benchmark/**"
- "version.txt"
- "build.sh"

workflow_dispatch:
inputs:
pr:
description: "Pull request#"
required: false

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
build-and-test:
name: "macos clang"
runs-on: macos-13

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Install tools
run: brew install ninja ccache cmake llvm@13

- name: Generate Makefile
run: export CC=$(brew --prefix llvm@13)/bin/clang CXX=$(brew --prefix llvm@13)/bin/clang++ && cmake -G Ninja -B ./build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Build
working-directory: ${{github.workspace}}/build
run: ninja -j 10

- name: Run unit Tests
working-directory: ${{github.workspace}}/build
run: ./src/rk_unit_tests --gtest_color=yes
#name: build-and-test-macos

Check warning on line 1 in .github/workflows/build-and-test-macos.yml

View workflow job for this annotation

GitHub Actions / check-style

1:2 [comments] missing starting space in comment
#
#on: # yamllint disable-line rule:truthy

Check warning on line 3 in .github/workflows/build-and-test-macos.yml

View workflow job for this annotation

GitHub Actions / check-style

3:2 [comments] missing starting space in comment
# push:
# branches:
# - master
# paths-ignore:
# - "**.md"
# - "**/docs/**"
# - "**/LICENSE"
# - "**/NOTICE"
# - "**/benchmark/**"
# - "version.txt"
# - "build.sh"
# pull_request:
# types:
# - opened
# - synchronize
# - reopened
# paths-ignore:
# - "**.md"
# - "**/docs/**"
# - "**/LICENSE"
# - "**/NOTICE"
# - "**/benchmark/**"
# - "version.txt"
# - "build.sh"
#
# workflow_dispatch:
# inputs:
# pr:
# description: "Pull request#"
# required: false
#
#env:
# # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
# BUILD_TYPE: Release
#
#jobs:
# build-and-test:
# name: "macos clang"
# runs-on: macos-13
#
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: recursive
#
# - name: Install tools
# run: brew install ninja ccache cmake llvm@13
#
# - name: Generate Makefile
# run: export CC=$(brew --prefix llvm@13)/bin/clang CXX=$(brew --prefix llvm@13)/bin/clang++ && cmake -G Ninja -B ./build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
#
# - name: Build
# working-directory: ${{github.workspace}}/build
# run: ninja -j 10
#
# - name: Run unit Tests
# working-directory: ${{github.workspace}}/build
# run: ./src/rk_unit_tests --gtest_color=yes
130 changes: 65 additions & 65 deletions .github/workflows/build-and-test-msan.yml
Original file line number Diff line number Diff line change
@@ -1,65 +1,65 @@
name: build-and-test-msan

on: # yamllint disable-line rule:truthy
push:
branches:
- master
paths-ignore:
- "**.md"
- "**/docs/**"
- "**/LICENSE"
- "**/NOTICE"
- "**/benchmark/**"
- "version.txt"
- "build.sh"
pull_request:
types:
- opened
- synchronize
- reopened
paths-ignore:
- "**.md"
- "**/docs/**"
- "**/LICENSE"
- "**/NOTICE"
- "**/benchmark/**"
- "version.txt"
- "build.sh"

workflow_dispatch:
inputs:
pr:
description: "Pull request#"
required: false

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: RelWithDebInfo

jobs:
build-and-test-msan:
name: "ubuntu clang"
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Prepare
run: bash ${{github.workspace}}/.github/workflows/prepare-env.sh 14

- name: Generate Makefile
run: clang -v && export CC=`which clang` CXX=`which clang++` && cmake -G Ninja -B ./build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DSANITIZE=memory

- name: Build
working-directory: ${{github.workspace}}/build
run: ninja -j 10

- name: Run unit Tests
working-directory: ${{github.workspace}}/build
run: ./src/rk_unit_tests --gtest_color=yes

- name: Run integration Tests
working-directory: ${{github.workspace}}/tests/integration
run: bash ${{github.workspace}}/.github/workflows/run-integration-test.sh ${{github.workspace}}/tests/integration
#name: build-and-test-msan

Check warning on line 1 in .github/workflows/build-and-test-msan.yml

View workflow job for this annotation

GitHub Actions / check-style

1:2 [comments] missing starting space in comment
#
#on: # yamllint disable-line rule:truthy

Check warning on line 3 in .github/workflows/build-and-test-msan.yml

View workflow job for this annotation

GitHub Actions / check-style

3:2 [comments] missing starting space in comment
# push:
# branches:
# - master
# paths-ignore:
# - "**.md"
# - "**/docs/**"
# - "**/LICENSE"
# - "**/NOTICE"
# - "**/benchmark/**"
# - "version.txt"
# - "build.sh"
# pull_request:
# types:
# - opened
# - synchronize
# - reopened
# paths-ignore:
# - "**.md"
# - "**/docs/**"
# - "**/LICENSE"
# - "**/NOTICE"
# - "**/benchmark/**"
# - "version.txt"
# - "build.sh"
#
# workflow_dispatch:
# inputs:
# pr:
# description: "Pull request#"
# required: false
#
#env:

Check warning on line 35 in .github/workflows/build-and-test-msan.yml

View workflow job for this annotation

GitHub Actions / check-style

35:2 [comments] missing starting space in comment
# # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
# BUILD_TYPE: RelWithDebInfo
#
#jobs:

Check warning on line 39 in .github/workflows/build-and-test-msan.yml

View workflow job for this annotation

GitHub Actions / check-style

39:2 [comments] missing starting space in comment
# build-and-test-msan:
# name: "ubuntu clang"
# runs-on: ubuntu-22.04
#
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: recursive
#
# - name: Prepare
# run: bash ${{github.workspace}}/.github/workflows/prepare-env.sh 14
#
# - name: Generate Makefile
# run: clang -v && export CC=`which clang` CXX=`which clang++` && cmake -G Ninja -B ./build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DSANITIZE=memory
#
# - name: Build
# working-directory: ${{github.workspace}}/build
# run: ninja -j 10
#
# - name: Run unit Tests
# working-directory: ${{github.workspace}}/build
# run: ./src/rk_unit_tests --gtest_color=yes
#
# - name: Run integration Tests
# working-directory: ${{github.workspace}}/tests/integration
# run: bash ${{github.workspace}}/.github/workflows/run-integration-test.sh ${{github.workspace}}/tests/integration
Loading

0 comments on commit b86b265

Please sign in to comment.