Skip to content

Commit d9db6ed

Browse files
authored
Create main.yml
Create main.yml Signed-off-by: James Courtier-Dutton <james@superbug.co.uk>
1 parent ec03837 commit d9db6ed

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Build Windows/x64
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: windows-latest
14+
15+
steps:
16+
- name: Checkout Repository with Submodules
17+
uses: actions/checkout@v3
18+
with:
19+
submodules: recursive
20+
21+
- name: Create Build Directory
22+
run: mkdir _build
23+
24+
- name: Configure with CMake
25+
shell: pwsh
26+
run: |
27+
cd _build
28+
& "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -A x64 -T ClangCL ..
29+
30+
- name: Build with CMake
31+
shell: pwsh
32+
run: |
33+
cd _build
34+
& "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" --build . --config RelWithDebInfo --parallel
35+
36+
- name: Upload Build Artifacts
37+
uses: actions/upload-artifact@v3
38+
with:
39+
name: ectool
40+
path: |
41+
_build/src/RelWithDebInfo/ectool.exe
42+
_build/src/RelWithDebInfo/ectool.pdb
43+

0 commit comments

Comments
 (0)