-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
230 changed files
with
20,260 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
Language: Cpp | ||
BasedOnStyle: Chromium | ||
ReflowComments: false | ||
ColumnLimit: 120 | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
name: build-workflow | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
- develop | ||
tags: | ||
- 202* | ||
paths-ignore: | ||
- 'doc/**' | ||
- '**.md' | ||
- 'THANKS' | ||
- 'LICENSE' | ||
- 'NOTICE' | ||
|
||
jobs: | ||
build-linux: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-20.04_x86_64 | ||
name: Build hisui for ${{ matrix.os }} | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Install packages | ||
shell: bash | ||
run: | | ||
sudo apt update | ||
sudo apt install -yq ccache | ||
sudo rm -rf /var/lib/apt/lists/* | ||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
- uses: actions/checkout@v2 | ||
- name: Cache release directory | ||
id: cache-release | ||
uses: actions/cache@v2 | ||
with: | ||
path: release/_deps | ||
key: ${{ matrix.os }}-release-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/release/Makefile')) }} | ||
restore-keys: ${{ matrix.os }}-release-deps- | ||
- name: Clear release directory | ||
if: steps.cache-release.outputs.cache-hit != 'true' | ||
run: rm -rf release | ||
- name: Prepare ccache timestamp | ||
id: ccache_cache_timestamp | ||
shell: cmake -P {0} | ||
run: | | ||
string(TIMESTAMP current_date "%Y-%m-%d-%H:%M:%S" UTC) | ||
message("::set-output name=timestamp::${current_date}") | ||
- name: Cache ~/.ccache directory | ||
id: cache-ccache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.ccache | ||
key: ${{ matrix.os }}-ccache-dir-${{ steps.ccache_cache_timestamp.outputs.timestamp }} | ||
restore-keys: ${{ matrix.os }}-ccache-dir- | ||
- name: Ccache stat | ||
run: ccache -s | ||
- name: mkdir release | ||
shell: bash | ||
run: | | ||
[ -d release ] || mkdir release | ||
- name: cmake | ||
run: cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_TEST=YES -DWITH_CLI=YES -WITH_EXAMPLE=YES | ||
working-directory: release | ||
timeout-minutes: 120 | ||
- name: build | ||
run: cmake --build release | ||
timeout-minutes: 120 | ||
- name: Test cpp-mp4 | ||
run: cmake --build release --target test -- ARGS='-V' | ||
- name: Slack Notification | ||
if: failure() | ||
uses: rtCamp/[email protected] | ||
env: | ||
SLACK_CHANNEL: hisui | ||
SLACK_COLOR: danger | ||
SLACK_TITLE: Failure build-linux ${{ matrix.os }} | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: build-workflow | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
paths-ignore: | ||
- 'doc/**' | ||
- '**.md' | ||
- 'THANKS' | ||
- 'LICENSE' | ||
- 'NOTICE' | ||
|
||
jobs: | ||
lint: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-20.04_x86_64 | ||
name: Lint hisui for ${{ matrix.os }} | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Install packages | ||
shell: bash | ||
run: | | ||
go get -u github.com/client9/misspell/cmd/misspell | ||
sudo apt update | ||
sudo apt install -yq shellcheck | ||
sudo rm -rf /var/lib/apt/lists/* | ||
pip3 install --user cpplint | ||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
- uses: actions/checkout@v2 | ||
- name: Lint cpp-mp4 | ||
run: PATH=$PATH:~/.local/bin:~/go/bin ./lint.bash | ||
timeout-minutes: 120 | ||
- name: Slack Notification | ||
if: failure() | ||
uses: rtCamp/[email protected] | ||
env: | ||
SLACK_CHANNEL: hisui | ||
SLACK_COLOR: danger | ||
SLACK_TITLE: Failure lint | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
Oops, something went wrong.