Skip to content

Commit 4b8ec50

Browse files
authored
Merge pull request #15 from flichtenheld/gha
GitHub action
2 parents 2d15ec0 + 02575b7 commit 4b8ec50

File tree

2 files changed

+26
-6
lines changed

2 files changed

+26
-6
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches: [ "master" ]
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Install dependencies
16+
run: sudo apt-get update && sudo apt-get install mono-devel
17+
- name: Build
18+
run: ./build.sh

build.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
#!/bin/sh
22

3-
xbuild /p:Configuration=Release "/p:Platform=Any CPU" OpenVpnService.sln
4-
xbuild /p:Configuration=Release "/p:Platform=x86" OpenVpnService.sln
5-
xbuild /p:Configuration=Release "/p:Platform=x64" OpenVpnService.sln
3+
set -eux
64

7-
xbuild /p:Configuration=Debug "/p:Platform=Any CPU" OpenVpnService.sln
8-
xbuild /p:Configuration=Debug "/p:Platform=x86" OpenVpnService.sln
9-
xbuild /p:Configuration=Debug "/p:Platform=x64" OpenVpnService.sln
5+
xbuild /p:Configuration=Release "/p:Platform=Any CPU" OpenVpnService.sln
6+
xbuild /p:Configuration=Release "/p:Platform=x86" OpenVpnService.sln
7+
xbuild /p:Configuration=Release "/p:Platform=x64" OpenVpnService.sln
8+
9+
xbuild /p:Configuration=Debug "/p:Platform=Any CPU" OpenVpnService.sln
10+
xbuild /p:Configuration=Debug "/p:Platform=x86" OpenVpnService.sln
11+
xbuild /p:Configuration=Debug "/p:Platform=x64" OpenVpnService.sln

0 commit comments

Comments
 (0)