Skip to content

Commit

Permalink
Merge pull request #15 from flichtenheld/gha
Browse files Browse the repository at this point in the history
GitHub action
  • Loading branch information
flichtenheld authored Aug 14, 2023
2 parents 2d15ec0 + 02575b7 commit 4b8ec50
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build

on:
push:
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install mono-devel
- name: Build
run: ./build.sh
14 changes: 8 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/bin/sh

xbuild /p:Configuration=Release "/p:Platform=Any CPU" OpenVpnService.sln
xbuild /p:Configuration=Release "/p:Platform=x86" OpenVpnService.sln
xbuild /p:Configuration=Release "/p:Platform=x64" OpenVpnService.sln
set -eux

xbuild /p:Configuration=Debug "/p:Platform=Any CPU" OpenVpnService.sln
xbuild /p:Configuration=Debug "/p:Platform=x86" OpenVpnService.sln
xbuild /p:Configuration=Debug "/p:Platform=x64" OpenVpnService.sln
xbuild /p:Configuration=Release "/p:Platform=Any CPU" OpenVpnService.sln
xbuild /p:Configuration=Release "/p:Platform=x86" OpenVpnService.sln
xbuild /p:Configuration=Release "/p:Platform=x64" OpenVpnService.sln

xbuild /p:Configuration=Debug "/p:Platform=Any CPU" OpenVpnService.sln
xbuild /p:Configuration=Debug "/p:Platform=x86" OpenVpnService.sln
xbuild /p:Configuration=Debug "/p:Platform=x64" OpenVpnService.sln

0 comments on commit 4b8ec50

Please sign in to comment.