Remove Compiled Files, ignore Files and add Compile-Check on PR #2
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: Compile & Check | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
workflow_dispatch: # Manual trigger added | |
workflow_call: # Allow other Actions to call this workflow | |
jobs: | |
Compile-and-Check: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout Sources | |
uses: actions/checkout@v4 | |
- name: Compile winutil.ps1 | |
shell: pwsh | |
run: | | |
Set-ExecutionPolicy Bypass -Scope Process -Force; ./Compile.ps1 | |
continue-on-error: false # Directly fail the job on error, removing the need for a separate check | |
- name: Check Syntax of winutil.ps1 | |
shell: pwsh | |
run: | | |
Set-ExecutionPolicy Bypass -Scope Process -Force; Get-Command -Syntax .\winutil.ps1 | |
continue-on-error: false |