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

Feature/test10 #102

Closed
wants to merge 127 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
9114965
Create AutoTest.yml
kevingpqi123 Jan 23, 2022
329e9a0
Create autotest.sh
kevingpqi123 Jan 23, 2022
cd5c056
Update AutoTest.yml
kevingpqi123 Jan 23, 2022
e27eb20
Update AutoTest.yml
kevingpqi123 Jan 23, 2022
79b1f7a
Create cmake.yml
kevingpqi123 Jan 23, 2022
abb88a1
Update cmake.yml
kevingpqi123 Jan 23, 2022
9cb2a5d
Update AutoTest.yml
kevingpqi123 Jan 23, 2022
e59819e
Update cmake.yml
kevingpqi123 Jan 23, 2022
0ceceaa
Update cmake.yml
kevingpqi123 Jan 23, 2022
e0a3a22
Update cmake.yml
kevingpqi123 Jan 23, 2022
476745d
Update cmake.yml
kevingpqi123 Jan 23, 2022
9ec9acd
Update cmake.yml
kevingpqi123 Jan 23, 2022
7121908
Update cmake.yml
kevingpqi123 Jan 23, 2022
5b893cb
Update cmake.yml
kevingpqi123 Jan 24, 2022
249e6ef
Update cmake.yml
kevingpqi123 Jan 24, 2022
a9080d9
Update cmake.yml
kevingpqi123 Jan 24, 2022
ba60fa0
Update autotest.sh
kevingpqi123 Jan 24, 2022
6a0b91b
Update cmake.yml
kevingpqi123 Jan 24, 2022
8c18e9b
Update autotest.sh
kevingpqi123 Jan 24, 2022
c63d332
Create codeql-analysis.yml
kevingpqi123 Jan 25, 2022
628d65b
Update codeql-analysis.yml
kevingpqi123 Jan 25, 2022
172cc86
Update codeql-analysis.yml
kevingpqi123 Jan 25, 2022
5dccece
Create code-format.yml
kevingpqi123 Jan 25, 2022
4af6567
Create codeformat.sh
kevingpqi123 Jan 25, 2022
1b1efa6
apply code-format changes
kevingpqi123 Jan 25, 2022
0522a2e
Update codeql-analysis.yml
kevingpqi123 Jan 25, 2022
9246919
Update code-format.yml
kevingpqi123 Jan 25, 2022
c1b1ac7
更新MR自动化测试
kevingpqi123 Jan 25, 2022
0f3f609
完善autotest
kevingpqi123 Jan 25, 2022
9116f62
完善autotest
kevingpqi123 Jan 25, 2022
ba1c2bc
Update code-format.yml
kevingpqi123 Jan 25, 2022
604c320
update autotest
kevingpqi123 Jan 25, 2022
244c9f7
Create code-format.yml
kevingpqi123 Jan 25, 2022
2a43b35
Revert "apply code-format changes"
kevingpqi123 Jan 25, 2022
6d3b316
书写错误
kevingpqi123 Jan 25, 2022
b5b8f99
test
kevingpqi123 Jan 26, 2022
cd0db90
Update autotest.yml
kevingpqi123 Jan 26, 2022
fc56ecd
Update autotest.yml
kevingpqi123 Jan 26, 2022
d9a4730
Update autotest.sh
kevingpqi123 Jan 26, 2022
c666285
Update autotest.yml
kevingpqi123 Jan 26, 2022
9a40d5a
Update autotest.yml
kevingpqi123 Jan 27, 2022
5f4c78b
Update autotest.sh
kevingpqi123 Jan 27, 2022
8398c8c
Update autotest.yml
kevingpqi123 Jan 27, 2022
525d826
Update autotest.sh
kevingpqi123 Jan 27, 2022
f724e5f
Update autotest.yml
kevingpqi123 Jan 27, 2022
6cae527
Update autotest.sh
kevingpqi123 Jan 27, 2022
35d7c57
Update autotest.yml
kevingpqi123 Jan 27, 2022
796dde6
Update autotest.yml
kevingpqi123 Jan 27, 2022
677482a
Update autotest.yml
kevingpqi123 Jan 27, 2022
5411a88
Update autotest.sh
kevingpqi123 Jan 27, 2022
e136d0c
Update autotest.yml
kevingpqi123 Jan 27, 2022
f0df3b6
Update codeql-analysis.yml
kevingpqi123 Jan 27, 2022
9346916
Update autotest.yml
kevingpqi123 Jan 27, 2022
1417a10
Update autotest.yml
kevingpqi123 Jan 27, 2022
f879d0e
Update autotest.yml
kevingpqi123 Jan 27, 2022
b64c9dc
Update autotest.yml
kevingpqi123 Jan 27, 2022
9001d36
Update autotest.yml
kevingpqi123 Jan 27, 2022
1261858
Update autotest.yml
kevingpqi123 Jan 27, 2022
6c74913
Update autotest.yml
kevingpqi123 Jan 27, 2022
e28e80a
Update autotest.yml
kevingpqi123 Jan 27, 2022
57fd63b
Update autotest.yml
kevingpqi123 Jan 27, 2022
15eb0ec
Update autotest.sh
kevingpqi123 Jan 27, 2022
3ce1d2c
Update autotest.yml
kevingpqi123 Jan 27, 2022
c7bb8b7
Update autotest.sh
kevingpqi123 Jan 27, 2022
4acab69
Update autotest.sh
kevingpqi123 Jan 27, 2022
9146ac8
Update autotest.yml
kevingpqi123 Jan 27, 2022
808040a
Update codeql-analysis.yml
kevingpqi123 Jan 27, 2022
ee646cd
Update autotest.yml
kevingpqi123 Jan 27, 2022
ee38626
Update autotest.yml
kevingpqi123 Jan 28, 2022
d2fd42e
Merge branch 'Tencent:main' into main
kevingpqi123 Jan 28, 2022
20bea8f
Update autotest.sh
kevingpqi123 Jan 28, 2022
944450e
Update autotest.sh
kevingpqi123 Jan 28, 2022
9d04b13
test
kevingpqi123 Feb 3, 2022
2b36f35
test
kevingpqi123 Feb 3, 2022
5394191
test
kevingpqi123 Feb 3, 2022
6b15969
Update code-format.yml
kevingpqi123 Feb 3, 2022
db358dd
Update code-format.yml
kevingpqi123 Feb 3, 2022
4028e9c
Update code-format.yml
kevingpqi123 Feb 3, 2022
1b5c315
update codeformat
kevingpqi123 Feb 3, 2022
6c3f5a3
update code-format
kevingpqi123 Feb 3, 2022
053cbe5
Update code-format.yml
kevingpqi123 Feb 3, 2022
48501f7
Update code-format.yml
kevingpqi123 Feb 3, 2022
e088691
Update code-format.yml
kevingpqi123 Feb 3, 2022
3609da6
Update code-format.yml
kevingpqi123 Feb 3, 2022
d66b933
Update code-format.yml
kevingpqi123 Feb 3, 2022
7894c6f
Update codeformat.sh
kevingpqi123 Feb 3, 2022
873b785
Update codeformat.sh
kevingpqi123 Feb 3, 2022
af64b39
Update codeformat.sh
kevingpqi123 Feb 3, 2022
82bc3c2
Update codeformat.sh
kevingpqi123 Feb 3, 2022
862abab
MR
kevingpqi123 Feb 3, 2022
3211486
update
kevingpqi123 Feb 3, 2022
2f030f7
test
kevingpqi123 Feb 3, 2022
1976d6f
test
kevingpqi123 Feb 3, 2022
8912a17
update
kevingpqi123 Feb 3, 2022
604e63d
update
kevingpqi123 Feb 3, 2022
9c15a53
update
kevingpqi123 Feb 3, 2022
b84b91e
Merge pull request #5 from kevingpqi123/feature/test05
kevingpqi123 Feb 3, 2022
d0f143e
test
kevingpqi123 Feb 4, 2022
333bbfc
update
kevingpqi123 Feb 4, 2022
dfa00d8
test
kevingpqi123 Feb 4, 2022
0b5f210
update
kevingpqi123 Feb 4, 2022
4fb5125
update
kevingpqi123 Feb 5, 2022
e4cc5b9
update
kevingpqi123 Feb 5, 2022
c1076d4
update
kevingpqi123 Feb 5, 2022
dfc478a
test
kevingpqi123 Feb 5, 2022
25258f0
update
kevingpqi123 Feb 5, 2022
7f1b870
update
kevingpqi123 Feb 5, 2022
955dbfa
Merge pull request #6 from kevingpqi123/feature/test06
kevingpqi123 Feb 5, 2022
d7bc11c
test
kevingpqi123 Feb 5, 2022
ea1f0e7
update
kevingpqi123 Feb 5, 2022
83f5115
test
kevingpqi123 Feb 5, 2022
84622ef
update
kevingpqi123 Feb 6, 2022
5ddb222
test
kevingpqi123 Feb 6, 2022
560be48
test
kevingpqi123 Feb 6, 2022
3a07e6c
test
kevingpqi123 Feb 6, 2022
d41d468
update
kevingpqi123 Feb 6, 2022
a82ad9f
Merge pull request #7 from kevingpqi123/feature/test07
kevingpqi123 Feb 6, 2022
1a84377
Update and rename after_merge.yml to autotest.yml
kevingpqi123 Feb 9, 2022
c00699c
Update autotest.yml
kevingpqi123 Feb 9, 2022
3da3fc8
Update autotest.yml
kevingpqi123 Feb 9, 2022
31585ef
Update code-format.yml
kevingpqi123 Feb 9, 2022
a31868a
Update codeformat.sh
kevingpqi123 Feb 9, 2022
acf3969
Update code-format.yml
kevingpqi123 Feb 11, 2022
d8b7b52
Update Codec.cpp
kevingpqi123 Feb 11, 2022
69dc484
Update codeformat.sh
kevingpqi123 Feb 11, 2022
851890e
apply code-format changes
kevingpqi123 Feb 11, 2022
4a0e54e
test
kevingpqi123 Feb 11, 2022
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
83 changes: 63 additions & 20 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,26 +1,69 @@
# Generated from CLion C/C++ Code Style settings
Language: Cpp
BasedOnStyle: Google
ColumnLimit: 100

