From 7a595ab8d7be1b56d7be3e33265dbdfb9216cb14 Mon Sep 17 00:00:00 2001 From: STAM Date: Wed, 13 Apr 2022 22:34:56 +0300 Subject: [PATCH 1/4] dependabot + gha --- .github/dependabot.yml | 9 ++++++++ .github/workflows/develop.yml | 40 ++++++++++++++++++++++++++++++++ .github/workflows/master.yml | 40 ++++++++++++++++++++++++++++++++ .github/workflows/pr.yml | 43 +++++++++++++++++++++++++++++++++++ 4 files changed, 132 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/develop.yml create mode 100644 .github/workflows/master.yml create mode 100644 .github/workflows/pr.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..2ebd201 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,9 @@ +version: 2 +updates: +- package-ecosystem: nuget + directory: "/" + schedule: + interval: daily + time: "02:00" + open-pull-requests-limit: 10 + target-branch: "develop" diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml new file mode 100644 index 0000000..76006bf --- /dev/null +++ b/.github/workflows/develop.yml @@ -0,0 +1,40 @@ +name: SourceSDK.ENV.Editor - 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/SourceSDK.ENV.Editor.sln + + - name: Build Debug + run: msbuild src/SourceSDK.ENV.Editor.sln /p:Configuration=Debug diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml new file mode 100644 index 0000000..45e0e63 --- /dev/null +++ b/.github/workflows/master.yml @@ -0,0 +1,40 @@ +name: SourceSDK.ENV.Editor - 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/SourceSDK.ENV.Editor.sln + + - name: Build Release + run: msbuild src/SourceSDK.ENV.Editor.sln /p:Configuration=Release diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..7875396 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,43 @@ +name: SourceSDK.ENV.Editor - 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/SourceSDK.ENV.Editor.sln + + - name: Build Debug + run: msbuild src/SourceSDK.ENV.Editor.sln /p:Configuration=Debug + + - name: Build Release + run: msbuild src/SourceSDK.ENV.Editor.sln /p:Configuration=Release From e8cf00f9efbc2772a5695fd95b3df1522c897bd2 Mon Sep 17 00:00:00 2001 From: STAM Date: Wed, 13 Apr 2022 22:45:23 +0300 Subject: [PATCH 2/4] gha --- .github/workflows/develop.yml | 3 +++ .github/workflows/master.yml | 3 +++ .github/workflows/pr.yml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index 76006bf..2072105 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -33,6 +33,9 @@ jobs: - 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 diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 45e0e63..9ee269c 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -33,6 +33,9 @@ jobs: - 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 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 7875396..70dd51d 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -33,6 +33,9 @@ jobs: - 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 From 624b4a75138ab45bc4c3f8c2bbc83b38950633b9 Mon Sep 17 00:00:00 2001 From: STAM Date: Wed, 13 Apr 2022 22:56:16 +0300 Subject: [PATCH 3/4] gh test --- .github/workflows/develop.yml | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index 2072105..7bcc561 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -10,7 +10,6 @@ env: jobs: build: runs-on: windows-latest - steps: - name: Set the value @@ -24,20 +23,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 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 From 33d382579aeba317f25d5acd75f259b140ab341d Mon Sep 17 00:00:00 2001 From: STAM Date: Wed, 13 Apr 2022 23:00:28 +0300 Subject: [PATCH 4/4] gha --- .github/workflows/develop.yml | 2 ++ .github/workflows/master.yml | 30 ++++++++++++++---------------- .github/workflows/pr.yml | 32 +++++++++++++++----------------- 3 files changed, 31 insertions(+), 33 deletions(-) diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index 7bcc561..d157a47 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -6,6 +6,8 @@ on: env: ACTIONS_ALLOW_UNSECURE_COMMANDS: true + DOTNET_CLI_TELEMETRY_OPTOUT: true + DOTNET_NOLOGO: true jobs: build: diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 9ee269c..478d64f 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -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 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 70dd51d..0be19c9 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -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