ci(artifacts): simplify uploaded artifacts
All checks were successful
Publish Docker Images / coverage-and-sonar (push) Successful in 16m58s
All checks were successful
Publish Docker Images / coverage-and-sonar (push) Successful in 16m58s
This commit is contained in:
26
.github/workflows/action.yml
vendored
26
.github/workflows/action.yml
vendored
@@ -36,18 +36,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
nix develop --no-pure-eval --accept-flake-config --command just audit
|
nix develop --no-pure-eval --accept-flake-config --command just audit
|
||||||
|
|
||||||
- name: Build
|
- name: Coverage
|
||||||
run: |
|
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
|
- name: Lint
|
||||||
run: |
|
run: |
|
||||||
nix develop --no-pure-eval --accept-flake-config --command just lint-report
|
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
|
- name: Sonar analysis
|
||||||
uses: SonarSource/sonarqube-scan-action@v6
|
uses: SonarSource/sonarqube-scan-action@v6
|
||||||
env:
|
env:
|
||||||
@@ -57,23 +53,29 @@ jobs:
|
|||||||
- name: Build Linux release binary
|
- name: Build Linux release binary
|
||||||
run: nix build --no-pure-eval --accept-flake-config
|
run: nix build --no-pure-eval --accept-flake-config
|
||||||
|
|
||||||
- name: Package Linux binary
|
- name: Prepare Linux binary
|
||||||
run: mv result/bin/jj-cz && zip jj-cz-linux-x86_64.zip jj-cz LICENSE.GPL.md LICENSE.MIT.md
|
run: |
|
||||||
|
mkdir dist-linux
|
||||||
|
cp result/bin/jj-cz dist-linux/
|
||||||
|
cp LICENSE.*.md dist-linux/
|
||||||
|
|
||||||
- name: Upload Linux artifact
|
- name: Upload Linux artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: jj-cz-linux-x86_64
|
name: jj-cz-linux-x86_64
|
||||||
path: jj-cz-linux-x86_64.zip
|
path: dist-linux/*
|
||||||
|
|
||||||
- name: Build Windows release binary
|
- name: Build Windows release binary
|
||||||
run: nix build .#windows --no-pure-eval --accept-flake-config
|
run: nix build .#windows --no-pure-eval --accept-flake-config
|
||||||
|
|
||||||
- name: Package Windows binary
|
- name: Prepare Windows binary
|
||||||
run: zip jj-cz-windows-x86_64.zip result/bin/jj-cz.exe LICENSE.GPL.md LICENSE.MIT.md
|
run: |
|
||||||
|
mkdir -p dist-windows
|
||||||
|
cp result/bin/jj-cz.exe dist-windows/
|
||||||
|
cp LICENSE.*.md dist-windows/
|
||||||
|
|
||||||
- name: Upload Windows artifact
|
- name: Upload Windows artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: jj-cz-windows-x86_64
|
name: jj-cz-windows-x86_64
|
||||||
path: jj-cz-windows-x86_64.zip
|
path: dist-windows/*
|
||||||
|
|||||||
Reference in New Issue
Block a user