Skip to content
Snippets Groups Projects
Commit 8f1ca6d8 authored by Marvin Weiler's avatar Marvin Weiler
Browse files

Update .gitlab-ci.yml file

parent d8366dfb
Branches
Tags 0.1.0-test2
No related merge requests found
...@@ -2,18 +2,34 @@ stages: ...@@ -2,18 +2,34 @@ stages:
- build - build
- distribute - distribute
build: build:windows:
rules: rules:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
stage: build stage: build
image: rust:1-buster image: rust:1-buster
before_script:
- rustup target add x86_64-pc-windows-gnu
- rustup target add i686-pc-windows-gnu
script: script:
- cargo build --release --target=x86_64-unknown-linux-gnu
- cargo build --release --target=x86_64-pc-windows-gnu - cargo build --release --target=x86_64-pc-windows-gnu
- cargo build --release --target=x86_64-apple-darwin - cargo build --release --target=i686-pc-windows-gnu
artifacts:
paths:
- target/
build:linux:
rules:
- if: $CI_COMMIT_TAG
stage: build
image: rust:1-buster
before_script:
- rustup target add i686-unknown-linux-gnu
- rustup target add armv7-unknown-linux-gnueabihf
- rustup target add aarch64-unknown-linux-gnu
script:
- cargo build --release --target=x86_64-unknown-linux-gnu
- cargo build --release --target=aarch64-unknown-linux-gnu - cargo build --release --target=aarch64-unknown-linux-gnu
- cargo build --release --target=i686-unknown-linux-gnu - cargo build --release --target=i686-unknown-linux-gnu
- cargo build --release --target=i686-pc-windows-gnu
- cargo build --release --target=armv7-unknown-linux-gnueabihf - cargo build --release --target=armv7-unknown-linux-gnueabihf
artifacts: artifacts:
paths: paths:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment