From 186e54a67d57735fc6bf336ea7eaafebc696ea41 Mon Sep 17 00:00:00 2001 From: Patrick Dawson Date: Wed, 17 Jan 2024 07:14:54 +0100 Subject: [PATCH] Remove obsolete workflows --- .github/workflows/linux.yml | 54 ------------------------------- .github/workflows/macos.yml | 53 ------------------------------- .github/workflows/msvc.yml | 63 ------------------------------------- 3 files changed, 170 deletions(-) delete mode 100644 .github/workflows/linux.yml delete mode 100644 .github/workflows/macos.yml delete mode 100644 .github/workflows/msvc.yml diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml deleted file mode 100644 index 55d8103..0000000 --- a/.github/workflows/linux.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: 🐧 Linux - -# TODO: upload *.so as artifacts - -on: - push: - paths: - - "doc/cpp-demo/**" - branches-ignore: - - godot3 - pull_request: - paths: - - "doc/cpp-demo/**" - branches-ignore: - - godot3 - -env: - VCPKG_ROOT: "${{ github.workspace }}/vcpkg" - source: "${{ github.workspace }}/doc/cpp-demo" - build: "${{ github.workspace }}/doc/cpp-demo/build.debug" - preset: debug - config: Debug - -jobs: - analyze: - name: Build - runs-on: ubuntu-latest - - steps: - - name: Linux deps - run: sudo apt-get install ninja-build - - - uses: actions/checkout@v3 - - - name: clang-format - working-directory: ${{ env.source }} - run: clang-format --verbose --dry-run --Werror $(git ls-files -- '*.cpp' '*.h') - - - name: Get vcpkg - run: | - git clone -n https://github.com/microsoft/vcpkg - cd vcpkg - git checkout 2022.11.14 - ./bootstrap-vcpkg.sh - - - name: CMake Configure - run: cmake --preset ${{ env.preset }} ${{ env.source }} - - - name: CMake Build - run: cmake --build ${{ env.build }} --config ${{ env.config }} --target install - - - name: CMake Test - working-directory: ${{ env.build }} - run: ctest -C ${{env.config}} diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml deleted file mode 100644 index e7cf4f6..0000000 --- a/.github/workflows/macos.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: 🍎 macOS - -# TODO: upload *.dylib / *.framework as artifacts - -on: - push: - paths: - - "doc/cpp-demo/**" - branches-ignore: - - godot3 - pull_request: - paths: - - "doc/cpp-demo/**" - branches-ignore: - - godot3 - -env: - VCPKG_ROOT: "${{ github.workspace }}/vcpkg" - VCPKG_DISABLE_METRICS: 1 - vcpkg_tag: "2022.11.14" - source: "${{ github.workspace }}/doc/cpp-demo" - build: "${{ github.workspace }}/doc/cpp-demo/build.debug" - preset: debug - config: Debug - -jobs: - analyze: - name: Build - runs-on: macos-latest - - steps: - - name: macOS deps - run: | - brew install ninja - - - uses: actions/checkout@v3 - - - name: Get vcpkg - run: | - git clone -n https://github.com/microsoft/vcpkg - cd vcpkg - git checkout ${{ env.vcpkg_tag }} - ./bootstrap-vcpkg.sh - - - name: CMake Configure - run: cmake --preset ${{ env.preset }} ${{ env.source }} - - - name: CMake Build - run: cmake --build ${{ env.build }} --config ${{ env.config }} --target install - - - name: CMake Test - working-directory: ${{ env.build }} - run: ctest -C ${{env.config}} diff --git a/.github/workflows/msvc.yml b/.github/workflows/msvc.yml deleted file mode 100644 index 383bfb1..0000000 --- a/.github/workflows/msvc.yml +++ /dev/null @@ -1,63 +0,0 @@ -name: 🪟 MSVC - -# TODO: upload dlls as artifact - -on: - push: - paths: - - "doc/cpp-demo/**" - branches-ignore: - - godot3 - pull_request: - paths: - - "doc/cpp-demo/**" - branches-ignore: - - godot3 - -env: - VCPKG_ROOT: "${{ github.workspace }}/vcpkg" - source: "${{ github.workspace }}/doc/cpp-demo" - build: "${{ github.workspace }}/doc/cpp-demo/msvc.debug" - preset: msvc.debug - config: Debug - -jobs: - analyze: - name: Build and Analyze - runs-on: windows-latest - - steps: - - uses: actions/checkout@v3 - - - name: Get vcpkg - run: | - git clone -n https://github.com/microsoft/vcpkg - cd vcpkg - git checkout 2022.11.14 - .\bootstrap-vcpkg.bat - - - name: CMake Configure - run: cmake --preset ${{ env.preset }} doc/cpp-demo - - - name: CMake Build - run: cmake --build ${{ env.build }} --config ${{ env.config }} --target install - - - name: Run MSVC Code Analysis - uses: microsoft/msvc-code-analysis-action@v0.1.1 - id: run-analysis - with: - cmakeBuildDirectory: ${{ env.build }} - buildConfiguration: ${{ env.config }} - ignoredPaths: ${{ env.build }}/_deps - ruleset: NativeRecommendedRules.ruleset - - - name: Upload SARIF to GitHub - uses: github/codeql-action/upload-sarif@v2 - with: - sarif_file: ${{ steps.run-analysis.outputs.sarif }} - - - name: Upload SARIF as an Artifact - uses: actions/upload-artifact@v2 - with: - name: sarif-file - path: ${{ steps.run-analysis.outputs.sarif }}