# Only sort headers in each include block
SortIncludes: true
IncludeBlocks: Preserve
DerivePointerAlignment: false
PointerAlignment: Left
AccessModifierOffset: -1
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignOperands: true
AllowAllArgumentsOnNextLine: false
AllowAllConstructorInitializersOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: true
AllowShortLambdasOnASingleLine: All
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterReturnType: None
AlwaysBreakTemplateDeclarations: Yes
BreakBeforeBraces: Custom
BraceWrapping:
SplitEmptyFunction: true

---
Language: ObjC
BasedOnStyle: Google
ColumnLimit: 100

# Only sort headers in each include block
SortIncludes: true
IncludeBlocks: Preserve
DerivePointerAlignment: false
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterUnion: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: true
BreakBeforeBinaryOperators: None
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeColon
BreakInheritanceList: BeforeColon
CompactNamespaces: false
ContinuationIndentWidth: 4
IndentCaseLabels: true
IndentPPDirectives: None
IndentWidth: 2
KeepEmptyLinesAtTheStartOfBlocks: true
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: false
PointerAlignment: Left
AllowShortFunctionsOnASingleLine: None
BraceWrapping:
SplitEmptyFunction: true
ReflowComments: false
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 2
SpacesInAngles: Never
SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
IncludeBlocks: Merge
TabWidth: 2
UseTab: Never
115 changes: 115 additions & 0 deletions .github/workflows/autotest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
# This is a basic workflow to help you get started with Actions

