From 5c8b557212b05dca3fb4989fdda13a702e630994 Mon Sep 17 00:00:00 2001 From: James Eversole Date: Thu, 23 Jan 2025 17:13:17 -0600 Subject: [PATCH] Minify and mark as pre-release --- .gitea/workflows/test-and-build.yml | 8 +++++--- flake.nix | 7 ++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/test-and-build.yml b/.gitea/workflows/test-and-build.yml index 7ee9c03..c328c66 100644 --- a/.gitea/workflows/test-and-build.yml +++ b/.gitea/workflows/test-and-build.yml @@ -68,10 +68,11 @@ jobs: restore-keys: | nix- - - name: Build binary + - name: Build and shrink binary run: | nix build - ls -alh ./result/bin/tricu + cp -L ./result/bin/tricu /tmp + upx /tmp/tricu - name: Setup go for release actoin uses: actions/setup-go@v5 @@ -82,5 +83,6 @@ jobs: uses: https://gitea.com/actions/release-action@main with: files: |- - ./result/bin/tricu + /tmp/tricu api_key: '${{ secrets.RELEASE_TOKEN }}' + pre_release: true diff --git a/flake.nix b/flake.nix index 938bc83..e5bbfc6 100644 --- a/flake.nix +++ b/flake.nix @@ -32,10 +32,11 @@ defaultPackage = self.packages.${system}.default; devShells.default = pkgs.mkShell { - buildInputs = with pkgs.haskellPackages; [ - cabal-install - ghcid + buildInputs = with pkgs; [ + haskellPackages.cabal-install + haskellPackages.ghcid customGHC + upx ]; inputsFrom = builtins.attrValues self.packages.${system}; };