stages:
- build
- deploy
default:
image: "alpine:3.13"
before_script:
- apk add --no-cache curl build-base tracker-dev rustup
- rustup-init -y && source $HOME/.cargo/env
build:
stage: build
script:
- rustc --version && cargo --version
- cargo build
build-examples:
stage: build
script:
- rustc --version && cargo --version
- cd examples
- cargo build
pages:
stage: deploy
script:
- apk add --no-cache git
- git submodule update --init
- cp ./Tracker-3.0.gir ./gir-files
- cargo build --release --manifest-path ./gir/Cargo.toml
- ./gir/target/release/gir -c ./Gir.toml -d ./tracker-sys/gir-files --doc-target-path docs.md -m doc
- cargo install rustdoc-stripper
- /root/.cargo/bin/rustdoc-stripper -g -o ./docs.md
- cargo doc -p tracker-rs --no-deps --all-features
- mv target/doc/ public
artifacts:
paths:
- public
only:
refs:
- master