Compare commits
6 Commits
359636b152
...
ec74e036e7
| Author | SHA1 | Date | |
|---|---|---|---|
|
ec74e036e7
|
|||
|
a560fc14de
|
|||
|
7fd4fcfc93
|
|||
|
d51760fc9f
|
|||
|
8a61d6b2dd
|
|||
|
0b00ec30a3
|
38
.github/workflows/action.yml
vendored
38
.github/workflows/action.yml
vendored
@@ -36,46 +36,44 @@ 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: Lint
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
nix develop --no-pure-eval --accept-flake-config --command just lint-report
|
nix develop --no-pure-eval --accept-flake-config --command just build-release
|
||||||
|
|
||||||
- name: Build Linux release binary
|
|
||||||
run: nix build --no-pure-eval --accept-flake-config
|
|
||||||
|
|
||||||
- name: Build Windows release binary
|
|
||||||
run: nix build .#windows --no-pure-eval --accept-flake-config
|
|
||||||
|
|
||||||
- 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: Prepare Linux binary
|
- name: Build Linux release binary
|
||||||
run: |
|
run: nix build --no-pure-eval --accept-flake-config
|
||||||
mkdir dist-linux
|
|
||||||
cp result/bin/jj-cz dist-linux/
|
- name: Package Linux binary
|
||||||
cp LICENSE.*.md dist-linux/
|
run: zip jj-cz-linux-x86_64.zip result/bin/jj-cz LICENSE.GPL.md LICENSE.MIT.md
|
||||||
|
|
||||||
- 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: dist-linux/*
|
path: jj-cz-linux-x86_64.zip
|
||||||
|
|
||||||
- name: Prepare Windows binary
|
- name: Build Windows release binary
|
||||||
run: |
|
run: nix build .#windows --no-pure-eval --accept-flake-config
|
||||||
mkdir -p dist-windows
|
|
||||||
cp result/bin/jj-cz.exe dist-windows/
|
- name: Package Windows binary
|
||||||
cp LICENSE.*.md dist-windows/
|
run: zip jj-cz-windows-x86_64.zip result/bin/jj-cz.exe LICENSE.GPL.md LICENSE.MIT.md
|
||||||
|
|
||||||
- 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: dist-windows/*
|
path: jj-cz-windows-x86_64.zip
|
||||||
|
|||||||
Reference in New Issue
Block a user