hasl/hasl

Add version macros and exports to all functions

7 months ago, Elliott Sales de Andrade
7ed716379934
Add version macros and exports to all functions

This is basically copied from GPlugin.

I'm not sure if the 0.1 tag should just be made `AVAILABLE_IN_ALL`?

Testing Done:
Compiled and ran tests on Linux and Windows.

Reviewed at https://reviews.imfreedom.org/r/2675/
environment:
- BUILD_NUMBER
- REPOSITORY=rwgrim/hasl-builders
- REGISTRY=docker.io
- REGISTRY_USERNAME
- REGISTRY_PASSWORD
- DOCS_BUILD_IMAGE=${REGISTRY}/${REPOSITORY}:debian-bookworm-amd64
tasks:
clean:
type: convey/clean
files:
- debian-bookworm-amd64
import:
type: docker/import
files: .:.
build:
type: docker/run
image: ${REGISTRY}/${REPOSITORY}:${TARGET}
export:
type: docker/export
files: ${TARGET}
login:
type: docker/login
server: ${REGISTRY}
username: ${REGISTRY_USERNAME}
password: ${REGISTRY_PASSWORD}
logout:
type: docker/logout
server: ${REGISTRY}
docs-clean:
type: convey/clean
files:
- hasl-docs.zip
docs-build:
type: docker/run
image: ${DOCS_BUILD_IMAGE}
workdir: ${CONVEY_WORKSPACE}
script:
- set -ex
- rm -rf build-docs
- meson setup build-docs -Ddoc=true
- ninja -C build-docs doc
- cd build-docs/hasl/reference
- zip -9r hasl-docs.zip hasl
docs-export:
type: docker/export
files:
- build-docs/hasl/reference/hasl-docs.zip:hasl-docs.zip
plans:
clean:
stages:
- tasks:
- clean
- docs-clean
debian-bookworm-amd64:
environment: TARGET=debian-bookworm-amd64
stages:
- tasks: [import, build]
- tasks: [export]
run: always
docs:
stages:
- tasks: [docs-clean, import, docs-build, docs-export]