Add aarch64 build
This commit is contained in:
parent
db9dff04eb
commit
74798b2f74
1 changed files with 18 additions and 1 deletions
19
.drone.yml
19
.drone.yml
|
@ -7,7 +7,7 @@ platform:
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build-x86_64-unknown-linux-gnu
|
||||||
image: rust:latest
|
image: rust:latest
|
||||||
env:
|
env:
|
||||||
- CARGO_TARGET_DIR=/var/cache/drone/cargo
|
- CARGO_TARGET_DIR=/var/cache/drone/cargo
|
||||||
|
@ -19,13 +19,27 @@ steps:
|
||||||
- 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
|
||||||
|
|
||||||
|
- name: build-aarch64-unknown-linux-gnu
|
||||||
|
image: rust:latest
|
||||||
|
env:
|
||||||
|
- CARGO_TARGET_DIR=/var/cache/drone/cargo
|
||||||
|
- CARGO_HOME=/var/cache/drone/cargo
|
||||||
|
commands:
|
||||||
|
- cargo build --release -j2
|
||||||
|
- strip target/release/empede
|
||||||
|
|
||||||
- name: package
|
- name: package
|
||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache tar gzip
|
- apk add --no-cache tar gzip
|
||||||
|
|
||||||
- mkdir empede-x86_64-unknown-linux-gnu
|
- mkdir empede-x86_64-unknown-linux-gnu
|
||||||
- cp -r target/x86_64-unknown-linux-gnu/release/empede static/ README.md empede-x86_64-unknown-linux-gnu
|
- cp -r target/x86_64-unknown-linux-gnu/release/empede static/ README.md empede-x86_64-unknown-linux-gnu
|
||||||
- tar czf empede-x86_64-unknown-linux-gnu.tar.gz empede-x86_64-unknown-linux-gnu/
|
- tar czf empede-x86_64-unknown-linux-gnu.tar.gz empede-x86_64-unknown-linux-gnu/
|
||||||
|
|
||||||
|
- 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/
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
|
||||||
|
@ -37,5 +51,8 @@ steps:
|
||||||
base_url: https://git.sijman.nl
|
base_url: https://git.sijman.nl
|
||||||
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
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue