Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop authored Feb 20, 2024
0 parents commit e25bfc0
Show file tree
Hide file tree
Showing 21 changed files with 7,719 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[alias]
xtask = "r -rp xtask --"

[build]
rustflags = [
"-Wfuture-incompatible",
"-Wlet-underscore",
"-Wrust-2018-idioms",
"-Wunused",
]
rustdocflags = [
"-Dwarnings",
"--default-theme=ayu",
"-Wrustdoc::private_doc_tests",
# TODO: uncomment after the compiler update.
# "-Wrustdoc::unescaped_backticks",
]
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: "cargo"
directory: "."
labels: ["A4-insubstantial"]
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "."
labels: ["A4-insubstantial"]
schedule:
interval: "daily"
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
pull_request:
push:
branches: [master]
tags: ['[0-9]+.[0-9]+.[0-9]+']

env:
CARGO_TERM_COLOR: always

permissions:
contents: write

jobs:
all:
name: All
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: ${{ github.ref_type == 'tag' && 'Build' || 'Build & CI' }}
run: |
sudo apt-get update && sudo apt-get install -y binaryen
[ $GITHUB_REF_TYPE = "tag" ] && cargo b --workspace || cargo xtask ci
- name: Update the nightly tag
if: github.ref == 'refs/heads/master'
run: |
git tag nightly
git push -f origin nightly
- name: Release
if: github.event_name != 'pull_request'
uses: softprops/action-gh-release@v1
with:
name: ${{ github.ref == 'refs/heads/master' && 'Nightly' || github.ref_name }}
tag_name: ${{ github.ref == 'refs/heads/master' && 'nightly' || github.ref_name }}
prerelease: ${{ github.ref == 'refs/heads/master' }}
files: |
target/wasm32-unknown-unknown/debug/*.*.wasm
target/wasm32-unknown-unknown/debug/*.meta.txt
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.binpath
.DS_Store
.vscode
target
10 changes: 10 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
image: gitpod/workspace-rust
tasks:
- init: |
sudo apt update
sudo apt install cmake binaryen -y
gp open src/lib.rs
clear
vscode:
extensions:
- rust-lang.rust-analyzer
Loading

0 comments on commit e25bfc0

Please sign in to comment.