Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-matsui committed Mar 1, 2022
0 parents commit 542a48e
Show file tree
Hide file tree
Showing 21 changed files with 1,745 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "weekly"
81 changes: 81 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Rust

on:
push:
branches: [ main ]
pull_request:

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose

build-wasm:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
target: wasm32-wasi
- name: Build
run: cargo build --verbose --target wasm32-wasi

run:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Run
run: cat ./examples/example.toml | cargo run ty

run-wasm:
runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
target: wasm32-wasi
- name: Build
run: cargo build --verbose --target wasm32-wasi
- run: brew install wasmer
- run: cat ./examples/example.toml | wasmer run target/wasm32-wasi/debug/jyt.wasm ty

format:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- run: cargo fmt --all -- --check

lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets --all-features -- -D clippy::all -D warnings

test:
runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
Loading

0 comments on commit 542a48e

Please sign in to comment.