-
Notifications
You must be signed in to change notification settings - Fork 1
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
22 changed files
with
5,632 additions
and
0 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,108 @@ | ||
# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md | ||
|
||
name: CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
check: | ||
name: Check | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
toolchain: [stable, beta, nightly] | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install ${{ matrix.toolchain }} toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ matrix.toolchain }} | ||
override: true | ||
|
||
- name: Run cargo check | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: check | ||
args: --all | ||
|
||
- name: Run cargo check (no default features) | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: check | ||
args: --all --no-default-features | ||
|
||
test: | ||
name: Test Suite | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
toolchain: [stable, beta, nightly] | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install ${{ matrix.toolchain }} toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ matrix.toolchain }} | ||
override: true | ||
|
||
- name: Run cargo test | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --all | ||
|
||
lints: | ||
name: Lints | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
toolchain: [stable, beta, nightly] | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install ${{ matrix.toolchain }} toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ matrix.toolchain }} | ||
override: true | ||
components: rustfmt, clippy | ||
|
||
- name: Run cargo fmt | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: --all -- --check | ||
|
||
- name: Run cargo clippy | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: --all -- -D warnings | ||
|
||
- name: Run cargo clippy (no default features) | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: --all --no-default-features -- -D warnings | ||
slack_notify_failed: | ||
needs: [check, test, lints] | ||
runs-on: ubuntu-latest | ||
if: ${{ failure() }} | ||
steps: | ||
- name: Slack Notification | ||
uses: rtCamp/action-slack-notify@v2 | ||
env: | ||
SLACK_CHANNEL: hisui | ||
SLACK_COLOR: danger | ||
SLACK_ICON_EMOJI: ":japanese_ogre:" | ||
SLACK_TITLE: "FAILED" | ||
SLACK_MESSAGE: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{github.event.head_commit.message || 'Scheduled run'}}> | ||
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,46 @@ | ||
name: GitHub Pages Deploy | ||
|
||
# Controls when the workflow will run | ||
on: | ||
push: | ||
branches: [ "develop" ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install wasm32-unknown-unknown target | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: wasm32-unknown-unknown | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --release --target wasm32-unknown-unknown -p dump_wasm | ||
- name: Prepare static files | ||
run: | | ||
mkdir -p _site/examples/dump/ | ||
cp examples/dump_wasm/index.html _site/examples/dump/ | ||
cp target/wasm32-unknown-unknown/release/dump_wasm.wasm _site/examples/dump/ | ||
- name: Upload files | ||
uses: actions/upload-pages-artifact@v1 | ||
|
||
deploy: | ||
needs: build | ||
permissions: | ||
pages: write | ||
id-token: write | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
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 @@ | ||
/target |
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,16 @@ | ||
# 変更履歴 | ||
|
||
- UPDATE | ||
- 後方互換がある変更 | ||
- ADD | ||
- 後方互換がある追加 | ||
- CHANGE | ||
- 後方互換のない変更 | ||
- FIX | ||
- バグ修正 | ||
|
||
## develop | ||
|
||
## 2024.1.0 | ||
|
||
**公開** |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,15 @@ | ||
[package] | ||
name = "shiguredo_mp4" | ||
version = "2024.1.0" | ||
edition = "2021" | ||
authors = ["Shiguredo Inc."] | ||
license = "Apache-2.0" | ||
description = "MP4 library" | ||
homepage = "https://github.com/shiguredo/mp4-rust" | ||
repository = "https://github.com/shiguredo/mp4-rust" | ||
readme = "README.md" | ||
|
||
[dependencies] | ||
|
||
[workspace] | ||
members = ["examples/dump_wasm"] |
Oops, something went wrong.