mirror of
https://github.com/EpicMorg/SteamPathsLib.git
synced 2024-12-25 14:05:28 +03:00
gha
This commit is contained in:
parent
44c8097599
commit
08b0736521
40
.github/workflows/develop.yml
vendored
Normal file
40
.github/workflows/develop.yml
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
name: SteamPathsLib - develop
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ develop ]
|
||||
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: Set the value
|
||||
run: echo "ACTIONS_ALLOW_UNSECURE_COMMANDS=true" >> $GITHUB_ENV
|
||||
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@master
|
||||
with:
|
||||
clean: true
|
||||
fetch-depth: 0
|
||||
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: Restore NuGet Packages
|
||||
run: nuget restore src/EpicMorg.SteamPathsSolution.sln
|
||||
|
||||
- name: Build Debug
|
||||
run: msbuild src/EpicMorg.SteamPathsSolution.sln /p:Configuration=Debug
|
25
.github/workflows/dotnet-core.yml
vendored
25
.github/workflows/dotnet-core.yml
vendored
@ -1,25 +0,0 @@
|
||||
name: .NET Core
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup .NET Core
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 3.1.301
|
||||
- name: Install dependencies
|
||||
run: dotnet restore ./src/EpicMorg.SteamPathsLib/EpicMorg.SteamPathsLib.csproj
|
||||
- name: Build
|
||||
run: dotnet build --configuration Release --no-restore ./src/EpicMorg.SteamPathsLib/EpicMorg.SteamPathsLib.csproj
|
||||
- name: Test
|
||||
run: dotnet test --no-restore --verbosity normal ./src/EpicMorg.SteamPathsLib/EpicMorg.SteamPathsLib.csproj
|
40
.github/workflows/master.yml
vendored
Normal file
40
.github/workflows/master.yml
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
name: SteamPathsLib - master
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: Set the value
|
||||
run: echo "ACTIONS_ALLOW_UNSECURE_COMMANDS=true" >> $GITHUB_ENV
|
||||
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@master
|
||||
with:
|
||||
clean: true
|
||||
fetch-depth: 0
|
||||
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: Restore NuGet Packages
|
||||
run: nuget restore src/EpicMorg.SteamPathsSolution.sln
|
||||
|
||||
- name: Build Release
|
||||
run: msbuild src/EpicMorg.SteamPathsSolution.sln /p:Configuration=Release
|
43
.github/workflows/pr.yml
vendored
Normal file
43
.github/workflows/pr.yml
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
name: SteamPathsLib - pull request to master
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: Set the value
|
||||
run: echo "ACTIONS_ALLOW_UNSECURE_COMMANDS=true" >> $GITHUB_ENV
|
||||
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@master
|
||||
with:
|
||||
clean: true
|
||||
fetch-depth: 0
|
||||
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: Restore NuGet Packages
|
||||
run: nuget restore src/EpicMorg.SteamPathsSolution.sln
|
||||
|
||||
- name: Build Debug
|
||||
run: msbuild src/EpicMorg.SteamPathsSolution.sln /p:Configuration=Debug
|
||||
|
||||
- name: Build Release
|
||||
run: msbuild src/EpicMorg.SteamPathsSolution.sln /p:Configuration=Release
|
Loading…
Reference in New Issue
Block a user