From 7bc40fc22da28bd973ad0ddabcf4f2ee0bc3d950 Mon Sep 17 00:00:00 2001 From: STAM Date: Wed, 13 Apr 2022 21:42:41 +0300 Subject: [PATCH 1/5] gh develop --- .github/workflows/develop.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/develop.yml diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml new file mode 100644 index 0000000..3b671af --- /dev/null +++ b/.github/workflows/develop.yml @@ -0,0 +1,30 @@ +name: develop + +on: + push: + branches: [ develop ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v1 + name: Checkout Code + + - name: Setup MSBuild Path + uses: warrenbuckley/Setup-MSBuild@v1 + + - name: Setup NuGet + uses: NuGet/setup-nuget@v1.0.2 + + - 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 \ No newline at end of file From b1748ba28e23b8d0b65647d2d5f17f00765bd798 Mon Sep 17 00:00:00 2001 From: STAM Date: Wed, 13 Apr 2022 21:48:53 +0300 Subject: [PATCH 2/5] gh --- .github/workflows/develop.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index 3b671af..45792a2 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -10,15 +10,18 @@ jobs: build: runs-on: windows-latest + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: true + steps: - - uses: actions/checkout@v1 + - uses: actions/checkout name: Checkout Code - name: Setup MSBuild Path - uses: warrenbuckley/Setup-MSBuild@v1 + uses: warrenbuckley/Setup-MSBuild - name: Setup NuGet - uses: NuGet/setup-nuget@v1.0.2 + uses: NuGet/setup-nuget - name: Restore NuGet Packages run: nuget restore src/UniversalValveToolbox.sln From 7ac39e94af974bad7ddc27c4f658cce8364ef2eb Mon Sep 17 00:00:00 2001 From: STAM Date: Wed, 13 Apr 2022 21:52:24 +0300 Subject: [PATCH 3/5] gha --- .github/workflows/develop.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index 45792a2..0fbe692 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -6,14 +6,18 @@ on: pull_request: branches: [ master ] +env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: true + jobs: build: runs-on: windows-latest - - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: true - + steps: + + - name: Set the value + run: echo "ACTIONS_ALLOW_UNSECURE_COMMANDS=true" >> $GITHUB_ENV + - uses: actions/checkout name: Checkout Code From 68677f4766b0c282e615cea63a9969f03a017185 Mon Sep 17 00:00:00 2001 From: STAM Date: Wed, 13 Apr 2022 21:55:28 +0300 Subject: [PATCH 4/5] gha --- .github/workflows/develop.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index 0fbe692..fb86cf0 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -18,15 +18,18 @@ jobs: - name: Set the value run: echo "ACTIONS_ALLOW_UNSECURE_COMMANDS=true" >> $GITHUB_ENV - - uses: actions/checkout - name: Checkout Code - - - name: Setup MSBuild Path - uses: warrenbuckley/Setup-MSBuild - + - name: Checkout Code + uses: actions/checkout@master + + - 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 - + uses: NuGet/setup-nuget@v1 + - name: Restore NuGet Packages run: nuget restore src/UniversalValveToolbox.sln From 50a3ce3cfb20953d4e3a7ef8f51095d99d86ea18 Mon Sep 17 00:00:00 2001 From: STAM Date: Wed, 13 Apr 2022 22:02:37 +0300 Subject: [PATCH 5/5] gha --- .github/workflows/develop.yml | 12 +++++----- .github/workflows/master.yml | 40 ++++++++++++++++++++++++++++++++ .github/workflows/pr.yml | 43 +++++++++++++++++++++++++++++++++++ 3 files changed, 89 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/master.yml create mode 100644 .github/workflows/pr.yml 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