Skip to content

Suggest install natively from src #236

Suggest install natively from src

Suggest install natively from src #236

Workflow file for this run

name: Rust
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
CARGO_TERM_COLOR: always
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --release --verbose
- name: Run tests
run: cargo test --verbose --profile test
# - name: Install rust WASM
# run: rustup target add wasm32-unknown-unknown
# - name: Test if the code will build to a WASM binary
# run: cargo check --target wasm32-unknown-unknown
upload-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: mkdir -p build_artifacts
- run: cp -r libraries build_artifacts
- run: cargo build --release
- run: mv target/release/spwn build_artifacts
- uses: actions/upload-artifact@v2
with:
name: ubuntu-linux-artifacts
path: build_artifacts
# upload-wasm:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - run: mkdir -p build_artifacts
# - run: cp -r libraries build_artifacts
# - run: rustup target add wasm32-unknown-unknown
# - run: cargo build --target wasm32-unknown-unknown
# - run: mv target/wasm32-unknown-unknown/release/spwn build_artifacts
# - uses: actions/upload-artifact@v2
# with:
# name: wasm32-artifacts
# path: build_artifacts