diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..1855535 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,3 @@ +[profile.release] +lto = "thin" +strip = true diff --git a/.drone.jsonnet b/.drone.jsonnet index e5c672c..72a410c 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -1,9 +1,9 @@ local archs = [ - // { target: 'aarch64-unknown-linux-gnu', short: 'arm64-gnu' }, - // { target: 'aarch64-unknown-linux-musl', short: 'arm64-musl' }, - // { target: 'x86_64-pc-windows-gnu', short: 'windows-amd64' }, - // { target: 'x86_64-unknown-linux-gnu', short: 'amd64-gnu' }, - // { target: 'x86_64-unknown-linux-musl', short: 'amd64-musl' }, + { target: 'aarch64-unknown-linux-gnu', short: 'arm64-gnu' }, + { target: 'aarch64-unknown-linux-musl', short: 'arm64-musl' }, + { target: 'x86_64-pc-windows-gnu', short: 'windows-amd64' }, + { target: 'x86_64-unknown-linux-gnu', short: 'amd64-gnu' }, + { target: 'x86_64-unknown-linux-musl', short: 'amd64-musl' }, ]; local getStepName(arch) = 'Build for ' + arch.short; diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 789d813..0000000 --- a/.drone.yml +++ /dev/null @@ -1,42 +0,0 @@ ---- -kind: pipeline -name: default - -platfomr: - arch: amd64 - -steps: -- name: test - image: img.kie.rs/jjkiers/rust-dind-cross:1.62-slim - volumes: - - name: dockersock - path: /var/run - commands: - - cargo check - - while ! docker image ls; do sleep 1; done - - cross build --release --target aarch64-unknown-linux-gnu - - ls -lahR target/ - environment: - CROSS_REMOTE: true - # DOCKER_REGISTRY: - # from_secret: docker-registry-url - # DOCKER_USERNAME: - # from_secret: docker-registry-username - # DOCKER_PASSWORD: - # from_secret: docker-registry-password - -services: -- name: docker - image: docker:dind - privileged: true - volumes: - - name: dockersock - path: /var/run - -volumes: -- name: dockersock - temp: {} - - -image_pull_secrets: -- docker_private_repo