-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move czicompress source to subfolder * Add manual trigger for build * Turn off vcpkg for ubuntu * Rename codeql for czicompress * Update READMEs * Add CziShrink to repo * Fix REUSE * Activate CodeQL for czishrink * Change workflow name * Change workflow name * Adapt badges in Readme * Increment czishrink version * Fix cmake artifact upload * Update build name in upgrade script * Add run ID to VersionSuffix in dotnet build * Fix links in README.md * Update upgrade-libczicompressc.ps1 * Update upgrade-libczicompressc.ps1 * Update README.md * Update README.md * Remove path filters from github workflows This is necessary for them to be usable in branch protection rules. * Address CodeQL warnings * Add workflow_dispatch trigger to all workflows * Update czishrink/README.md Co-authored-by: Felix Scheffler <[email protected]> * Update czicompress/README.md Co-authored-by: Felix Scheffler <[email protected]> * Update czishrink/README.md Co-authored-by: Felix Scheffler <[email protected]> * Apply suggestions from code review Co-authored-by: Felix Scheffler <[email protected]> * One .gitignore and one .gitattributes * Get rid of custom xpath action * Fix REUSE * Feature/czishrink third party artifact text (#4) * Added czishrink specific artifact distributions * Add transitive czishrink notices --------- Co-authored-by: Felix Scheffler <[email protected]> Co-authored-by: DaveyJonesBitPail <[email protected]>
- Loading branch information
1 parent
029973e
commit 0f59b4f
Showing
281 changed files
with
19,179 additions
and
299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*.gif filter=lfs diff=lfs merge=lfs -text | ||
*.png filter=lfs diff=lfs merge=lfs -text | ||
*.nupkg filter=lfs diff=lfs merge=lfs -text | ||
*.pdf filter=lfs diff=lfs merge=lfs -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# yamllint disable rule:document-start | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "nuget" | ||
directory: "/czishrink" | ||
schedule: | ||
interval: "weekly" | ||
day: "wednesday" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
name: "CodeQL (CziShrink)" | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
schedule: | ||
# ┌───────────── minute (0 - 59) | ||
# │ ┌───────────── hour (0 - 23) | ||
# │ │ ┌───────────── day of the month (1 - 31) | ||
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) | ||
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) | ||
# │ │ │ │ │ | ||
# │ │ │ │ │ | ||
# │ │ │ │ │ | ||
# * * * * * | ||
- cron: '30 2 * * 2' | ||
workflow_dispatch: {} | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze CziShrink | ||
defaults: | ||
run: | ||
working-directory: czishrink | ||
runs-on: ubuntu-latest | ||
permissions: | ||
security-events: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 7.0.x | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: csharp | ||
queries: security-and-quality | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore | ||
|
||
- name: Build | ||
run: dotnet build --no-restore -c Release | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
--- | ||
# This workflow will build a .NET project | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | ||
permissions: | ||
pull-requests: write | ||
contents: read | ||
|
||
name: .NET Build (CziShrink) | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["main"] | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
build: | ||
defaults: | ||
run: | ||
working-directory: czishrink | ||
name: ${{matrix.config.name}} | ||
runs-on: ${{matrix.config.os}} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- { | ||
name: windows, | ||
os: windows-latest, | ||
osfamily: win, | ||
} | ||
- { | ||
name: ubuntu, | ||
os: ubuntu-latest, | ||
osfamily: linux, | ||
} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 7.0.x | ||
|
||
- name: Get Version from Directory.Build.props | ||
id: getversion | ||
run: | | ||
$xml = [xml](Get-Content -Path "Directory.Build.props") | ||
$version = $xml.SelectSingleNode('//VersionPrefix').'#text' + "-" + $xml.SelectSingleNode('//VersionSuffix').'#text' | ||
"version=$version" | Out-File -FilePath $env:GITHUB_OUTPUT -Append | ||
shell: pwsh | ||
|
||
- name: Add build ID to version in Directory.Build.props | ||
run: | | ||
Write-Output "Add build ID ${{ github.run_id }} to VersionSuffix in Directory.Build.props" | ||
$file = Get-Item "Directory.Build.props" | ||
$xml = [xml](Get-Content -Path $file.FullName) | ||
$versionElement = $xml.SelectSingleNode('//VersionSuffix') | ||
$versionElement.'#text' += '+${{ github.run_id }}' | ||
$xml.Save($file.FullName) | ||
shell: pwsh | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore | ||
|
||
- name: Build | ||
run: dotnet build --no-restore -c Release | ||
|
||
- name: Test | ||
run: > | ||
dotnet test | ||
-c Release | ||
--no-build | ||
--verbosity normal | ||
--logger trx | ||
--results-directory "TestResults" | ||
-p:CollectCoverage=true | ||
-p:CoverletOutputFormat=cobertura | ||
-p:CoverletOutput=${{ github.workspace }}/TestResults/coverage.cobertura.xml | ||
-p:ExcludeByAttribute=GeneratedCodeAttribute%2cObsoleteAttribute | ||
-p:ExcludeByFile=**/*.axaml%2c**/*.g.cs | ||
-p:Exclude='[netczicompress]netczicompress.Views.*' | ||
- name: Upload dotnet test results | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: dotnet-results-${{ matrix.config.name }} | ||
path: TestResults | ||
# Use always() to also publish test results when there are test failures | ||
if: ${{ always() }} | ||
|
||
- name: Code Coverage Report | ||
uses: irongut/[email protected] | ||
if: matrix.config.name == 'ubuntu' | ||
with: | ||
filename: TestResults/coverage.cobertura.xml | ||
badge: true | ||
fail_below_min: false | ||
format: markdown | ||
hide_branch_rate: false | ||
hide_complexity: false | ||
indicators: true | ||
output: both | ||
thresholds: '60 80' | ||
|
||
- name: Add Coverage PR Comment | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
if: github.event_name == 'pull_request' && matrix.config.name == 'ubuntu' | ||
with: | ||
recreate: true | ||
path: code-coverage-results.md | ||
|
||
- name: Publish | ||
if: github.event_name == 'push' | ||
run: > | ||
dotnet publish netczicompress.Desktop/netczicompress.Desktop.csproj | ||
-c Release | ||
-a x64 | ||
--self-contained | ||
-p:PublishSingleFile=true | ||
-p:PublishReadyToRun=true | ||
-p:PublishReadyToRunShowWarnings=true | ||
-o ${{ github.workspace }}/publish | ||
- name: Upload published binaries | ||
uses: actions/upload-artifact@v3 | ||
if: github.event_name == 'push' | ||
with: | ||
name: CziShrink_${{ steps.getversion.outputs.version }}_${{ matrix.config.osfamily}}-x64 | ||
path: publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.