Skip to content

Upgrade to .NET 4.8 and add Windows GHA #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 31 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,44 @@
name: Build
name: OpenVPNServ2

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

jobs:
build:

ubuntu:
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

win:
runs-on: windows-latest
strategy:
matrix:
platform: [ "Any CPU", "x86", "x64" ]
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2

- name: Build Solution
run: msbuild OpenVpnService.sln /p:Configuration=Release "/p:Platform=${{ matrix.platform }}"

- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: OpenVpnService-${{ matrix.platform }}
path: |
bin/Release/**
bin/x86/Release/**
bin/x64/Release/**

2 changes: 1 addition & 1 deletion OpenVpnService.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>OpenVpnService</RootNamespace>
<AssemblyName>OpenVpnServ2</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
Expand Down