name: autotest

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
branch: "main"
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: macos-latest

steps:
- name: Get environment cache
id: cache-environment
uses: actions/cache@v2
with:
path: |
/usr/local/Cellar/ninja
/usr/local/bin/ninja
/usr/local/Cellar/node
/usr/local/bin/node
/usr/local/Cellar/emscripten
/usr/local/bin/emscripten
/usr/local/Cellar/yasm
/usr/local/bin/yasm
/usr/local/Cellar/depsync
/usr/local/bin/depsync
key: libpag-environment-20220208
- if: github.event_name == 'push'
name: Get libpag cache
id: libpag-push
uses: actions/cache@v2
with:
path: libpag.tar.zst
key: libpag-code-${{ github.sha }}
restore-keys: |
libpag-code-${{ github.event.before }}
libpag-code-
- if: github.event_name == 'pull_request'
name: Get libpag cache
id: libpag-pull
uses: actions/cache@v2
with:
path: libpag.tar.zst
key: libpag-code-${{ github.event.pull_request.base.sha }}
restore-keys: libpag-code-
- name: Check file existence
id: check_files
uses: andstor/file-existence-action@v1
with:
files: "libpag.tar.zst"
- name: File exist
if: steps.check_files.outputs.files_exists == 'true'
# Only runs if all of the files exists
run: |
echo "file exist"
tar xvf libpag.tar.zst
rm -rf libpag.tar.zst
- name: File not exist
if: steps.check_files.outputs.files_exists != 'true'
run: |
echo "file not exist"
git clone -b main https://github.com/Tencent/libpag.git
- if: github.event_name == 'pull_request'
name: swith branch
run: |
cd libpag
git pull
git checkout ${{ github.head_ref }}
- if: github.event_name == 'push'
name: swith branch
run: |
cd libpag
git pull
- name: brew link emscripten
if: steps.cache-third_party.outputs.cache-hit == 'true'
run: |
brew link emscripten

