CI Build & Test #1
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
| # CI workflow to build and test | |
| name: CI Build & Test | |
| on: | |
| # Triggers the workflow on push or pull request events but only for the "main" branch | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| strategy: | |
| matrix: | |
| platform: [x86, x64] | |
| toolchain: | |
| - stable | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: microsoft/setup-msbuild@v2 | |
| with: | |
| msbuild-architecture: ${{matrix.platform}} | |
| - uses: ./ | |
| - name: Check MASM Path | |
| run: | | |
| if (${{matrix.platform}} == "x64") { | |
| $ml64Path = Get-Command ml64.exe -ErrorAction SilentlyContinue | |
| if ($ml64Path) { | |
| Write-Output "ml64.exe found in PATH: $($ml64Path.Source)" | |
| } else { | |
| Write-Error "ml64.exe not found in PATH." | |
| exit 1 | |
| } | |
| } else if (${{matrix.platform}} == "x86") { | |
| $mlPath = Get-Command ml.exe -ErrorAction SilentlyContinue | |
| if ($mlPath) { | |
| Write-Output "ml.exe found in PATH: $($mlPath.Source)" | |
| } else { | |
| Write-Error "ml.exe not found in PATH." | |
| exit 1 | |
| } | |
| } else { | |
| Write-Error "Unknown platform ${{matrix.platform}} to get ml<XXX>.exe in PATH." | |
| exit 1 | |
| } | |