-
Notifications
You must be signed in to change notification settings - Fork 246
Improve build workflow BED-7214 #200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
lrfalslev
wants to merge
10
commits into
2.X
Choose a base branch
from
lfalslev/bed-7214
base: 2.X
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+71
−64
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
555becd
normalize SH pull request templates
lrfalslev 8aad87d
build with local version of SHCommon lib if available
lrfalslev 70f66c9
fix branch name
lrfalslev afa3a56
build dependency fixes
lrfalslev e01750d
test commonlib change in pipeline
lrfalslev 7db8d1c
pipeline test
lrfalslev c75431e
use Common v4 to build common lib
lrfalslev f647ddf
resolve coderabbit comments
lrfalslev 5659dd5
done testing
lrfalslev f33d647
explicit restore steps
lrfalslev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -1,35 +1,40 @@ | ||
| ## Description | ||
|
|
||
| <!--- Describe your changes in detail --> | ||
| <!-- Describe your changes in detail --> | ||
|
|
||
| ## Motivation and Context | ||
| <!-- Why is this change required? What problem does it solve? --> | ||
|
|
||
| <!--- Why is this change required? What problem does it solve? --> | ||
| <!--- If it fixes an open issue, please link to the issue here. --> | ||
| This PR addresses: [GitHub issue or Jira ticket number] | ||
|
|
||
| ## How Has This Been Tested? | ||
|
|
||
| <!--- Please describe in detail how you tested your changes. --> | ||
| <!--- Include details of your testing environment, and the tests you ran to --> | ||
| <!--- see how your change affects other areas of the code, etc. --> | ||
| <!-- | ||
| Please describe in detail how you tested your changes. | ||
| Include details of your testing environment, and the tests you ran to | ||
| see how your change affects other areas of the code, etc.* | ||
| --> | ||
|
|
||
| ## Screenshots (if appropriate): | ||
|
|
||
| ## Types of changes | ||
| <!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> | ||
|
|
||
| <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> | ||
|
|
||
| - [ ] Chore (a change that does not modify the application functionality) | ||
| - [ ] Bug fix (non-breaking change which fixes an issue) | ||
| - [ ] New feature (non-breaking change which adds functionality) | ||
| - [ ] Breaking change (fix or feature that would cause existing functionality to change) | ||
| - [ ] Chore (a change that does not modify the application functionality) | ||
| - [ ] Bug fix (non-breaking change which fixes an issue) | ||
| - [ ] New feature (non-breaking change which adds functionality) | ||
| - [ ] Breaking change (fix or feature that would cause existing functionality to change) | ||
|
|
||
| ## Checklist: | ||
|
|
||
| <!--- Go over all the following points, and put an `x` in all the boxes that apply. --> | ||
| <!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> | ||
|
|
||
| - [ ] Documentation updates are needed, and have been made accordingly. | ||
| - [ ] I have added and/or updated tests to cover my changes. | ||
| - [ ] All new and existing tests passed. | ||
| - [ ] My changes include a database migration. | ||
| <!-- Please make sure you have completed all following checks. --> | ||
| <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> | ||
|
|
||
| - [ ] I have met the contributing prerequisites | ||
| - Assigned myself to this PR | ||
| - Added the appropriate labels | ||
| - Associated an issue: https://github.com/SpecterOps/BloodHound/issues/672 | ||
| - Read the Contributing guide: https://github.com/SpecterOps/BloodHound/wiki/Contributing | ||
| - [ ] I have ensured that related documentation is up-to-date | ||
| - Open API docs | ||
| - Code comments | ||
| - [ ] I have followed proper test practices | ||
| - Added/updated tests to cover my changes | ||
| - All new and existing tests passed | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -1,54 +1,44 @@ | ||
| name: Build | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ dev ] | ||
| pull_request: | ||
| branches: [ dev ] | ||
| branches: [ 2.X ] | ||
| types: [opened, synchronize] | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: windows-latest | ||
| defaults: | ||
| run: | ||
| shell: bash | ||
|
|
||
| strategy: | ||
| matrix: | ||
| release: | ||
| - type: Debug | ||
| suffix: '-debug' | ||
| - type: Release | ||
| suffix: '' | ||
|
|
||
| name: Build (${{ matrix.release.type }}) | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v2 | ||
|
|
||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v1 | ||
| uses: actions/setup-dotnet@v5 | ||
| with: | ||
| dotnet-version: 5.0.x | ||
|
|
||
| - name: Restore Dependencies | ||
| run: dotnet restore | ||
| - name: Checkout SharpHoundCommon | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| repository: SpecterOps/SharpHoundCommon | ||
| ref: v4 | ||
| path: SharpHoundCommon | ||
|
|
||
| - name: Build | ||
| run: dotnet build -c ${{ matrix.release.type }} -p:Version=0.0.0-rolling+${{ github.sha }} | ||
| - name: Restore SharpHoundCommon Dependencies | ||
| working-directory: SharpHoundCommon | ||
| run: dotnet restore | ||
|
|
||
| - name: Zip | ||
| if: "! startsWith(github.event_name, 'pull_request')" | ||
| run: 7z a -tzip -mx9 SharpHound${{ matrix.release.suffix }}.zip $PWD/bin/${{ matrix.release.type }}/net472/* | ||
| - name: Build SharpHoundCommon | ||
| working-directory: SharpHoundCommon | ||
| run: dotnet build --no-restore | ||
|
|
||
| - name: Update Rolling Release | ||
| if: "! startsWith(github.event_name, 'pull_request')" | ||
| uses: softprops/action-gh-release@v1 | ||
| - name: Checkout SharpHound | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| name: Rolling Release (unstable) | ||
| tag_name: rolling | ||
| prerelease: true | ||
| files: SharpHound${{ matrix.release.suffix }}.zip | ||
| body: | | ||
| Rolling release of SharpHound compiled from source (${{ github.sha }}) | ||
| This is automatically kept up-to-date with the `${{ github.ref_name }}` ${{ github.ref_type }}. | ||
| path: SharpHound | ||
|
|
||
| - name: Restore SharpHound Dependencies | ||
| working-directory: SharpHound | ||
| run: dotnet restore | ||
|
|
||
| - name: Build SharpHound | ||
| working-directory: SharpHound | ||
| run: dotnet build --no-restore |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -3,7 +3,7 @@ name: Publish | |
| on: | ||
| push: | ||
| tags: | ||
| - "v*.*.*" | ||
| - v[0-9]+.[0-9]+.[0-9]+* | ||
|
|
||
| jobs: | ||
| build: | ||
|
|
||
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.