Skip to content

Commit 05ebcb8

Browse files
James Courtier-DuttonJames Courtier-Dutton
authored andcommitted
Add .github/workflow/main.yml
This builds a windows version of ectool. Signed-off-by: James Courtier-Dutton <james@superbug.co.uk>
1 parent b5a0dbd commit 05ebcb8

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@v4
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+
& cmake -A x64 -T ClangCL ..
29+
30+
- name: Build with CMake
31+
shell: pwsh
32+
run: |
33+
cd _build
34+
& cmake --build . --config RelWithDebInfo --parallel
35+
36+
- name: Upload Build Artifacts
37+
uses: actions/upload-artifact@v4
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)