- name: Run autotest script
run: |
cd libpag
chmod +x sync_deps.sh
./sync_deps.sh
chmod +x autotest.sh
./autotest.sh
shell: bash
- name: The job has failed
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: result
path: libpag/result
- uses: actions/upload-artifact@v2
with:
name: result
path: result
- name: Compress libpag
run: |
cd libpag
rm -rf result
git checkout main
cd ..
tar cvfa libpag.tar.zst libpag

96 changes: 96 additions & 0 deletions .github/workflows/before_merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
name: before_merge

on:
pull_request:
branches: [ main ]

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

jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: macos-latest

steps:
- name: Get environment cache
id: cache-environment
uses: actions/cache@v2
with:
path: |
/usr/local/Cellar/ninja
/usr/local/bin/ninja
/usr/local/Cellar/node
/usr/local/bin/node
/usr/local/Cellar/emscripten
/usr/local/bin/emscripten
/usr/local/Cellar/yasm
/usr/local/bin/yasm
/usr/local/Cellar/depsync
/usr/local/bin/depsync
/opt/homebrew/bin/gcovr
key: libpag-environment-1

- name: Get libpag cache
id: libpag
uses: actions/cache@v2
with:
path: libpag.tar.zst
key: libpag-code-${{ github.event.pull_request.base.sha }}
restore-keys: libpag-code-
- name: Check file existence
id: check_files
uses: andstor/file-existence-action@v1
with:
files: "libpag.tar.zst"
- name: File exists
if: steps.check_files.outputs.files_exists == 'true'
# Only runs if all of the files exists
run: |
echo "file exist"
tar xvf libpag.tar.zst
rm -rf libpag.tar.zst
cd libpag
git fetch
git checkout ${{ github.head_ref }}
- name: File not exists
if: steps.check_files.outputs.files_exists != 'true'
run: |
echo "file not exit"
git clone -b ${{ github.head_ref }} https://github.com/kevingpqi123/libpag.git
- name: brew link emscripten
if: steps.cache-third_party.outputs.cache-hit == 'true'
run: |
brew link emscripten

- name: Run autotest script
run: |
cd libpag
chmod +x sync_deps.sh
./sync_deps.sh
chmod +x autotest.sh
./autotest.sh
shell: bash
- name: The job has failed
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: result
path: libpag/result
- uses: actions/upload-artifact@v2
with:
name: result
path: libpag/result
- name: codecov
uses: codecov/[email protected]
with:
token: 8e38459f-ae9b-48f0-894e-87b9f369e7e9
file: libpag/result/coverage.xml





30 changes: 30 additions & 0 deletions .github/workflows/code-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: code-format

on:
pull_request:
branches: [ main ]
push:
branches: [ main ]

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

jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Run codeformat script
run: |
npm install -g clang-format
clang-format --version
chmod +x codeformat.sh
./codeformat.sh
shell: bash
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: apply code-format changes
Loading