fix(build): statically linked binaries for linux (#55)

This commit is contained in:
Jens Krause
2025-01-22 09:43:51 +01:00
committed by GitHub
parent 6d2bf5ac09
commit 59c99f4f5c
4 changed files with 22 additions and 11 deletions

View File

@@ -31,7 +31,7 @@ jobs:
- os: ubuntu-latest
os_target: linux
binary_name: timr-tui
arch: x86_64 # `x86_64` by default
arch: x86_64 # based on target 'x86_64-unknown-linux-musl' defined by `CARGO_BUILD_TARGET` in flake.nix
- os: ubuntu-latest
os_target: windows
binary_name: timr-tui.exe
@@ -49,8 +49,12 @@ jobs:
if: matrix.os_target == 'windows'
run: nix build .#windows
- name: Build (linux/macos)
if: matrix.os_target != 'windows'
- name: Build (linux)
if: matrix.os_target == 'linux'
run: nix build .#linuxStatic
- name: Build (macos)
if: matrix.os_target == 'macos'
run: nix build
- name: Copy artifact