Skip to content

Commit

Permalink
Merge branch 'release/2022.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
sile committed Nov 29, 2022
2 parents acdbf4f + d63ecf7 commit bf72674
Show file tree
Hide file tree
Showing 30 changed files with 6,539 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
dist
examples
src/lyra_wasm.d.ts
78 changes: 78 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"$schema": "https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/eslintrc.json",
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:prettier/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"project": ["./tsconfig.json"]
},
"plugins": [
"@typescript-eslint",
"prettier"
],
"globals": {
"SORA_JS_SDK_VERSION": true
},
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unused-vars": ["error", {
"vars": "all",
"args": "all",
"argsIgnorePattern": "^_"
}],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "default",
"format": ["camelCase"]
},
{
"selector": "class",
"format": ["PascalCase"]
},
{
"selector": "interface",
"format": ["PascalCase"]
},
{
"selector": "typeAlias",
"format": ["PascalCase"]
},
{
"selector": "objectLiteralProperty",
"format": ["camelCase", "snake_case"]
},
{
"selector": "typeProperty",
"format": null
},
{
"selector": "parameter",
"format": ["camelCase"],
"leadingUnderscore": "allow"
},
{
"selector": "typeParameter",
"format": ["PascalCase"]
},
{
"selector": "variable",
"format": ["camelCase", "UPPER_CASE"]
}
],
"curly": "error"
}
}
60 changes: 60 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
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@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
cache: npm
- run: npm install
- run: npm run build
- name: Prepare static files
run: |
mkdir _site/
cp dist/lyra.js _site/
cp examples/recording.html _site/
cp examples/service-worker.js _site/
cp wasm/bazel-bin/lyra-wasm/lyra.wasm _site/
cp wasm/bazel-bin/lyra-wasm/lyra.worker.js _site/
cd _site/
curl -OL https://github.com/google/lyra/raw/v1.3.0/model_coeffs/lyra_config.binarypb
curl -OL https://github.com/google/lyra/raw/v1.3.0/model_coeffs/lyragan.tflite
curl -OL https://github.com/google/lyra/raw/v1.3.0/model_coeffs/quantizer.tflite
curl -OL https://github.com/google/lyra/raw/v1.3.0/model_coeffs/soundstream_encoder.tflite
- name: Upload files
uses: actions/upload-pages-artifact@v1
- name: Slack Notification
if: failure()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: sora-oss
SLACK_COLOR: danger
SLACK_TITLE: Failure test
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

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@v1
44 changes: 44 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: release

on:
push:
tags:
- '*'

jobs:
create-release-draft:
name: Create GitHub Release Draft
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
cache: npm
- run: npm install
- run: npm run build
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: true
files: |
wasm/bazel-bin/lyra-wasm/lyra.wasm
wasm/bazel-bin/lyra-wasm/lyra.worker.js
notification:
name: Slack Notification
runs-on: ubuntu-latest
needs:
- create-release-draft
if: always()
steps:
- uses: actions/checkout@v3
- uses: rtCamp/action-slack-notify@v2
if: |
needs.create-release-draft.result == 'failure'
env:
SLACK_CHANNEL: sora-oss
SLACK_COLOR: danger
SLACK_TITLE: Failure release
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
33 changes: 33 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: test

on:
push:
paths-ignore:
- '**.md'
- 'LICENSE'
- 'NOTICE'

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['16', '18']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm --version
- run: npm install
- run: npm run build
- run: npm run lint
- name: Slack Notification
if: failure()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: sora-oss
SLACK_COLOR: danger
SLACK_TITLE: Failure test
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
60 changes: 60 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
lib-cov
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz
*.swp

pids
logs
results
tmp

# Build
public/css/main.css

# Coverage reports
coverage

# API keys and secrets
.env

# Dependency directory
node_modules
bower_components

# Editors
.idea
*.iml

# OS metadata
.DS_Store
Thumbs.db

# Ignore built ts files
dist

# ignore yarn.lock
yarn.lock

# Ignore generated files by build.sh
src/rnnoise_wasm.js

# Ignore generated docs
apidoc/

# Bazel
bazel-bin
bazel-out
bazel-testlogs
bazel-wasm

# Generated files
src/lyra_wasm.js

# Model files for examples
*.binarypb
*.tflite
5 changes: 5 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"printWidth": 120,
"semi": true,
"trailingComma": "es5"
}
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

## 2022.1.0

**初リリース**

0 comments on commit bf72674

Please sign in to comment.