ci(artifacts): simplify uploaded artifacts
Some checks failed
Publish Docker Images / coverage-and-sonar (push) Failing after 27m16s
Some checks failed
Publish Docker Images / coverage-and-sonar (push) Failing after 27m16s
This commit is contained in:
38
.github/workflows/action.yml
vendored
38
.github/workflows/action.yml
vendored
@@ -36,44 +36,46 @@ 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: Build Linux release binary
|
||||||
run: |
|
run: nix build --no-pure-eval --accept-flake-config
|
||||||
nix develop --no-pure-eval --accept-flake-config --command just build-release
|
|
||||||
|
|
||||||
- name: Lint
|
- name: Build Windows release binary
|
||||||
run: |
|
run: nix build .#windows --no-pure-eval --accept-flake-config
|
||||||
nix develop --no-pure-eval --accept-flake-config --command just lint-report
|
|
||||||
|
|
||||||
- name: Coverage
|
- name: Coverage
|
||||||
run: |
|
run: |
|
||||||
nix develop --no-pure-eval --accept-flake-config --command just coverage-ci
|
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: Sonar analysis
|
- name: Sonar analysis
|
||||||
uses: SonarSource/sonarqube-scan-action@v6
|
uses: SonarSource/sonarqube-scan-action@v6
|
||||||
env:
|
env:
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
||||||
|
|
||||||
- name: Build Linux release binary
|
- name: Prepare Linux binary
|
||||||
run: nix build --no-pure-eval --accept-flake-config
|
run: |
|
||||||
|
mkdir dist-linux
|
||||||
- name: Package Linux binary
|
cp result/bin/jj-cz dist-linux/
|
||||||
run: mv result/bin/jj-cz && zip jj-cz-linux-x86_64.zip jj-cz LICENSE.GPL.md LICENSE.MIT.md
|
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: Prepare Windows binary
|
||||||
run: nix build .#windows --no-pure-eval --accept-flake-config
|
run: |
|
||||||
|
mkdir -p dist-windows
|
||||||
- name: Package Windows binary
|
cp result/bin/jj-cz.exe dist-windows/
|
||||||
run: zip jj-cz-windows-x86_64.zip result/bin/jj-cz.exe LICENSE.GPL.md LICENSE.MIT.md
|
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