feat: link against musl
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build was killed

This commit is contained in:
Garionion 2023-01-28 20:55:52 +01:00
parent 5d08d1602a
commit f570700ada
Signed by: garionion
SSH key fingerprint: SHA256:6uQQGh4dHIdYnrR+qeLdgx5SDmbttGp2HusA73563QA
2 changed files with 9 additions and 4 deletions

View file

@ -16,7 +16,9 @@ steps:
TOKEN:
from_secret: gitea
commands:
- curl --user garionion:$TOKEN --upload-file ./result/bin/tcp-proxy https://git.entr0py.de/api/packages/garionion/generic/tcp-stream-proxy/${DRONE_TAG}/tcp-proxy
- ls -alh ./result
- whoami
- curl --user garionion:$TOKEN --upload-file ./result https://git.entr0py.de/api/packages/garionion/generic/tcp-stream-proxy/${DRONE_TAG}/tcp-proxy
when:
ref:
- refs/tags/*

View file

@ -1,7 +1,7 @@
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
let
version = "0.0.1";
version = "0.0.2";
deps = [ ];
nativeDeps = [ ];
in
@ -10,15 +10,18 @@ pkgs.buildGo119Module {
inherit version;
src = ./.;
buildInputs = [
stdenv glibc.static
stdenv
] ++deps;
nativeBuildInputs = [
musl
] ++nativeDeps;
tags = [ ];
CGO_ENABLED = 0;
ldflags = [
"-s" "-w"
"-linkmode external"
"-extldflags -static"
"-extldflags '-static -L${musl}/lib'"
];
allowGoReference = false;