From 096e20b35a6d595386847651f683982f28563a1f Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sat, 14 Mar 2026 01:18:08 +0100 Subject: [PATCH] ci(artifacts): simplify uploaded artifacts --- .github/workflows/action.yml | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index fd14414..6e649ad 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -36,18 +36,14 @@ jobs: run: | nix develop --no-pure-eval --accept-flake-config --command just audit - - name: Build + - name: Coverage run: | - nix develop --no-pure-eval --accept-flake-config --command just build-release + nix develop --no-pure-eval --accept-flake-config --command just coverage-ci - name: Lint run: | nix develop --no-pure-eval --accept-flake-config --command just lint-report - - name: Coverage - run: | - nix develop --no-pure-eval --accept-flake-config --command just coverage-ci - - name: Sonar analysis uses: SonarSource/sonarqube-scan-action@v6 env: @@ -57,23 +53,32 @@ jobs: - name: Build Linux release binary run: nix build --no-pure-eval --accept-flake-config - - name: Package Linux binary - run: mv result/bin/jj-cz && zip jj-cz-linux-x86_64.zip jj-cz LICENSE.GPL.md LICENSE.MIT.md + - name: debugging + run: ls -ahl result/ + + - name: Prepare Linux binary + run: | + mkdir dist-linux + cp result/bin/jj-cz dist-linux/ + cp LICENSE.*.md dist-linux/ - name: Upload Linux artifact uses: actions/upload-artifact@v3 with: name: jj-cz-linux-x86_64 - path: jj-cz-linux-x86_64.zip + path: dist-linux/* - name: Build Windows release binary run: nix build .#windows --no-pure-eval --accept-flake-config - - name: Package Windows binary - run: zip jj-cz-windows-x86_64.zip result/bin/jj-cz.exe LICENSE.GPL.md LICENSE.MIT.md + - name: Prepare Windows binary + run: | + mkdir -p dist-windows + cp result/bin/jj-cz.exe dist-windows/ + cp LICENSE.*.md dist-windows/ - name: Upload Windows artifact uses: actions/upload-artifact@v3 with: name: jj-cz-windows-x86_64 - path: jj-cz-windows-x86_64.zip + path: dist-windows/*