Skip to content

Commit

Permalink
Merge branch 'release/2024.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
sile committed Sep 25, 2024
2 parents f8774ba + bf4989f commit 317c24b
Show file tree
Hide file tree
Showing 22 changed files with 5,632 additions and 0 deletions.
108 changes: 108 additions & 0 deletions .github/workflows/ci.yml
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 }}
46 changes: 46 additions & 0 deletions .github/workflows/deploy.yml
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
16 changes: 16 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# 変更履歴

- UPDATE
- 後方互換がある変更
- ADD
- 後方互換がある追加
- CHANGE
- 後方互換のない変更
- FIX
- バグ修正

## develop

## 2024.1.0

**公開**
101 changes: 101 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions Cargo.toml
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"]
Loading

0 comments on commit 317c24b

Please sign in to comment.