vesys-bank-server/.gitlab-ci.yml

41 lines
1.4 KiB
YAML
Raw Normal View History

2022-03-19 09:15:10 +00:00
image: rust:1.59-alpine3.15
stages:
- test
2022-03-26 10:00:13 +00:00
- build
2022-03-19 09:15:10 +00:00
2022-03-19 09:06:04 +00:00
test:
2022-03-19 09:15:10 +00:00
stage: test
2022-03-19 09:07:51 +00:00
before_script:
- apk --no-cache add musl-dev
2022-03-19 09:06:04 +00:00
script:
2022-03-19 09:15:10 +00:00
- cargo test
audit:
stage: test
before_script:
2022-03-19 09:17:31 +00:00
- apk --no-cache add musl-dev cargo-audit
2022-03-19 09:15:10 +00:00
script:
2022-03-26 10:00:13 +00:00
- cargo audit
build-statically:
stage: build
before_script:
- apk --no-cache add musl-dev make rustup cargo
2022-03-26 10:27:44 +00:00
- rustup target add x86_64-unknown-linux-musl aarch64-unknown-linux-musl x86_64-pc-windows-gnu wasm32-unknown-unknown
- cargo install trunk
2022-03-26 10:00:13 +00:00
- wget https://musl.cc/aarch64-linux-musl-cross.tgz
- echo "c909817856d6ceda86aa510894fa3527eac7989f0ef6e87b5721c58737a06c38 aarch64-linux-musl-cross.tgz" | sha256sum -c - || exit 1
- tar -zxvf aarch64-linux-musl-cross.tgz -C / --exclude='aarch64-linux-musl-cross/usr' --strip 1
- wget https://musl.cc/x86_64-w64-mingw32-cross.tgz
- echo "3a5c90309209a8b2e7ea1715a34b1029692e34189c5e7ecd77e1f102f82f6a02 x86_64-w64-mingw32-cross.tgz" | sha256sum -c - || exit 1
- tar -zxvf x86_64-w64-mingw32-cross.tgz -C / --exclude='./x86_64-w64-mingw32-cross/usr' --strip 2
- wget https://musl.cc/x86_64-linux-musl-cross.tgz
- echo "c5d410d9f82a4f24c549fe5d24f988f85b2679b452413a9f7e5f7b956f2fe7ea x86_64-linux-musl-cross.tgz" | sha256sum -c - || exit 1
- tar -zxvf x86_64-linux-musl-cross.tgz -C / --exclude='x86_64-linux-musl-cross/usr' --strip 1
script:
- make all
artifacts:
paths:
- release/*