Skip to content

Commit

Permalink
Merge pull request qicosmos#95 from Jacyking/master
Browse files Browse the repository at this point in the history
add ci
  • Loading branch information
qicosmos authored Mar 20, 2023
2 parents 68e7bc1 + bf9e738 commit 8782f1d
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 333 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI

on: [ push, pull_request ]

jobs:
build:

name: ${{ matrix.os }} (${{ matrix.configuration }})
runs-on: ${{ matrix.os }}

strategy:
matrix:
configuration: [ Debug, Release ]
os: [ macos-latest, ubuntu-latest, windows-latest ]

steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Configure CMake
working-directory: ${{github.workspace}}/examples
run: cmake -B${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{ matrix.configuration }}

- name: Build
working-directory: ${{github.workspace}}/examples
run: cmake --build ${{github.workspace}}/build --config ${{ matrix.configuration }}
26 changes: 26 additions & 0 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Clang Format Diff

on: [ push, pull_request ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: install clang-format
run: sudo apt install clang-format

- name: check-diff
run: |
diff=`git-clang-format --diff HEAD^`
if ! [[ "$diff" = "no modified files to format" || "$diff" = "clang-format did not modify any files" ]]; then
echo "The diff you sent is not formatted correctly."
echo "The suggested format is"
echo "$diff"
exit 1
fi
140 changes: 0 additions & 140 deletions examples/client/basic_client.vcxproj

This file was deleted.

22 changes: 0 additions & 22 deletions examples/client/basic_client.vcxproj.filters

This file was deleted.

144 changes: 0 additions & 144 deletions examples/server/basic_server.vcxproj

This file was deleted.

27 changes: 0 additions & 27 deletions examples/server/basic_server.vcxproj.filters

This file was deleted.

0 comments on commit 8782f1d

Please sign in to comment.