Fix EnableStartAsAdminAlwaysOnTop feature #35
Workflow file for this run
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
name: continuous-integration | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Nuget Packages | |
run: nuget restore .\packages.config -PackagesDirectory .\packages\ | |
- name: Build Init | |
shell: cmd | |
working-directory: ${{github.workspace}} | |
run: build\build_init.cmd | |
- name: Build Solution | |
shell: cmd | |
working-directory: ${{github.workspace}} | |
run: build\build_verbose.cmd | |
build_driver: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Nuget Packages | |
run: nuget restore .\packages.config -PackagesDirectory .\packages\ | |
- name: Build Tools | |
shell: cmd | |
working-directory: ${{github.workspace}} | |
run: build\build_tools.cmd | |
- name: Build Driver | |
shell: cmd | |
working-directory: ${{github.workspace}} | |
run: build\build_zdriver.cmd prefast | |
notify: | |
runs-on: ubuntu-latest | |
needs: [build, build_driver] | |
if: always() | |
steps: | |
- name: Notify | |
run: | | |
BUILD_STATUS=${{ needs.build.result }} | |
BUILD_DRIVER_STATUS=${{ needs.build_driver.result }} | |
if [ "$BUILD_STATUS" = "success" ] && [ "$BUILD_DRIVER_STATUS" = "success" ]; then | |
COLOR=3066993 | |
TITLE="[${{ github.event.repository.name }}:${{ github.ref_name }}] Build Succeeded" | |
DESCRIPTION="✅ __**Build Successful**__" | |
else | |
COLOR=15158332 | |
TITLE="[${{ github.event.repository.name }}:${{ github.ref_name }}] Build Failed" | |
DESCRIPTION="🚨 __**Build Failure**__" | |
fi | |
curl -X POST '${{ secrets.DISCORD_WEBHOOK_URL }}' \ | |
-H 'Content-Type: application/json' \ | |
-d '{ | |
"username": "GitHub", | |
"avatar_url": "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png", | |
"embeds": [ | |
{ | |
"author": { | |
"name": "${{ github.actor }}", | |
"url": "${{ github.server_url }}/${{ github.actor }}", | |
"icon_url": "https://avatars.githubusercontent.com/u/${{ github.actor_id }}?v=4" | |
}, | |
"title": "'"${TITLE}"'", | |
"url": "${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }}", | |
"color": '"${COLOR}"', | |
"description": "'"${DESCRIPTION}"'", | |
"fields": [ | |
{ | |
"name": "Reference", | |
"value": "[${{ github.ref_name }}](${{ github.event.repository.html_url }}/commits/${{ github.ref_name }})", | |
"inline": true | |
}, | |
{ | |
"name": "User", | |
"value": "[${{ github.actor }}](${{ github.server_url }}/${{ github.actor }})", | |
"inline": true | |
}, | |
{ | |
"name": "Workflow", | |
"value": "[${{ github.workflow }}](${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }})", | |
"inline": true | |
}, | |
{ | |
"name": "Commit", | |
"value": "[`${{ github.sha }}`](${{ github.event.repository.html_url }}/commit/${{ github.sha }})" | |
}, | |
{ | |
"name": "Message", | |
"value": ${{ toJSON(github.event.head_commit.message) }} | |
} | |
] | |
} | |
] | |
}' |