From 7bb1f45c8dcbe397ba5ea3f8919f24a20855f5a2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 19 Dec 2025 15:15:34 +0000 Subject: [PATCH 1/2] Initial plan From de1c61df6e7dc70dc17a8e04ab16a0cc01fd7767 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 19 Dec 2025 15:19:05 +0000 Subject: [PATCH 2/2] Fix raco exe failing due to directory name conflict by outputting executable to build/ subdirectory Co-authored-by: hugefiver <18693500+hugefiver@users.noreply.github.com> --- .github/workflows/release.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6ebe41c..c36cbea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,16 +47,26 @@ jobs: raco make randstr/main.rkt raco make randstr/cli/main.rkt - - name: Build executable - run: raco exe -o randstr${{ matrix.ext }} randstr/cli/main.rkt + - name: Build executable (Unix) + if: matrix.platform != 'windows' + run: | + mkdir -p build + raco exe -o build/randstr randstr/cli/main.rkt + + - name: Build executable (Windows) + if: matrix.platform == 'windows' + shell: pwsh + run: | + New-Item -ItemType Directory -Force -Path build + raco exe -o build/randstr.exe randstr/cli/main.rkt - name: Create distribution (Unix) if: matrix.platform != 'windows' - run: raco distribute dist randstr + run: raco distribute dist build/randstr - name: Create distribution (Windows) if: matrix.platform == 'windows' - run: raco distribute dist randstr.exe + run: raco distribute dist build/randstr.exe - name: Archive distribution (Unix) if: matrix.platform != 'windows'