mirror of
https://github.com/EpicMorg/SourceSDK.ENV.Editor.git
synced 2024-10-16 14:16:50 +03:00
gha
This commit is contained in:
parent
624b4a7513
commit
33d382579a
2
.github/workflows/develop.yml
vendored
2
.github/workflows/develop.yml
vendored
@ -6,6 +6,8 @@ on:
|
||||
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
||||
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
||||
DOTNET_NOLOGO: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
30
.github/workflows/master.yml
vendored
30
.github/workflows/master.yml
vendored
@ -6,11 +6,12 @@ on:
|
||||
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
||||
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
||||
DOTNET_NOLOGO: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: Set the value
|
||||
@ -24,20 +25,17 @@ jobs:
|
||||
lfs: true
|
||||
submodules: true
|
||||
|
||||
- name: Add msbuild to PATH
|
||||
uses: microsoft/setup-msbuild@v1.1
|
||||
with:
|
||||
vs-prerelease: true
|
||||
msbuild-architecture: x86
|
||||
|
||||
- name: Setup NuGet
|
||||
uses: NuGet/setup-nuget@v1
|
||||
|
||||
- name: Add nuget private repo
|
||||
run: nuget add source --username ${{ secrets.GITHUB_USERNAME }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/colhountech/index.json"
|
||||
|
||||
- name: Restore NuGet Packages
|
||||
run: nuget restore src/SourceSDK.ENV.Editor.sln
|
||||
- name: Setup dotnet
|
||||
uses: actions/setup-dotnet@v2
|
||||
with:
|
||||
dotnet-version: '6.0.x'
|
||||
include-prerelease: true
|
||||
source-url: https://nuget.pkg.github.com/colhountech/index.json
|
||||
env:
|
||||
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
|
||||
- name: Restore NuGet Packages
|
||||
run: dotnet restore src/SourceSDK.ENV.Editor.csproj
|
||||
|
||||
- name: Build Release
|
||||
run: msbuild src/SourceSDK.ENV.Editor.sln /p:Configuration=Release
|
||||
run: dotnet build src/SourceSDK.ENV.Editor.sln --configuration Release --force --no-incremental --nologo
|
||||
|
32
.github/workflows/pr.yml
vendored
32
.github/workflows/pr.yml
vendored
@ -6,11 +6,12 @@ on:
|
||||
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
||||
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
||||
DOTNET_NOLOGO: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: Set the value
|
||||
@ -24,23 +25,20 @@ jobs:
|
||||
lfs: true
|
||||
submodules: true
|
||||
|
||||
- name: Add msbuild to PATH
|
||||
uses: microsoft/setup-msbuild@v1.1
|
||||
with:
|
||||
vs-prerelease: true
|
||||
msbuild-architecture: x86
|
||||
|
||||
- name: Setup NuGet
|
||||
uses: NuGet/setup-nuget@v1
|
||||
|
||||
- name: Add nuget private repo
|
||||
run: nuget add source --username ${{ secrets.GITHUB_USERNAME }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/colhountech/index.json"
|
||||
|
||||
- name: Restore NuGet Packages
|
||||
run: nuget restore src/SourceSDK.ENV.Editor.sln
|
||||
- name: Setup dotnet
|
||||
uses: actions/setup-dotnet@v2
|
||||
with:
|
||||
dotnet-version: '6.0.x'
|
||||
include-prerelease: true
|
||||
source-url: https://nuget.pkg.github.com/colhountech/index.json
|
||||
env:
|
||||
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
|
||||
- name: Restore NuGet Packages
|
||||
run: dotnet restore src/SourceSDK.ENV.Editor.csproj
|
||||
|
||||
- name: Build Debug
|
||||
run: msbuild src/SourceSDK.ENV.Editor.sln /p:Configuration=Debug
|
||||
run: dotnet build src/SourceSDK.ENV.Editor.sln --configuration Debug --force --no-incremental --nologo
|
||||
|
||||
- name: Build Release
|
||||
run: msbuild src/SourceSDK.ENV.Editor.sln /p:Configuration=Release
|
||||
run: dotnet build src/SourceSDK.ENV.Editor.sln --configuration Release --force --no-incremental --nologo
|
||||
|
Loading…
Reference in New Issue
Block a user