-
Notifications
You must be signed in to change notification settings - Fork 63
58 lines (46 loc) · 1.42 KB
/
rust.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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