diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml deleted file mode 100644 index 5b00e0e..0000000 --- a/.github/workflows/build-linux.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Build Project (Linux) - -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 Debug - - name: Testing - run: dotnet test --configuration Debug - - uses: actions/upload-artifact@v3 - if: success() || failure() - with: - name: nl-build - path: "NativeLand/bin/Debug/" - diff --git a/.github/workflows/build-macos-rel.yml b/.github/workflows/build-macos-rel.yml deleted file mode 100644 index 4c5111a..0000000 --- a/.github/workflows/build-macos-rel.yml +++ /dev/null @@ -1,28 +0,0 @@ -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 - diff --git a/.github/workflows/build-linux-rel.yml b/.github/workflows/build-rel.yml similarity index 63% rename from .github/workflows/build-linux-rel.yml rename to .github/workflows/build-rel.yml index 87c399a..5a1b10f 100644 --- a/.github/workflows/build-linux-rel.yml +++ b/.github/workflows/build-rel.yml @@ -1,4 +1,4 @@ -name: Build Project (Linux, Release) +name: Build Project (Release) on: push: @@ -10,15 +10,17 @@ on: jobs: build: - - runs-on: ubuntu-latest + strategy: + matrix: + runs-on: [ubuntu-latest, windows-latest, macos-latest] + runs-on: ${{ matrix.runs-on }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.ref }} - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: dotnet-version: '8.0.x' - name: Solution Compilation diff --git a/.github/workflows/build-win-rel.yml b/.github/workflows/build-win-rel.yml deleted file mode 100644 index fad4ee3..0000000 --- a/.github/workflows/build-win-rel.yml +++ /dev/null @@ -1,28 +0,0 @@ -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 - diff --git a/.github/workflows/build-win.yml b/.github/workflows/build-win.yml deleted file mode 100644 index 1888442..0000000 --- a/.github/workflows/build-win.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Build Project (Windows) - -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 Debug - - name: Testing - run: dotnet test --configuration Debug - - uses: actions/upload-artifact@v3 - if: success() || failure() - with: - name: nl-build - path: "NativeLand/bin/Debug/" - diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build.yml similarity index 51% rename from .github/workflows/build-macos.yml rename to .github/workflows/build.yml index 059e92e..2901d9a 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build Project (macOS) +name: Build Project (Debug) on: push: @@ -10,24 +10,21 @@ on: jobs: build: - - runs-on: macos-latest + strategy: + matrix: + runs-on: [ubuntu-latest, windows-latest, macos-latest] + runs-on: ${{ matrix.runs-on }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.ref }} - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: dotnet-version: '8.0.x' - name: Solution Compilation run: dotnet build --configuration Debug - name: Testing - run: dotnet test --configuration Debug - - uses: actions/upload-artifact@v3 - if: success() || failure() - with: - name: nl-build - path: "NativeLand/bin/Debug/" + run: dotnet test --no-build --configuration Debug