Skip to content

Commit

Permalink
bejson: 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bouzuya committed May 27, 2021
1 parent 877b618 commit 10f2549
Show file tree
Hide file tree
Showing 7 changed files with 1,196 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/bejson.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: bejson
on:
push:
branches: [master]
paths:
- "bejson/**"
- ".github/workflows/bejson.yml"
tags:
- "bejson/*"
defaults:
run:
working-directory: bejson
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: cargo test --verbose
- run: cargo build --release --target ${{ matrix.target }} --verbose
- uses: svenstaro/upload-release-action@2.2.1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: bejson/target/${{ matrix.target }}/release/bejson
asset_name: bejson-${{ matrix.target }}
tag: ${{ github.ref }}
overwrite: true
if: ${{ success() && startsWith(github.ref, 'refs/tags/') }}
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: macos-latest
target: x86_64-apple-darwin
1 change: 1 addition & 0 deletions bejson/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target/
Loading

0 comments on commit 10f2549

Please sign in to comment.