File tree Expand file tree Collapse file tree 1 file changed +62
-0
lines changed
Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ push :
5+ branches : [main]
6+ tags : ['v*']
7+ pull_request :
8+ branches : [main]
9+
10+ jobs :
11+ build :
12+ runs-on : windows-latest
13+ strategy :
14+ matrix :
15+ arch : [x64, ARM64]
16+
17+ steps :
18+ - uses : actions/checkout@v4
19+
20+ - name : Configure CMake
21+ run : cmake -S . -B build -G "Visual Studio 17 2022" -A ${{ matrix.arch }}
22+
23+ - name : Build
24+ run : cmake --build build --config Release
25+
26+ - name : Upload artifact
27+ uses : actions/upload-artifact@v4
28+ with :
29+ name : toasty-${{ matrix.arch }}
30+ path : build/Release/toasty.exe
31+
32+ release :
33+ needs : build
34+ runs-on : ubuntu-latest
35+ if : startsWith(github.ref, 'refs/tags/v')
36+ permissions :
37+ contents : write
38+
39+ steps :
40+ - name : Download x64
41+ uses : actions/download-artifact@v4
42+ with :
43+ name : toasty-x64
44+ path : x64
45+
46+ - name : Download ARM64
47+ uses : actions/download-artifact@v4
48+ with :
49+ name : toasty-ARM64
50+ path : arm64
51+
52+ - name : Rename binaries
53+ run : |
54+ mv x64/toasty.exe toasty-x64.exe
55+ mv arm64/toasty.exe toasty-arm64.exe
56+
57+ - name : Create Release
58+ uses : softprops/action-gh-release@v1
59+ with :
60+ files : |
61+ toasty-x64.exe
62+ toasty-arm64.exe
You can’t perform that action at this time.
0 commit comments