1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-22 17:39:53 +03:00

Compare commits

..

1 Commits

Author SHA1 Message Date
Syuugo
7ce179d27f
Merge f56eff2e31 into 9f01143c83 2024-08-31 05:01:17 +00:00
9 changed files with 196 additions and 223 deletions

View File

@ -19,7 +19,7 @@ jobs:
with: with:
submodules: true submodules: true
- name: Install dependencies - name: Install apt dependencies
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y cmake gcc g++ libncurses5-dev libreadline-dev libssl-dev make zlib1g-dev libsodium-dev sudo apt-get install -y cmake gcc g++ libncurses5-dev libreadline-dev libssl-dev make zlib1g-dev libsodium-dev

View File

@ -7,13 +7,14 @@ on:
pull_request: pull_request:
workflow_dispatch: workflow_dispatch:
permissions:
contents: read
jobs: jobs:
build_and_test: build_and_test:
strategy: strategy:
matrix: matrix:
cc: cc: [ gcc, clang ]
- gcc
- clang
name: ${{ matrix.cc }} name: ${{ matrix.cc }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:

View File

@ -1,8 +1,8 @@
name: Linux name: Linux
on: [push, pull_request]
on: permissions:
push: contents: read
pull_request:
jobs: jobs:
build_and_test: build_and_test:
@ -10,15 +10,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - uses: actions/checkout@v4
uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- name: Install dependencies - name: Install dependencies
run: | run: sudo apt-get update && sudo apt-get -y install cmake gcc g++ ninja-build libncurses5-dev libreadline-dev libsodium-dev libssl-dev make zlib1g-dev liblz4-dev libnl-genl-3-dev
sudo apt-get update
sudo apt-get -y install cmake gcc g++ ninja-build libncurses5-dev libreadline-dev libsodium-dev libssl-dev make zlib1g-dev liblz4-dev libnl-genl-3-dev
- name: Build - name: Build
run: | run: |

View File

@ -1,18 +1,14 @@
name: macOS name: macOS
on: [push, pull_request, workflow_dispatch]
on: permissions:
push: contents: read
pull_request:
workflow_dispatch:
jobs: jobs:
build_and_test: build_and_test:
strategy: strategy:
matrix: matrix:
os: os: [macos-14, macos-13, macos-12]
- macos-14
- macos-13
- macos-12
name: ${{ matrix.os }} name: ${{ matrix.os }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:

View File

@ -1,8 +1,9 @@
name: Alpine/musl name: Alpine/musl
on: on: [push, pull_request]
push:
pull_request: permissions:
contents: read
jobs: jobs:
musl: musl:
@ -13,8 +14,7 @@ jobs:
steps: steps:
- name: Install dependencies - name: Install dependencies
run: | run: apk add binutils --no-cache build-base readline-dev openssl-dev ncurses-dev git cmake zlib-dev libsodium-dev gnu-libiconv
apk add binutils --no-cache build-base readline-dev openssl-dev ncurses-dev git cmake zlib-dev libsodium-dev gnu-libiconv
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -22,9 +22,7 @@ jobs:
submodules: true submodules: true
- name: Configure - name: Configure
run: | run: ./configure
./configure
- name: make - name: make
run: | run: make -C build
make -C build

View File

@ -1,8 +1,8 @@
name: STB Check name: STB Check
on: [push, pull_request]
on: permissions:
push: contents: read
pull_request:
jobs: jobs:
check: check:

View File

@ -1,26 +1,16 @@
name: Windows name: Windows
on: [push, pull_request]
on: permissions:
push: contents: read
pull_request:
jobs: jobs:
build_and_test: build_and_test:
strategy: strategy:
matrix: matrix:
platform: [ platform: [
{ { ARCHITECTURE: x86, COMPILER_PATH: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/Llvm/bin/clang-cl.exe", VCPKG_TRIPLET: "x86-windows-static", VCVARS_PATH: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars32.bat"},
ARCHITECTURE: x86, { ARCHITECTURE: x64, COMPILER_PATH: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/Llvm/x64/bin/clang-cl.exe", VCPKG_TRIPLET: "x64-windows-static", VCVARS_PATH: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat"}
COMPILER_PATH: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/Llvm/bin/clang-cl.exe",
VCPKG_TRIPLET: "x86-windows-static",
VCVARS_PATH: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars32.bat"
},
{
ARCHITECTURE: x64,
COMPILER_PATH: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/Llvm/x64/bin/clang-cl.exe",
VCPKG_TRIPLET: "x64-windows-static",
VCVARS_PATH: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
}
] ]
runs-on: windows-latest runs-on: windows-latest
name: ${{ matrix.platform.ARCHITECTURE }} name: ${{ matrix.platform.ARCHITECTURE }}
@ -39,7 +29,8 @@ jobs:
- name: Set version variables - name: Set version variables
run: | run: |
Write-Output "VERSION=$(python version.py)" | Out-File -FilePath $Env:GITHUB_ENV -Encoding UTF8 -Append $v = python version.py
echo "VERSION=$v" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
shell: pwsh shell: pwsh
- name: Build - name: Build

View File

@ -1,4 +1,4 @@
name: Release name: "Release"
on: on:
push: push:
@ -20,36 +20,26 @@ jobs:
upload_url: "${{ steps.create_release.outputs.upload_url }}" upload_url: "${{ steps.create_release.outputs.upload_url }}"
steps: steps:
- name: Checkout - name: "Checkout repository"
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Create GitHub release - name: "Create GitHub release"
id: create_release id: create_release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
build-windows: build-windows:
name: ${{ matrix.platform.ARCHITECTURE }} name: ${{ matrix.platform.ARCHITECTURE }}
runs-on: windows-latest runs-on: windows-latest
needs: release needs: ["release"]
strategy: strategy:
matrix: matrix:
platform: [ platform: [
{ { ARCHITECTURE: x86, COMPILER_PATH: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/Llvm/bin/clang-cl.exe", VCPKG_TRIPLET: "x86-windows-static", VCVARS_PATH: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars32.bat"},
ARCHITECTURE: x86, { ARCHITECTURE: x64, COMPILER_PATH: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/Llvm/x64/bin/clang-cl.exe", VCPKG_TRIPLET: "x64-windows-static", VCVARS_PATH: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat"}
COMPILER_PATH: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/Llvm/bin/clang-cl.exe",
VCPKG_TRIPLET: "x86-windows-static",
VCVARS_PATH: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars32.bat"
},
{
ARCHITECTURE: x64,
COMPILER_PATH: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/Llvm/x64/bin/clang-cl.exe",
VCPKG_TRIPLET: "x64-windows-static",
VCVARS_PATH: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
}
] ]
steps: steps:
- name: Checkout - name: "Checkout repository"
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
submodules: true submodules: true
@ -62,10 +52,10 @@ jobs:
- name: Set version variables - name: Set version variables
run: | run: |
@( $b=(Get-Content CMakeSettings.json | Out-String | ConvertFrom-Json).environments.BuildNumber
"BUILD_NUMBER=$((Get-Content CMakeSettings.json | Out-String | ConvertFrom-Json).environments.BuildNumber)" echo "BUILD_NUMBER=$b" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
"VERSION=$(python version.py)" $v = python version.py
) | Out-File -FilePath $Env:GITHUB_ENV -Encoding UTF8 -Append echo "VERSION=$v" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
shell: pwsh shell: pwsh
- name: Build - name: Build
@ -90,13 +80,13 @@ jobs:
Get-ChildItem -Recurse build/installers Get-ChildItem -Recurse build/installers
shell: pwsh shell: pwsh
- name: Upload softether-vpnclient - name: "Upload softether-vpnclient"
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:
files: "build/installers/softether-vpnclient-${{ env.VERSION }}.${{ env.BUILD_NUMBER }}.${{ matrix.platform.ARCHITECTURE }}.exe" files: "build/installers/softether-vpnclient-${{ env.VERSION }}.${{ env.BUILD_NUMBER }}.${{ matrix.platform.ARCHITECTURE }}.exe"
name: "softether-vpnclient-${{ env.VERSION }}.${{ env.BUILD_NUMBER }}.${{ matrix.platform.ARCHITECTURE }}.exe" name: "softether-vpnclient-${{ env.VERSION }}.${{ env.BUILD_NUMBER }}.${{ matrix.platform.ARCHITECTURE }}.exe"
- name: Upload softether-vpnserver_vpnbridge - name: "Upload softether-vpnserver_vpnbridge"
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:
files: "build/installers/softether-vpnserver_vpnbridge-${{ env.VERSION }}.${{ env.BUILD_NUMBER }}.${{ matrix.platform.ARCHITECTURE }}.exe" files: "build/installers/softether-vpnserver_vpnbridge-${{ env.VERSION }}.${{ env.BUILD_NUMBER }}.${{ matrix.platform.ARCHITECTURE }}.exe"