From 97d618d387cbe9f0bed6bf303e9b35f0668f4adb Mon Sep 17 00:00:00 2001 From: Aptivi CEO Date: Sat, 25 Nov 2023 15:46:23 +0300 Subject: [PATCH] und - Added Release build workflow --- .github/workflows/build-linux-rel.yml | 42 +++++++++++++++++++++++++++ .github/workflows/build-macos-rel.yml | 42 +++++++++++++++++++++++++++ .github/workflows/build-win-rel.yml | 42 +++++++++++++++++++++++++++ 3 files changed, 126 insertions(+) create mode 100644 .github/workflows/build-linux-rel.yml create mode 100644 .github/workflows/build-macos-rel.yml create mode 100644 .github/workflows/build-win-rel.yml diff --git a/.github/workflows/build-linux-rel.yml b/.github/workflows/build-linux-rel.yml new file mode 100644 index 0000000..ab40692 --- /dev/null +++ b/.github/workflows/build-linux-rel.yml @@ -0,0 +1,42 @@ +name: Build Project (Linux, Release) + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ github.ref }} + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '8.0.x' + - name: Solution Compilation + run: dotnet build --configuration Release + - name: Testing + run: dotnet test --no-build --configuration Release + + notify: + + runs-on: ubuntu-latest + needs: + - build + if: ${{ always() }} + + steps: + - name: Notify + uses: nobrayner/discord-webhook@v1 + with: + github-token: ${{ secrets.G_TOKEN }} + discord-webhook: ${{ secrets.DISCORD_WEBHOOK }} + diff --git a/.github/workflows/build-macos-rel.yml b/.github/workflows/build-macos-rel.yml new file mode 100644 index 0000000..616df09 --- /dev/null +++ b/.github/workflows/build-macos-rel.yml @@ -0,0 +1,42 @@ +name: Build Project (macOS, Release) + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + + runs-on: macos-latest + + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ github.ref }} + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '8.0.x' + - name: Solution Compilation + run: dotnet build --configuration Release + - name: Testing + run: dotnet test --no-build --configuration Release + + notify: + + runs-on: ubuntu-latest + needs: + - build + if: ${{ always() }} + + steps: + - name: Notify + uses: nobrayner/discord-webhook@v1 + with: + github-token: ${{ secrets.G_TOKEN }} + discord-webhook: ${{ secrets.DISCORD_WEBHOOK }} + diff --git a/.github/workflows/build-win-rel.yml b/.github/workflows/build-win-rel.yml new file mode 100644 index 0000000..e5e861f --- /dev/null +++ b/.github/workflows/build-win-rel.yml @@ -0,0 +1,42 @@ +name: Build Project (Windows, Release) + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ github.ref }} + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '8.0.x' + - name: Solution Compilation + run: dotnet build --configuration Release + - name: Testing + run: dotnet test --no-build --configuration Release + + notify: + + runs-on: ubuntu-latest + needs: + - build + if: ${{ always() }} + + steps: + - name: Notify + uses: nobrayner/discord-webhook@v1 + with: + github-token: ${{ secrets.G_TOKEN }} + discord-webhook: ${{ secrets.DISCORD_WEBHOOK }} +