Fix platforms
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
18e0acefe5
commit
092c82b6cd
19
.drone.yml
19
.drone.yml
|
@ -7,23 +7,20 @@ platform:
|
||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build-aarch64-unknown-linux-gnu
|
- name: build-x86_64-unknown-linux-gnu
|
||||||
image: rust:latest
|
image: rust:latest
|
||||||
env:
|
|
||||||
- CARGO_TARGET_DIR=/var/cache/drone/cargo
|
|
||||||
- CARGO_HOME=/var/cache/drone/cargo
|
|
||||||
commands:
|
commands:
|
||||||
- cargo build --release
|
- cargo build --release
|
||||||
- strip target/release/empede
|
- strip target/release/empede
|
||||||
|
|
||||||
- name: build-x86_64-unknown-linux-gnu
|
- name: build-aarch64-unknown-linux-gnu
|
||||||
image: rust:latest
|
image: rust:latest
|
||||||
commands:
|
commands:
|
||||||
- apt-get update
|
- apt-get update
|
||||||
- apt-get install -y gcc-x86-64-linux-gnu binutils-x86-64-linux-gnu
|
- apt-get install -y gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu
|
||||||
- rustup target add x86_64-unknown-linux-gnu
|
- rustup target add aarch64-unknown-linux-gnu
|
||||||
- cargo build --target=x86_64-unknown-linux-gnu --release --config target.x86_64-unknown-linux-gnu.linker=\"x86_64-linux-gnu-gcc\"
|
- cargo build --target=aarch64-unknown-linux-gnu --release --config target.aarch64-unknown-linux-gnu.linker=\"aarch64-linux-gnu-gcc\"
|
||||||
- x86_64-linux-gnu-strip target/x86_64-unknown-linux-gnu/release/empede
|
- aarch64-linux-gnu-strip target/aarch64-unknown-linux-gnu/release/empede
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
|
||||||
|
@ -44,12 +41,12 @@ steps:
|
||||||
|
|
||||||
# x86_64-unknown-linux-gnu
|
# x86_64-unknown-linux-gnu
|
||||||
- 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/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/
|
||||||
|
|
||||||
# aarch64-unknown-linux-gnu
|
# aarch64-unknown-linux-gnu
|
||||||
- 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/aarch64-unknown-linux-gnu/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/
|
||||||
|
|
||||||
# x86_64-pc-windows-gnu
|
# x86_64-pc-windows-gnu
|
||||||
|
|
Loading…
Reference in New Issue