Skip to content

Commit be5549e

Browse files
committed
gha: add Windows GHA job
GitHub: #1 Signed-off-by: Lev Stipakov <[email protected]>
1 parent 351707d commit be5549e

File tree

1 file changed

+31
-5
lines changed

1 file changed

+31
-5
lines changed

.github/workflows/build.yml

+31-5
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,44 @@
1-
name: Build
1+
name: OpenVPNServ2
22

33
on:
44
push:
5+
branches:
6+
- master
57
pull_request:
6-
branches: [ "master" ]
8+
branches:
9+
- master
710

811
jobs:
9-
build:
10-
12+
ubuntu:
1113
runs-on: ubuntu-latest
12-
1314
steps:
1415
- uses: actions/checkout@v3
1516
- name: Install dependencies
1617
run: sudo apt-get update && sudo apt-get install mono-devel
1718
- name: Build
1819
run: ./build.sh
20+
21+
win:
22+
runs-on: windows-latest
23+
strategy:
24+
matrix:
25+
platform: [ "Any CPU", "x86", "x64" ]
26+
steps:
27+
- name: Checkout Code
28+
uses: actions/checkout@v4
29+
30+
- name: Setup MSBuild
31+
uses: microsoft/setup-msbuild@v2
32+
33+
- name: Build Solution
34+
run: msbuild OpenVpnService.sln /p:Configuration=Release "/p:Platform=${{ matrix.platform }}"
35+
36+
- name: Upload Build Artifacts
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: OpenVpnService-${{ matrix.platform }}
40+
path: |
41+
bin/Release/**
42+
bin/x86/Release/**
43+
bin/x64/Release/**
44+

0 commit comments

Comments
 (0)