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 }} +