forked from second-state/rustwasmc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (43 loc) · 1016 Bytes
/
.travis.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
language: rust
rust:
- stable
jobs:
include:
- os: osx
arch: amd64
env: ENV_NAME="x86_64-apple-darwin"
- os: windows
arch: amd64
env: ENV_NAME="x86_64-pc-windows-msvc"
- os: linux
dist: bionic
arch: amd64
env: ENV_NAME="x86_64-unknown-linux-gnu"
- os: linux
dist: bionic
arch: arm64
env: ENV_NAME="aarch64-unknown-linux-gnu"
install:
- cargo build --release
script:
- mkdir ssvmup-$TRAVIS_TAG-$ENV_NAME
- cp ./target/release/ssvmup ssvmup-$TRAVIS_TAG-$ENV_NAME
- tar -czf ssvmup-$TRAVIS_TAG-$ENV_NAME.tar.gz ssvmup-$TRAVIS_TAG-$ENV_NAME
deploy:
- provider: releases
overwrite: false
cleanup: false
token: $GITHUB_TOKEN
file: "ssvmup-$TRAVIS_TAG-$ENV_NAME.tar.gz"
name: Release $TRAVIS_TAG
edge: true
on:
tags: true
- provider: npm
email: $NPM_EMAIL
api_token: $NPM_TOKEN
src: ./npm
edge: true
on:
tags: true
condition: $ENV_NAME = "x86_64-apple-darwin"