Skip to content

Commit e1eae13

Browse files
committed
Enable Github CI (Windows x64 only)
1 parent 6c827a9 commit e1eae13

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/build.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Build and Release
2+
3+
on: [push, pull_request]
4+
5+
concurrency:
6+
group: ci-${{ github.event_name }}-${{ github.ref }}
7+
cancel-in-progress: ${{ github.event_name == 'push' }}
8+
9+
env:
10+
BUILD_TYPE: Release
11+
12+
jobs:
13+
get-info:
14+
runs-on: ubuntu-24.04
15+
outputs:
16+
date: ${{ steps.vars.outputs.date }}
17+
shorthash: ${{ steps.vars.outputs.shorthash }}
18+
fullhash: ${{ steps.vars.outputs.fullhash }}
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Get date and git hash
22+
id: vars
23+
run: |
24+
echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
25+
echo "shorthash=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
26+
echo "fullhash=$(git rev-parse HEAD)" >> $GITHUB_ENV
27+
echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
28+
echo "shorthash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
29+
echo "fullhash=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
30+
31+
windows:
32+
runs-on: windows-2025
33+
needs: get-info
34+
steps:
35+
- uses: actions/checkout@v4
36+
with:
37+
submodules: recursive
38+
39+
- name: Setup VS Environment
40+
uses: ilammy/[email protected]
41+
with:
42+
arch: amd64
43+
44+
- name: Build
45+
run: dotnet build --configuration Release --output ${{github.workspace}}/build
46+
47+
- name: Upload Windows artifact
48+
uses: actions/upload-artifact@v4
49+
with:
50+
name: Warbox-win64-${{ needs.get-info.outputs.date }}-${{ needs.get-info.outputs.shorthash }}
51+
path: ${{github.workspace}}/build
52+

0 commit comments

Comments
 (0)