From d694e51c78925a5317673e32b913ba3d36c59af3 Mon Sep 17 00:00:00 2001 From: Ilya Konstantinov Date: Sun, 21 Aug 2022 13:26:19 +0400 Subject: [PATCH 01/10] Create cmake.yml --- .github/workflows/cmake.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/cmake.yml diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml new file mode 100644 index 0000000..e6073dc --- /dev/null +++ b/.github/workflows/cmake.yml @@ -0,0 +1,37 @@ +name: CMake + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) + BUILD_TYPE: Release + +jobs: + build: + # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac. + # You can convert this to a matrix build if you need cross-platform coverage. + # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Configure CMake + # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. + # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type + run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + + - name: Build + # Build your program with the given configuration + run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} + + - name: Test + working-directory: ${{github.workspace}}/build + # Execute tests defined by the CMake configuration. + # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail + run: ctest -C ${{env.BUILD_TYPE}} + From feaaf71ac98c393ea92dffe9e0ad145500826cc7 Mon Sep 17 00:00:00 2001 From: Ilya Konstantinov Date: Sun, 21 Aug 2022 13:27:13 +0400 Subject: [PATCH 02/10] Delete cmake.yml --- .github/workflows/cmake.yml | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 .github/workflows/cmake.yml diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml deleted file mode 100644 index e6073dc..0000000 --- a/.github/workflows/cmake.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: CMake - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -env: - # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) - BUILD_TYPE: Release - -jobs: - build: - # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac. - # You can convert this to a matrix build if you need cross-platform coverage. - # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - - name: Configure CMake - # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. - # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} - - - name: Build - # Build your program with the given configuration - run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} - - - name: Test - working-directory: ${{github.workspace}}/build - # Execute tests defined by the CMake configuration. - # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail - run: ctest -C ${{env.BUILD_TYPE}} - From 7a1da2060b937633acb45c8349ec0cb35cc4ec8d Mon Sep 17 00:00:00 2001 From: Ilya Konstantinov Date: Sun, 21 Aug 2022 13:27:31 +0400 Subject: [PATCH 03/10] Create c-cpp.yml --- .github/workflows/c-cpp.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/c-cpp.yml diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 0000000..b00b272 --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,23 @@ +name: C/C++ CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: configure + run: ./configure + - name: make + run: make + - name: make check + run: make check + - name: make distcheck + run: make distcheck From c086c892ccdc5f47525502eb86241b6e8a6872e2 Mon Sep 17 00:00:00 2001 From: Ilya Konstantinov Date: Sun, 21 Aug 2022 13:28:05 +0400 Subject: [PATCH 04/10] Delete c-cpp.yml --- .github/workflows/c-cpp.yml | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 .github/workflows/c-cpp.yml diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml deleted file mode 100644 index b00b272..0000000 --- a/.github/workflows/c-cpp.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: C/C++ CI - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: configure - run: ./configure - - name: make - run: make - - name: make check - run: make check - - name: make distcheck - run: make distcheck From 14dc766ad56864503fc79c614cf159bfe0519162 Mon Sep 17 00:00:00 2001 From: Ilya Konstantinov Date: Sun, 21 Aug 2022 15:40:34 +0400 Subject: [PATCH 05/10] Create msbuild.yml --- .github/workflows/msbuild.yml | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/msbuild.yml diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml new file mode 100644 index 0000000..7dfa7ac --- /dev/null +++ b/.github/workflows/msbuild.yml @@ -0,0 +1,39 @@ +name: MSBuild + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + # Path to the solution file relative to the root of the project. + SOLUTION_FILE_PATH: . + + # Configuration type to build. + # You can convert this to a build matrix if you need coverage of multiple configuration types. + # https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix + BUILD_CONFIGURATION: Release + +permissions: + contents: read + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3 + + - name: Add MSBuild to PATH + uses: microsoft/setup-msbuild@v1.0.2 + + - name: Restore NuGet packages + working-directory: ${{env.GITHUB_WORKSPACE}} + run: nuget restore ${{env.SOLUTION_FILE_PATH}} + + - name: Build + working-directory: ${{env.GITHUB_WORKSPACE}} + # Add additional options to the MSBuild command line here (like platform or verbosity level). + # See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference + run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} From 4811a3371ed53db4cb86b82be31e3d1a4e374df1 Mon Sep 17 00:00:00 2001 From: Ilya Konstantinov Date: Sun, 21 Aug 2022 15:53:47 +0400 Subject: [PATCH 06/10] Update msbuild.yml --- .github/workflows/msbuild.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index 7dfa7ac..753072e 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -37,3 +37,7 @@ jobs: # Add additional options to the MSBuild command line here (like platform or verbosity level). # See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} + + - name: Package + working-directory: ${{env.GITHUB_WORKSPACE}} + run: ls From b325d6d4a473e129cfbf63fa178191d2fb2c76ad Mon Sep 17 00:00:00 2001 From: Ilya Konstantinov Date: Sun, 21 Aug 2022 16:00:44 +0400 Subject: [PATCH 07/10] Update msbuild.yml --- .github/workflows/msbuild.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index 753072e..dc0ee58 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -40,4 +40,4 @@ jobs: - name: Package working-directory: ${{env.GITHUB_WORKSPACE}} - run: ls + run: ls x64/Release From 81bfd9f9ea1439c4186066099873bbcef0d92973 Mon Sep 17 00:00:00 2001 From: Ilya Konstantinov Date: Sun, 21 Aug 2022 16:13:32 +0400 Subject: [PATCH 08/10] Update msbuild.yml --- .github/workflows/msbuild.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index dc0ee58..80c8db5 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -39,5 +39,7 @@ jobs: run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} - name: Package - working-directory: ${{env.GITHUB_WORKSPACE}} - run: ls x64/Release + uses: actions/upload-artifact@v3 + with: + name: spankerfield.dll + path: ${{env.GITHUB_WORKSPACE}}/x64/Release/spankerfield.dll From 7001c146a14016ce607d771c63d9a5e17f3184c2 Mon Sep 17 00:00:00 2001 From: Ilya Konstantinov Date: Sun, 21 Aug 2022 16:27:06 +0400 Subject: [PATCH 09/10] Update msbuild.yml --- .github/workflows/msbuild.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index 80c8db5..419d508 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -42,4 +42,4 @@ jobs: uses: actions/upload-artifact@v3 with: name: spankerfield.dll - path: ${{env.GITHUB_WORKSPACE}}/x64/Release/spankerfield.dll + path: ${{env.GITHUB_WORKSPACE}}/x64/Release/* From 6fb1e3798968dd26dc1dec78e005b1dca6bcfa61 Mon Sep 17 00:00:00 2001 From: Ilya Konstantinov Date: Sun, 21 Aug 2022 16:35:33 +0400 Subject: [PATCH 10/10] Update msbuild.yml --- .github/workflows/msbuild.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index 419d508..65e51e3 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -42,4 +42,4 @@ jobs: uses: actions/upload-artifact@v3 with: name: spankerfield.dll - path: ${{env.GITHUB_WORKSPACE}}/x64/Release/* + path: x64/${{env.BUILD_CONFIGURATION}}/*