Parallellise CI build

This commit is contained in:
Sijmen 2023-04-28 01:19:28 +02:00
parent 74798b2f74
commit e4b591d7a9
Signed by: vijfhoek
GPG Key ID: DAF7821E067D9C48
1 changed files with 7 additions and 0 deletions

View File

@ -18,6 +18,8 @@ steps:
- rustup target add x86_64-unknown-linux-gnu
- cargo build --target=x86_64-unknown-linux-gnu --release -j2 --config target.x86_64-unknown-linux-gnu.linker=\"x86_64-linux-gnu-gcc\"
- x86_64-linux-gnu-strip target/x86_64-unknown-linux-gnu/release/empede
when:
event: tag
- name: build-aarch64-unknown-linux-gnu
image: rust:latest
@ -40,6 +42,9 @@ steps:
- mkdir empede-aarch64-unknown-linux-gnu
- cp -r target/release/empede static/ README.md empede-aarch64-unknown-linux-gnu
- tar czf empede-aarch64-unknown-linux-gnu.tar.gz empede-aarch64-unknown-linux-gnu/
depends_on:
- build-x86_64-unknown-linux-gnu
- build-aarch64-unknown-linux-gnu
when:
event: tag
@ -52,6 +57,8 @@ steps:
files:
- empede-x86_64-unknown-linux-gnu.tar.gz
- empede-aarch64-unknown-linux-gnu.tar.gz
depends_on:
- package
when:
event: tag