-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
66 lines (46 loc) · 1.39 KB
/
.appveyor.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
59
60
61
62
63
64
65
66
version: '{build}'
clone_depth: 10
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
HOST: x86_64-unknown-linux-gnu
TARGET: wasm32-unknown-unknown
MODE: release
for:
-
matrix:
only:
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
TARGET: wasm32-unknown-unknown
install:
- sh: >-
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
nvm use v16
curl -sSf https://sh.rustup.rs | sh -s -- --quiet --default-host $HOST --default-toolchain stable --profile minimal -y
export PATH="$HOME/.cargo/bin:$PATH"
rustup target add $TARGET
cargo install wasm-bindgen-cli --force --version 0.2.75 # this has to match the version in Cargo.lock
cargo install wasm-pack
rustc -V
cargo -V
build_script:
- sh: >-
pushd web
npm install
if [ "$MODE" == "release" ]; then
BUILD_MODE=production
else
BUILD_MODE=development
fi
npm run build-production
mkdir forgotten
mv dist forgotten/$APPVEYOR_REPO_BRANCH
zip -r forgotten.zip forgotten
popd
mv web/forgotten.zip .
artifacts:
- path: '*.zip'
name: games.gridbugs.org
deploy:
- provider: Environment
name: games.gridbugs.org