Skip to content

Commit

Permalink
add ci build configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
markcty committed Aug 9, 2023
1 parent 4cce0c2 commit 9725ddf
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

env:
CARGO_TERM_COLOR: always

jobs:
build:
name: Build and Check
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install latest toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
override: true
target: wasm32-wasi
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --target=wasm32-wasi
- name: Build the project
uses: actions-rs/cargo@v1
with:
command: build
args: --target=wasm32-wasi --release

0 comments on commit 9725ddf

Please sign in to comment.