ci(build): add Windows build, store release binaries
Some checks failed
Publish Docker Images / coverage-and-sonar (push) Failing after 28m17s
Some checks failed
Publish Docker Images / coverage-and-sonar (push) Failing after 28m17s
This commit is contained in:
24
.github/workflows/action.yml
vendored
24
.github/workflows/action.yml
vendored
@@ -57,3 +57,27 @@ jobs:
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
||||
|
||||
- name: Build Linux release binary
|
||||
run: nix build --no-pure-eval --accept-flake-config
|
||||
|
||||
- name: Package Linux binary
|
||||
run: zip jj-cz-linux-x86_64.zip result/bin/jj-cz LICENSE.GPL.md LICENSE.MIT.md
|
||||
|
||||
- name: Upload Linux artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: jj-cz-linux-x86_64
|
||||
path: jj-cz-linux-x86_64.zip
|
||||
|
||||
- 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: Upload Windows artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: jj-cz-windows-x86_64
|
||||
path: jj-cz-windows-x86_64.zip
|
||||
|
||||
Reference in New Issue
Block a user