From b3f40fea48829e795956171fce610f296771131f Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Mon, 14 Aug 2023 12:35:19 +0200 Subject: [PATCH 1/2] Set up basic GHA workflow Signed-off-by: Frank Lichtenheld --- .github/workflows/build.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..91007b0 --- /dev/null +++ b/.github/workflows/build.yml @@ -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 From 02575b7fb0d1580cfe40c019f139540bc23d803b Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Mon, 14 Aug 2023 12:46:27 +0200 Subject: [PATCH 2/2] build.sh: actually abort on errors Signed-off-by: Frank Lichtenheld --- build.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/build.sh b/build.sh index 06a9243..8d4b483 100755 --- a/build.sh +++ b/build.sh @@ -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