forked from glslang/setup-masm
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (63 loc) · 2.1 KB
/
Copy pathci.yaml
File metadata and controls
68 lines (63 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# 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: ${{ matrix.os }}
strategy:
matrix:
include:
- platform: x86
os: windows-latest
toolchain: stable
- platform: x64
os: windows-latest
toolchain: stable
- platform: arm64
os: windows-11-arm
toolchain: stable
steps:
- uses: actions/checkout@v6
- uses: microsoft/setup-msbuild@v3
with:
msbuild-architecture: ${{matrix.platform}}
- uses: ./
with:
vs-architecture: ${{matrix.platform}}
- name: Check MASM ${{matrix.platform}} Path
run: |
if ("${{matrix.platform}}" -eq "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
}
} elseif ("${{matrix.platform}}" -eq "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
}
} elseif ("${{matrix.platform}}" -eq "arm64") {
$mlPath = Get-Command armasm64.exe -ErrorAction SilentlyContinue
if ($mlPath) {
Write-Output "armasm64.exe found in PATH: $($mlPath.Source)"
} else {
Write-Error "armasm64.exe not found in PATH."
exit 1
}
} else {
Write-Error "Unknown platform ${{matrix.platform}} - no assembler configured for testing in PATH."
exit 1
}