diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index fb86cf0..889be06 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -1,10 +1,8 @@ -name: develop +name: Universal Valve Toolbox - develop on: push: branches: [ develop ] - pull_request: - branches: [ master ] env: ACTIONS_ALLOW_UNSECURE_COMMANDS: true @@ -20,6 +18,11 @@ jobs: - 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 @@ -35,6 +38,3 @@ jobs: - name: Build Debug run: msbuild src/UniversalValveToolbox.sln /p:Configuration=Debug - - - name: Build Release - run: msbuild src/UniversalValveToolbox.sln /p:Configuration=Release \ No newline at end of file diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml new file mode 100644 index 0000000..73419ad --- /dev/null +++ b/.github/workflows/master.yml @@ -0,0 +1,40 @@ +name: Universal Valve Toolbox - 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/UniversalValveToolbox.sln + + - name: Build Release + run: msbuild src/UniversalValveToolbox.sln /p:Configuration=Release diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..9e63b09 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,43 @@ +name: Universal Valve Toolbox - 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/UniversalValveToolbox.sln + + - name: Build Debug + run: msbuild src/UniversalValveToolbox.sln /p:Configuration=Debug + + - name: Build Release + run: msbuild src/UniversalValveToolbox.sln /p:Configuration=Release