-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
28 lines (25 loc) · 1.23 KB
/
.gitlab-ci.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
# SPDX-FileCopyrightText: Copyright 2022-2024 EDF (Électricité de France S.A.)
# SPDX-License-Identifier: BSD-3-Clause
# See README for all details on copyright, authorship and license.
pages:
image: docker.io/debian:bookworm
script:
- apt-get update && apt-get install -y curl git libclang-dev clang pkg-config libssl-dev
- "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable"
- source "$HOME/.cargo/env"
- rustup target add wasm32-unknown-unknown
# this is coordinated with Cargo.toml
- cargo install wasm-bindgen-cli --version '0.2.100'
- RUSTFLAGS=--cfg=web_sys_unstable_apis cargo build --target wasm32-unknown-unknown --release
- wasm-bindgen target/wasm32-unknown-unknown/release/coap-ace-poc-webapp.wasm --out-dir public/ --web
- 'sed "s/BUILDID/$(cat public/{index.html,*.css,coap-ace-poc*} | sha256sum | cut -f1 -d" ")/" < public/service_worker.js.in > public/service_worker.js'
- RUSTFLAGS=--cfg=web_sys_unstable_apis cargo doc --target wasm32-unknown-unknown
- cp -a target/wasm32-unknown-unknown/doc public/doc
artifacts:
paths:
- public
reuse:
image: python:3
script:
- pip install reuse
- reuse lint