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

View file

@ -18,6 +18,8 @@ steps:
- rustup target add x86_64-unknown-linux-gnu - 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\" - 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 - x86_64-linux-gnu-strip target/x86_64-unknown-linux-gnu/release/empede
when:
event: tag
- name: build-aarch64-unknown-linux-gnu - name: build-aarch64-unknown-linux-gnu
image: rust:latest image: rust:latest
@ -40,6 +42,9 @@ steps:
- mkdir empede-aarch64-unknown-linux-gnu - mkdir empede-aarch64-unknown-linux-gnu
- cp -r target/release/empede static/ README.md 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/ - 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: when:
event: tag event: tag
@ -52,6 +57,8 @@ steps:
files: files:
- empede-x86_64-unknown-linux-gnu.tar.gz - empede-x86_64-unknown-linux-gnu.tar.gz
- empede-aarch64-unknown-linux-gnu.tar.gz - empede-aarch64-unknown-linux-gnu.tar.gz
depends_on:
- package
when: when:
event: tag event: tag