Put environment where it belongs

This commit is contained in:
Jacob Kiers 2022-08-10 21:12:42 +00:00
parent dbae04810d
commit c66821255c
1 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,8 @@ steps:
volumes:
- name: dockersock
path: /var/run
environment:
CROSS_REMOTE=true
commands:
- cargo check
- apt-get update && apt-get install -y ca-certificates curl gnupg lsb-release
@ -18,7 +20,6 @@ steps:
- echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" >> /etc/apt/sources.list.d/docker.list
- apt-get update && apt-get install -y docker-ce-cli
- docker info
- export CROSS_REMOTE=true
- cargo install cross --git https://github.com/cross-rs/cross
- cross build --release --target aarch64-unknown-linux-gnu
- ls -lahR target/