From 63067e1dfb3b3238ecf09490ea6027c11d6a6122 Mon Sep 17 00:00:00 2001 From: Edu Garcia <28616+Arcnor@users.noreply.github.com> Date: Fri, 17 Nov 2023 14:35:24 +0000 Subject: [PATCH 1/3] Create glue.yml for CI --- .github/workflows/glue.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/glue.yml diff --git a/.github/workflows/glue.yml b/.github/workflows/glue.yml new file mode 100644 index 000000000..8ce263877 --- /dev/null +++ b/.github/workflows/glue.yml @@ -0,0 +1,34 @@ +name: FlatRedBall + +on: + push: + branches: [ "NetStandard" ] + pull_request: + branches: [ "NetStandard" ] + +jobs: + build: + strategy: + matrix: + configuration: [Debug, Release] + + runs-on: windows-latest # For a list of available runner types, refer to + # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + # Install the .NET Core workload + - name: Install .NET Core + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 6.0.x + + # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild + - name: Setup MSBuild.exe + uses: microsoft/setup-msbuild@v1.0.2 + + - name: Build + run: dotnet build '.\FRBDK\Glue\Glue with All.sln' From 84c8d977b60eb9c310a67cdc8d273e603d861539 Mon Sep 17 00:00:00 2001 From: Edu Garcia <28616+Arcnor@users.noreply.github.com> Date: Fri, 17 Nov 2023 14:42:32 +0000 Subject: [PATCH 2/3] Update glue.yml (try to clone Gum on the root folder) --- .github/workflows/glue.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/glue.yml b/.github/workflows/glue.yml index 8ce263877..0241b0e65 100644 --- a/.github/workflows/glue.yml +++ b/.github/workflows/glue.yml @@ -15,10 +15,17 @@ jobs: runs-on: windows-latest # For a list of available runner types, refer to # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on steps: - - name: Checkout - uses: actions/checkout@v3 + - name: Checkout FRB + uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: 1 + + - name: Checkout Gum + uses: actions/checkout@v4 + with: + name: ${{github.repository_owner}}/Gum + fetch-depth: 1 + path: '..' # Install the .NET Core workload - name: Install .NET Core From 5f7722a6310ba8de9f9864022bd7d60feaf2cb82 Mon Sep 17 00:00:00 2001 From: Edu Garcia <28616+Arcnor@users.noreply.github.com> Date: Fri, 17 Nov 2023 14:53:20 +0000 Subject: [PATCH 3/3] Update glue.yml (clone on subdirectory) --- .github/workflows/glue.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/glue.yml b/.github/workflows/glue.yml index 0241b0e65..228ee5aaa 100644 --- a/.github/workflows/glue.yml +++ b/.github/workflows/glue.yml @@ -19,13 +19,14 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 1 + path: 'FRB' - name: Checkout Gum uses: actions/checkout@v4 with: - name: ${{github.repository_owner}}/Gum + repository: ${{ github.repository_owner }}/Gum fetch-depth: 1 - path: '..' + path: 'Gum' # Install the .NET Core workload - name: Install .NET Core @@ -38,4 +39,10 @@ jobs: uses: microsoft/setup-msbuild@v1.0.2 - name: Build - run: dotnet build '.\FRBDK\Glue\Glue with All.sln' + run: dotnet build -c ${{ matrix.configuration }} 'FRB\FRBDK\Glue\Glue with All.sln' + + - name: Package + uses: actions/upload-artifact@v3 + with: + name: ${{ matrix.configuration }} + path: FRB/FRBDK/Glue/Glue/bin/${{ matrix.configuration }}