diff --git a/.github/workflows/analysis-qodana.yml b/.github/workflows/analysis-qodana.yml index 7e40d9ec1ee..71d346a7549 100644 --- a/.github/workflows/analysis-qodana.yml +++ b/.github/workflows/analysis-qodana.yml @@ -1,61 +1,61 @@ ---- -name: Analysis - Qodana +# --- +# name: Analysis - Qodana -on: - workflow_dispatch: - pull_request: - push: - branches: - - main +# on: +# workflow_dispatch: +# pull_request: +# push: +# branches: +# - main -jobs: - qodana: - runs-on: ubuntu-latest - permissions: - contents: write - pull-requests: write - checks: write - steps: - - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha }} - fetch-depth: 0 +# jobs: +# qodana: +# runs-on: ubuntu-latest +# permissions: +# contents: write +# pull-requests: write +# checks: write +# steps: +# - uses: actions/checkout@v4 +# with: +# ref: ${{ github.event.pull_request.head.sha }} +# fetch-depth: 0 - - name: Install Linux Dependencies - run: > - sudo apt-get update && sudo apt-get install ccache - linux-headers-$(uname -r) - - name: CCache - uses: hendrikmuhs/ccache-action@main - with: - max-size: "1G" - key: ccache-qodana +# - name: Install Linux Dependencies +# run: > +# sudo apt-get update && sudo apt-get install ccache +# linux-headers-$(uname -r) +# - name: CCache +# uses: hendrikmuhs/ccache-action@main +# with: +# max-size: "1G" +# key: ccache-qodana - - name: Restore artifacts and install vcpkg - id: vcpkg-step - run: | - vcpkgCommitId=$(grep '.builtin-baseline' vcpkg.json | awk -F: '{print $2}' | tr -d '," ') - echo "vcpkg commit ID: $vcpkgCommitId" - echo "VCPKG_GIT_COMMIT_ID=$vcpkgCommitId" >> $GITHUB_ENV - - name: Get vcpkg commit id from vcpkg.json - uses: lukka/run-vcpkg@main - with: - vcpkgGitURL: "https://github.com/microsoft/vcpkg.git" - vcpkgGitCommitId: ${{ env.VCPKG_GIT_COMMIT_ID }} +# - name: Restore artifacts and install vcpkg +# id: vcpkg-step +# run: | +# vcpkgCommitId=$(grep '.builtin-baseline' vcpkg.json | awk -F: '{print $2}' | tr -d '," ') +# echo "vcpkg commit ID: $vcpkgCommitId" +# echo "VCPKG_GIT_COMMIT_ID=$vcpkgCommitId" >> $GITHUB_ENV +# - name: Get vcpkg commit id from vcpkg.json +# uses: lukka/run-vcpkg@main +# with: +# vcpkgGitURL: "https://github.com/microsoft/vcpkg.git" +# vcpkgGitCommitId: ${{ env.VCPKG_GIT_COMMIT_ID }} - - name: Get latest CMake and ninja - uses: lukka/get-cmake@main +# - name: Get latest CMake and ninja +# uses: lukka/get-cmake@main - - name: Run CMake - uses: lukka/run-cmake@main - with: - configurePreset: linux-debug +# - name: Run CMake +# uses: lukka/run-cmake@main +# with: +# configurePreset: linux-debug - - name: Qodana Scan - run: | - docker run \ - -v $(pwd):/data/project/ \ - -v $(pwd):$(pwd) \ - -e QODANA_TOKEN="${{ secrets.QODANA_TOKEN }}" \ - jetbrains/qodana-clang:2024.1-eap \ - --compile-commands ./build/linux-debug/compile_commands.json +# - name: Qodana Scan +# run: | +# docker run \ +# -v $(pwd):/data/project/ \ +# -v $(pwd):$(pwd) \ +# -e QODANA_TOKEN="${{ secrets.QODANA_TOKEN }}" \ +# jetbrains/qodana-clang:2024.1-eap \ +# --compile-commands ./build/linux-debug/compile_commands.json diff --git a/.github/workflows/analysis-reviewdog-cppcheck.yml b/.github/workflows/analysis-reviewdog-cppcheck.yml index bca1d0578bb..60e562bb3aa 100644 --- a/.github/workflows/analysis-reviewdog-cppcheck.yml +++ b/.github/workflows/analysis-reviewdog-cppcheck.yml @@ -1,38 +1,38 @@ ---- -name: Analysis - Review Dog +# --- +# name: Analysis - Review Dog -on: - pull_request: - paths: - - "src/**" - push: - paths: - - "src/**" +# on: +# pull_request: +# paths: +# - "src/**" +# push: +# paths: +# - "src/**" -jobs: - cppcheck: - runs-on: ubuntu-latest - steps: - - name: Cancel Previous Runs - if: github.ref != 'refs/heads/main' - uses: fkirc/skip-duplicate-actions@master - with: - concurrent_skipping: "same_content" - cancel_others: true +# jobs: +# cppcheck: +# runs-on: ubuntu-latest +# steps: +# - name: Cancel Previous Runs +# if: github.ref != 'refs/heads/main' +# uses: fkirc/skip-duplicate-actions@master +# with: +# concurrent_skipping: "same_content" +# cancel_others: true - - name: Check out code. - uses: actions/checkout@main +# - name: Check out code. +# uses: actions/checkout@main - - name: Setup reviewdog - uses: reviewdog/action-setup@v1.0.3 +# - name: Setup reviewdog +# uses: reviewdog/action-setup@v1.0.3 - - name: Setup cppcheck - run: sudo apt-get update && sudo apt-get install -y cppcheck +# - name: Setup cppcheck +# run: sudo apt-get update && sudo apt-get install -y cppcheck - - name: cppcheck - env: - REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - cd "$GITHUB_WORKSPACE" - cppcheck --version - reviewdog -reporter=github-pr-check -runners=cppcheck +# - name: cppcheck +# env: +# REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# run: | +# cd "$GITHUB_WORKSPACE" +# cppcheck --version +# reviewdog -reporter=github-pr-check -runners=cppcheck diff --git a/.github/workflows/analysis-reviewdog.yml b/.github/workflows/analysis-reviewdog.yml index a7d6eddac7b..4d05a5759d1 100644 --- a/.github/workflows/analysis-reviewdog.yml +++ b/.github/workflows/analysis-reviewdog.yml @@ -1,121 +1,121 @@ ---- -name: Analysis - Review Dog - -on: - pull_request: - -jobs: - luac: - runs-on: ubuntu-latest - steps: - - name: Cancel Previous Runs - if: github.ref != 'refs/heads/main' - uses: fkirc/skip-duplicate-actions@master - with: - concurrent_skipping: "same_content" - cancel_others: true - - - name: Check out code. - uses: actions/checkout@main - - - name: Setup reviewdog - uses: reviewdog/action-setup@v1.0.3 - - - name: Setup Lua/Luacheck - run: sudo apt-get update && sudo apt-get install -y libluajit-5.1-dev lua-check - - - name: luac - env: - REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - cd "$GITHUB_WORKSPACE" - luac -v - reviewdog -reporter=github-pr-check -runners=luac - - luacheck: - runs-on: ubuntu-latest - steps: - - name: Check out code. - uses: actions/checkout@main - - - name: Setup reviewdog - uses: reviewdog/action-setup@v1.0.3 - - - name: Setup Lua/Luacheck - run: sudo apt-get update && sudo apt-get install -y libluajit-5.1-dev lua-check - - - name: luacheck - env: - REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - luacheck --version - cd "$GITHUB_WORKSPACE" - reviewdog -reporter=github-pr-check -runners=luacheck - - shellcheck: - runs-on: ubuntu-latest - steps: - - name: Check out code. - uses: actions/checkout@main - - - name: shellcheck - uses: reviewdog/action-shellcheck@v1.15.0 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - reporter: github-pr-check - pattern: "*.sh" - exclude: "./.git/*" - - xmllint: - runs-on: ubuntu-latest - steps: - - name: Check out code. - uses: actions/checkout@main - - - name: Setup reviewdog - uses: reviewdog/action-setup@v1.0.3 - - - name: Setup xmllint - run: sudo apt-get update && sudo apt-get install -y libxml2-utils - - - name: xmllint - env: - REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - cd "$GITHUB_WORKSPACE" - xmllint --version - reviewdog -reporter=github-pr-check -runners=xmllint - - yamllint: - runs-on: ubuntu-latest - steps: - - name: Check out code. - uses: actions/checkout@main - - - name: Run yamllint - uses: reviewdog/action-yamllint@v1.6.1 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - reporter: github-pr-check - - hadolint: - runs-on: ubuntu-latest - steps: - - name: Check out code - uses: actions/checkout@main - - - name: hadolint - uses: reviewdog/action-hadolint@v1.33.0 - with: - reporter: github-pr-check - - actionlint: - runs-on: ubuntu-latest - steps: - - name: Check out code - uses: actions/checkout@main - - - name: actionlint - uses: reviewdog/action-actionlint@v1 - with: - reporter: github-pr-check +# --- +# name: Analysis - Review Dog + +# on: +# pull_request: + +# jobs: +# luac: +# runs-on: ubuntu-latest +# steps: +# - name: Cancel Previous Runs +# if: github.ref != 'refs/heads/main' +# uses: fkirc/skip-duplicate-actions@master +# with: +# concurrent_skipping: "same_content" +# cancel_others: true + +# - name: Check out code. +# uses: actions/checkout@main + +# - name: Setup reviewdog +# uses: reviewdog/action-setup@v1.0.3 + +# - name: Setup Lua/Luacheck +# run: sudo apt-get update && sudo apt-get install -y libluajit-5.1-dev lua-check + +# - name: luac +# env: +# REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# run: | +# cd "$GITHUB_WORKSPACE" +# luac -v +# reviewdog -reporter=github-pr-check -runners=luac + +# luacheck: +# runs-on: ubuntu-latest +# steps: +# - name: Check out code. +# uses: actions/checkout@main + +# - name: Setup reviewdog +# uses: reviewdog/action-setup@v1.0.3 + +# - name: Setup Lua/Luacheck +# run: sudo apt-get update && sudo apt-get install -y libluajit-5.1-dev lua-check + +# - name: luacheck +# env: +# REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# run: | +# luacheck --version +# cd "$GITHUB_WORKSPACE" +# reviewdog -reporter=github-pr-check -runners=luacheck + +# shellcheck: +# runs-on: ubuntu-latest +# steps: +# - name: Check out code. +# uses: actions/checkout@main + +# - name: shellcheck +# uses: reviewdog/action-shellcheck@v1.15.0 +# with: +# github_token: ${{ secrets.GITHUB_TOKEN }} +# reporter: github-pr-check +# pattern: "*.sh" +# exclude: "./.git/*" + +# xmllint: +# runs-on: ubuntu-latest +# steps: +# - name: Check out code. +# uses: actions/checkout@main + +# - name: Setup reviewdog +# uses: reviewdog/action-setup@v1.0.3 + +# - name: Setup xmllint +# run: sudo apt-get update && sudo apt-get install -y libxml2-utils + +# - name: xmllint +# env: +# REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# run: | +# cd "$GITHUB_WORKSPACE" +# xmllint --version +# reviewdog -reporter=github-pr-check -runners=xmllint + +# yamllint: +# runs-on: ubuntu-latest +# steps: +# - name: Check out code. +# uses: actions/checkout@main + +# - name: Run yamllint +# uses: reviewdog/action-yamllint@v1.6.1 +# with: +# github_token: ${{ secrets.GITHUB_TOKEN }} +# reporter: github-pr-check + +# hadolint: +# runs-on: ubuntu-latest +# steps: +# - name: Check out code +# uses: actions/checkout@main + +# - name: hadolint +# uses: reviewdog/action-hadolint@v1.33.0 +# with: +# reporter: github-pr-check + +# actionlint: +# runs-on: ubuntu-latest +# steps: +# - name: Check out code +# uses: actions/checkout@main + +# - name: actionlint +# uses: reviewdog/action-actionlint@v1 +# with: +# reporter: github-pr-check diff --git a/.github/workflows/analysis-sonarcloud.yml b/.github/workflows/analysis-sonarcloud.yml index d742af72625..99a0082f5d9 100644 --- a/.github/workflows/analysis-sonarcloud.yml +++ b/.github/workflows/analysis-sonarcloud.yml @@ -1,75 +1,75 @@ ---- -name: Analysis - SonarCloud +# --- +# name: Analysis - SonarCloud -on: - push: - branches: - - main - paths: - - "src/**" +# on: +# push: +# branches: +# - main +# paths: +# - "src/**" -env: - VCPKG_BUILD_TYPE: debug - CMAKE_BUILD_PARALLEL_LEVEL: 2 - MAKEFLAGS: "-j 2" - VCPKG_BINARY_SOURCES: clear;default,readwrite +# env: +# VCPKG_BUILD_TYPE: debug +# CMAKE_BUILD_PARALLEL_LEVEL: 2 +# MAKEFLAGS: "-j 2" +# VCPKG_BINARY_SOURCES: clear;default,readwrite -jobs: - sonarcloud: - name: SonarCloud - runs-on: ubuntu-22.04 +# jobs: +# sonarcloud: +# name: SonarCloud +# runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 0 - - name: Install Linux Dependencies - run: > - sudo apt-get update && sudo apt-get install ccache linux-headers-$(uname -r) +# - name: Install Linux Dependencies +# run: > +# sudo apt-get update && sudo apt-get install ccache linux-headers-$(uname -r) - - name: CCache - id: ccache - uses: actions/cache@main - with: - path: $HOME/.ccache - key: ccache-${{ runner.os }}-${{ hashFiles('**/src') }} - restore-keys: | - ccache-${{ runner.os}}- +# - name: CCache +# id: ccache +# uses: actions/cache@main +# with: +# path: $HOME/.ccache +# key: ccache-${{ runner.os }}-${{ hashFiles('**/src') }} +# restore-keys: | +# ccache-${{ runner.os}}- - - name: Cache SonarCloud packages - uses: actions/cache@main - with: - path: $HOME/.sonar/cache - key: sonar-${{ runner.os}}-${{ hashFiles('**/src') }} - restore-keys: | - sonar-${{ runner.os}}- +# - name: Cache SonarCloud packages +# uses: actions/cache@main +# with: +# path: $HOME/.sonar/cache +# key: sonar-${{ runner.os}}-${{ hashFiles('**/src') }} +# restore-keys: | +# sonar-${{ runner.os}}- - - name: Restore artifacts and install vcpkg - id: vcpkg-step - run: | - vcpkgCommitId=$(grep '.builtin-baseline' vcpkg.json | awk -F: '{print $2}' | tr -d '," ') - echo "vcpkg commit ID: $vcpkgCommitId" - echo "VCPKG_GIT_COMMIT_ID=$vcpkgCommitId" >> $GITHUB_ENV +# - name: Restore artifacts and install vcpkg +# id: vcpkg-step +# run: | +# vcpkgCommitId=$(grep '.builtin-baseline' vcpkg.json | awk -F: '{print $2}' | tr -d '," ') +# echo "vcpkg commit ID: $vcpkgCommitId" +# echo "VCPKG_GIT_COMMIT_ID=$vcpkgCommitId" >> $GITHUB_ENV - - name: Get vcpkg commit id from vcpkg.json - uses: lukka/run-vcpkg@main - with: - vcpkgGitURL: "https://github.com/microsoft/vcpkg.git" - vcpkgGitCommitId: ${{ env.VCPKG_GIT_COMMIT_ID }} +# - name: Get vcpkg commit id from vcpkg.json +# uses: lukka/run-vcpkg@main +# with: +# vcpkgGitURL: "https://github.com/microsoft/vcpkg.git" +# vcpkgGitCommitId: ${{ env.VCPKG_GIT_COMMIT_ID }} - - name: Install sonar-scanner - uses: SonarSource/sonarcloud-github-c-cpp@v2 +# - name: Install sonar-scanner +# uses: SonarSource/sonarcloud-github-c-cpp@v2 - - name: Generate compilation database - run: | - mkdir -p build - cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE="$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake" -DOPTIONS_ENABLE_CCACHE=ON -DSPEED_UP_BUILD_UNITY=OFF -S . -B build +# - name: Generate compilation database +# run: | +# mkdir -p build +# cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE="$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake" -DOPTIONS_ENABLE_CCACHE=ON -DSPEED_UP_BUILD_UNITY=OFF -S . -B build - - name: Run sonar-scanner - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - run: | - sonar-scanner \ - --define sonar.cfamily.compile-commands=build/compile_commands.json +# - name: Run sonar-scanner +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} +# run: | +# sonar-scanner \ +# --define sonar.cfamily.compile-commands=build/compile_commands.json diff --git a/.github/workflows/build-docker-dummy.yml b/.github/workflows/build-docker-dummy.yml index 7c160ea2245..9c707e90ffa 100644 --- a/.github/workflows/build-docker-dummy.yml +++ b/.github/workflows/build-docker-dummy.yml @@ -1,22 +1,22 @@ ---- -name: Build - Docker (dummy) +# --- +# name: Build - Docker (dummy) -on: - workflow_dispatch: - pull_request: - types: [opened, synchronize, reopened, ready_for_review] - paths-ignore: - - "src/**" +# on: +# workflow_dispatch: +# pull_request: +# types: [opened, synchronize, reopened, ready_for_review] +# paths-ignore: +# - "src/**" -jobs: - build_docker_x86: - if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} - runs-on: ubuntu-latest - steps: - - run: echo "This is a dummy job to satisfy branch protection checks" +# jobs: +# build_docker_x86: +# if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} +# runs-on: ubuntu-latest +# steps: +# - run: echo "This is a dummy job to satisfy branch protection checks" - build_docker_arm: - if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} - runs-on: ubuntu-latest - steps: - - run: echo "This is a dummy job to satisfy branch protection checks" +# build_docker_arm: +# if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} +# runs-on: ubuntu-latest +# steps: +# - run: echo "This is a dummy job to satisfy branch protection checks" diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index d99ba82878c..ee82fcd433f 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -1,126 +1,126 @@ ---- -name: Build - Docker - -on: - workflow_dispatch: - pull_request: - types: [opened, synchronize, reopened, ready_for_review] - paths: - - "src/**" - merge_group: - push: - paths: - - "src/**" - branches: - - main - -jobs: - cancel-runs: - if: github.event_name == 'pull_request' && github.ref != 'refs/heads/main' - runs-on: ubuntu-latest - steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} - - build_docker_x86: - if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@main - with: - fetch-depth: 0 - - - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v0.9.15 - with: - versionSpec: "5.x" - - - name: Determine Version - id: gitversion - uses: gittools/actions/gitversion/execute@v0.9.15 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - with: - install: true - - - name: Cache Docker layers - uses: actions/cache@main - with: - path: /tmp/.buildx-cache - key: ${{ runner.os }}-x86-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-x86- - - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build - if: ${{ github.event_name == 'pull_request' }} - uses: docker/build-push-action@v3.2.0 - with: - file: docker/Dockerfile.x86 - tags: ghcr.io/${{ github.repository }}:${{ steps.gitversion.outputs.semVer }} - cache-from: type=gha, scope=${{ github.workflow }} - cache-to: type=gha, scope=${{ github.workflow }} - - - name: Build and push - id: docker_build - if: ${{ github.event_name == 'push' }} - uses: docker/build-push-action@v3.2.0 - with: - file: docker/Dockerfile.x86 - push: true - tags: ghcr.io/${{ github.repository }}:${{ steps.gitversion.outputs.semVer }} - cache-from: type=gha, scope=${{ github.workflow }} - cache-to: type=gha, scope=${{ github.workflow }} - - - name: Image digest - if: ${{ github.event_name == 'push' }} - run: echo ${{ steps.docker_build.outputs.digest }} - - build_docker_arm: - if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@main - with: - fetch-depth: 0 - - - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v0.9.15 - with: - versionSpec: "5.x" - - - name: Determine Version - id: gitversion - uses: gittools/actions/gitversion/execute@v0.9.15 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - with: - install: true - - - name: Cache Docker layers - uses: actions/cache@main - with: - path: /tmp/.buildx-cache - key: ${{ runner.os }}-arm-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-arm- - - - name: Build - uses: docker/build-push-action@v3.2.0 - with: - file: docker/Dockerfile.arm - tags: ghcr.io/${{ github.repository }}:${{ steps.gitversion.outputs.semVer }} - cache-from: type=gha, scope=${{ github.workflow }} - cache-to: type=gha, scope=${{ github.workflow }} +# --- +# name: Build - Docker + +# on: +# workflow_dispatch: +# pull_request: +# types: [opened, synchronize, reopened, ready_for_review] +# paths: +# - "src/**" +# merge_group: +# push: +# paths: +# - "src/**" +# branches: +# - main + +# jobs: +# cancel-runs: +# if: github.event_name == 'pull_request' && github.ref != 'refs/heads/main' +# runs-on: ubuntu-latest +# steps: +# - name: Cancel Previous Runs +# uses: styfle/cancel-workflow-action@0.9.1 +# with: +# access_token: ${{ github.token }} + +# build_docker_x86: +# if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} +# runs-on: ubuntu-latest +# steps: +# - name: Checkout +# uses: actions/checkout@main +# with: +# fetch-depth: 0 + +# - name: Install GitVersion +# uses: gittools/actions/gitversion/setup@v0.9.15 +# with: +# versionSpec: "5.x" + +# - name: Determine Version +# id: gitversion +# uses: gittools/actions/gitversion/execute@v0.9.15 + +# - name: Set up Docker Buildx +# uses: docker/setup-buildx-action@v2 +# with: +# install: true + +# - name: Cache Docker layers +# uses: actions/cache@main +# with: +# path: /tmp/.buildx-cache +# key: ${{ runner.os }}-x86-${{ github.sha }} +# restore-keys: | +# ${{ runner.os }}-x86- + +# - name: Login to GitHub Container Registry +# uses: docker/login-action@v2 +# with: +# registry: ghcr.io +# username: ${{ github.repository_owner }} +# password: ${{ secrets.GITHUB_TOKEN }} + +# - name: Build +# if: ${{ github.event_name == 'pull_request' }} +# uses: docker/build-push-action@v3.2.0 +# with: +# file: docker/Dockerfile.x86 +# tags: ghcr.io/${{ github.repository }}:${{ steps.gitversion.outputs.semVer }} +# cache-from: type=gha, scope=${{ github.workflow }} +# cache-to: type=gha, scope=${{ github.workflow }} + +# - name: Build and push +# id: docker_build +# if: ${{ github.event_name == 'push' }} +# uses: docker/build-push-action@v3.2.0 +# with: +# file: docker/Dockerfile.x86 +# push: true +# tags: ghcr.io/${{ github.repository }}:${{ steps.gitversion.outputs.semVer }} +# cache-from: type=gha, scope=${{ github.workflow }} +# cache-to: type=gha, scope=${{ github.workflow }} + +# - name: Image digest +# if: ${{ github.event_name == 'push' }} +# run: echo ${{ steps.docker_build.outputs.digest }} + +# build_docker_arm: +# if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} +# runs-on: ubuntu-latest +# steps: +# - name: Checkout +# uses: actions/checkout@main +# with: +# fetch-depth: 0 + +# - name: Install GitVersion +# uses: gittools/actions/gitversion/setup@v0.9.15 +# with: +# versionSpec: "5.x" + +# - name: Determine Version +# id: gitversion +# uses: gittools/actions/gitversion/execute@v0.9.15 + +# - name: Set up Docker Buildx +# uses: docker/setup-buildx-action@v2 +# with: +# install: true + +# - name: Cache Docker layers +# uses: actions/cache@main +# with: +# path: /tmp/.buildx-cache +# key: ${{ runner.os }}-arm-${{ github.sha }} +# restore-keys: | +# ${{ runner.os }}-arm- + +# - name: Build +# uses: docker/build-push-action@v3.2.0 +# with: +# file: docker/Dockerfile.arm +# tags: ghcr.io/${{ github.repository }}:${{ steps.gitversion.outputs.semVer }} +# cache-from: type=gha, scope=${{ github.workflow }} +# cache-to: type=gha, scope=${{ github.workflow }} diff --git a/.github/workflows/build-ubuntu-dummy.yml b/.github/workflows/build-ubuntu-dummy.yml index f4ebb00ff27..6eb01c8d0a1 100644 --- a/.github/workflows/build-ubuntu-dummy.yml +++ b/.github/workflows/build-ubuntu-dummy.yml @@ -1,29 +1,29 @@ ---- -name: Build - Ubuntu (dummy) +# --- +# name: Build - Ubuntu (dummy) -on: - workflow_dispatch: - pull_request: - types: [opened, synchronize, reopened, ready_for_review] - paths-ignore: - - "src/**" +# on: +# workflow_dispatch: +# pull_request: +# types: [opened, synchronize, reopened, ready_for_review] +# paths-ignore: +# - "src/**" -jobs: - job: - if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} - name: ${{ matrix.os }}-${{ matrix.buildtype }} - runs-on: ${{ matrix.os }} +# jobs: +# job: +# if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} +# name: ${{ matrix.os }}-${{ matrix.buildtype }} +# runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: [ubuntu-22.04] - buildtype: [linux-release, linux-debug] - include: - - os: ubuntu-22.04 - triplet: x64-linux +# strategy: +# fail-fast: false +# matrix: +# os: [ubuntu-22.04] +# buildtype: [linux-release, linux-debug] +# include: +# - os: ubuntu-22.04 +# triplet: x64-linux - steps: - - run: echo "This is a dummy job to satisfy branch protection checks" - - name: Checkout repository - uses: actions/checkout@main +# steps: +# - run: echo "This is a dummy job to satisfy branch protection checks" +# - name: Checkout repository +# uses: actions/checkout@main diff --git a/.github/workflows/build-ubuntu.yml b/.github/workflows/build-ubuntu.yml index 2b369e34875..bb8125e1ce8 100644 --- a/.github/workflows/build-ubuntu.yml +++ b/.github/workflows/build-ubuntu.yml @@ -1,106 +1,106 @@ ---- -name: Build - Ubuntu - -on: - workflow_dispatch: - pull_request: - types: [opened, synchronize, reopened, ready_for_review] - paths: - - "src/**" - merge_group: - push: - paths: - - "src/**" - branches: - - main - -env: - CMAKE_BUILD_PARALLEL_LEVEL: 2 - MAKEFLAGS: "-j 2" - -jobs: - cancel-runs: - if: github.event_name == 'pull_request' && github.ref != 'refs/heads/main' - runs-on: ubuntu-latest - steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} - - job: - if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} - name: ${{ matrix.os }}-${{ matrix.buildtype }} - runs-on: ${{ matrix.os }} - - strategy: - fail-fast: false - matrix: - os: [ubuntu-22.04] - buildtype: [linux-release, linux-debug] - include: - - os: ubuntu-22.04 - triplet: x64-linux - - steps: - - name: Checkout repository - uses: actions/checkout@main - - - name: Install Linux Dependencies - run: > - sudo apt-get update && sudo apt-get install ccache linux-headers-$(uname -r) - - - name: Switch to gcc-11 - if: matrix.os == 'ubuntu-20.04' - run: | - sudo apt install gcc-11 g++-11 - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11 - sudo update-alternatives --set gcc /usr/bin/gcc-11 - - - name: CCache - uses: hendrikmuhs/ccache-action@main - with: - max-size: "1G" - key: ccache-${{ matrix.os }}-${{ matrix.buildtype }} - restore-keys: | - ccache-${{ matrix.os }} - - - name: Restore artifacts and install vcpkg - id: vcpkg-step - run: | - vcpkgCommitId=$(grep '.builtin-baseline' vcpkg.json | awk -F: '{print $2}' | tr -d '," ') - echo "vcpkg commit ID: $vcpkgCommitId" - echo "VCPKG_GIT_COMMIT_ID=$vcpkgCommitId" >> $GITHUB_ENV - - - name: Get vcpkg commit id from vcpkg.json - uses: lukka/run-vcpkg@main - with: - vcpkgGitURL: "https://github.com/microsoft/vcpkg.git" - vcpkgGitCommitId: ${{ env.VCPKG_GIT_COMMIT_ID }} - - - name: Get latest CMake and ninja - uses: lukka/get-cmake@main - - - name: Run CMake - uses: lukka/run-cmake@main - with: - configurePreset: ${{ matrix.buildtype }} - buildPreset: ${{ matrix.buildtype }} - configurePresetAdditionalArgs: "['-DBUILD_TESTS=ON']" - - - name: Create and Upload Artifact - uses: actions/upload-artifact@main - with: - name: canary-${{ matrix.os }}-${{ matrix.buildtype }}-${{ github.sha }} - path: | - ${{ github.workspace }}/build/${{ matrix.buildtype }}/bin/ - - - name: Run Unit Tests - run: | - cd ${{ github.workspace }}/build/${{ matrix.buildtype }}/tests/unit - ctest --verbose - -# - name: Run Integration Tests -# run: | -# cd ${{ github.workspace }}/build/${{ matrix.buildtype }}/tests/integration -# ctest --verbose +# --- +# name: Build - Ubuntu + +# on: +# workflow_dispatch: +# pull_request: +# types: [opened, synchronize, reopened, ready_for_review] +# paths: +# - "src/**" +# merge_group: +# push: +# paths: +# - "src/**" +# branches: +# - main + +# env: +# CMAKE_BUILD_PARALLEL_LEVEL: 2 +# MAKEFLAGS: "-j 2" + +# jobs: +# cancel-runs: +# if: github.event_name == 'pull_request' && github.ref != 'refs/heads/main' +# runs-on: ubuntu-latest +# steps: +# - name: Cancel Previous Runs +# uses: styfle/cancel-workflow-action@0.9.1 +# with: +# access_token: ${{ github.token }} + +# job: +# if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} +# name: ${{ matrix.os }}-${{ matrix.buildtype }} +# runs-on: ${{ matrix.os }} + +# strategy: +# fail-fast: false +# matrix: +# os: [ubuntu-22.04] +# buildtype: [linux-release, linux-debug] +# include: +# - os: ubuntu-22.04 +# triplet: x64-linux + +# steps: +# - name: Checkout repository +# uses: actions/checkout@main + +# - name: Install Linux Dependencies +# run: > +# sudo apt-get update && sudo apt-get install ccache linux-headers-$(uname -r) + +# - name: Switch to gcc-11 +# if: matrix.os == 'ubuntu-20.04' +# run: | +# sudo apt install gcc-11 g++-11 +# sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11 +# sudo update-alternatives --set gcc /usr/bin/gcc-11 + +# - name: CCache +# uses: hendrikmuhs/ccache-action@main +# with: +# max-size: "1G" +# key: ccache-${{ matrix.os }}-${{ matrix.buildtype }} +# restore-keys: | +# ccache-${{ matrix.os }} + +# - name: Restore artifacts and install vcpkg +# id: vcpkg-step +# run: | +# vcpkgCommitId=$(grep '.builtin-baseline' vcpkg.json | awk -F: '{print $2}' | tr -d '," ') +# echo "vcpkg commit ID: $vcpkgCommitId" +# echo "VCPKG_GIT_COMMIT_ID=$vcpkgCommitId" >> $GITHUB_ENV + +# - name: Get vcpkg commit id from vcpkg.json +# uses: lukka/run-vcpkg@main +# with: +# vcpkgGitURL: "https://github.com/microsoft/vcpkg.git" +# vcpkgGitCommitId: ${{ env.VCPKG_GIT_COMMIT_ID }} + +# - name: Get latest CMake and ninja +# uses: lukka/get-cmake@main + +# - name: Run CMake +# uses: lukka/run-cmake@main +# with: +# configurePreset: ${{ matrix.buildtype }} +# buildPreset: ${{ matrix.buildtype }} +# configurePresetAdditionalArgs: "['-DBUILD_TESTS=ON']" + +# - name: Create and Upload Artifact +# uses: actions/upload-artifact@main +# with: +# name: canary-${{ matrix.os }}-${{ matrix.buildtype }}-${{ github.sha }} +# path: | +# ${{ github.workspace }}/build/${{ matrix.buildtype }}/bin/ + +# - name: Run Unit Tests +# run: | +# cd ${{ github.workspace }}/build/${{ matrix.buildtype }}/tests/unit +# ctest --verbose + +# # - name: Run Integration Tests +# # run: | +# # cd ${{ github.workspace }}/build/${{ matrix.buildtype }}/tests/integration +# # ctest --verbose diff --git a/.github/workflows/build-windows-cmake-dummy.yml b/.github/workflows/build-windows-cmake-dummy.yml index 35c66277314..f6ecdd74dc4 100644 --- a/.github/workflows/build-windows-cmake-dummy.yml +++ b/.github/workflows/build-windows-cmake-dummy.yml @@ -1,25 +1,25 @@ ---- -name: Build - Windows - CMake (dummy) -on: - workflow_dispatch: - pull_request: - types: [opened, synchronize, reopened, ready_for_review] - paths-ignore: - - "src/**" +# --- +# name: Build - Windows - CMake (dummy) +# on: +# workflow_dispatch: +# pull_request: +# types: [opened, synchronize, reopened, ready_for_review] +# paths-ignore: +# - "src/**" -jobs: - job: - if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} - name: ${{ matrix.os }}-${{ matrix.buildtype }} - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [windows-2022] - buildtype: [windows-release] - include: - - os: windows-2022 - triplet: x64-windows-static - packages: > - sccache - steps: - - run: echo "This is a dummy job to satisfy branch protection checks" +# jobs: +# job: +# if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} +# name: ${{ matrix.os }}-${{ matrix.buildtype }} +# runs-on: ${{ matrix.os }} +# strategy: +# matrix: +# os: [windows-2022] +# buildtype: [windows-release] +# include: +# - os: windows-2022 +# triplet: x64-windows-static +# packages: > +# sccache +# steps: +# - run: echo "This is a dummy job to satisfy branch protection checks" diff --git a/.github/workflows/build-windows-cmake.yml b/.github/workflows/build-windows-cmake.yml index ab0accc857b..f736933b4a8 100644 --- a/.github/workflows/build-windows-cmake.yml +++ b/.github/workflows/build-windows-cmake.yml @@ -1,86 +1,86 @@ ---- -name: Build - Windows - CMake -on: - workflow_dispatch: - pull_request: - types: [opened, synchronize, reopened, ready_for_review] - paths: - - "src/**" - merge_group: - push: - paths: - - "src/**" - branches: - - main -env: - CMAKE_BUILD_PARALLEL_LEVEL: 2 - MAKEFLAGS: "-j 2" -jobs: - cancel-runs: - if: github.event_name == 'pull_request' && github.ref != 'refs/heads/main' - runs-on: ubuntu-latest - steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} +# --- +# name: Build - Windows - CMake +# on: +# workflow_dispatch: +# pull_request: +# types: [opened, synchronize, reopened, ready_for_review] +# paths: +# - "src/**" +# merge_group: +# push: +# paths: +# - "src/**" +# branches: +# - main +# env: +# CMAKE_BUILD_PARALLEL_LEVEL: 2 +# MAKEFLAGS: "-j 2" +# jobs: +# cancel-runs: +# if: github.event_name == 'pull_request' && github.ref != 'refs/heads/main' +# runs-on: ubuntu-latest +# steps: +# - name: Cancel Previous Runs +# uses: styfle/cancel-workflow-action@0.9.1 +# with: +# access_token: ${{ github.token }} - job: - if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} - name: ${{ matrix.os }}-${{ matrix.buildtype }} - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [windows-2022] - buildtype: [windows-release] - include: - - os: windows-2022 - triplet: x64-windows-static - packages: > - sccache - steps: - - name: Checkout repository - uses: actions/checkout@main +# job: +# if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} +# name: ${{ matrix.os }}-${{ matrix.buildtype }} +# runs-on: ${{ matrix.os }} +# strategy: +# matrix: +# os: [windows-2022] +# buildtype: [windows-release] +# include: +# - os: windows-2022 +# triplet: x64-windows-static +# packages: > +# sccache +# steps: +# - name: Checkout repository +# uses: actions/checkout@main - - name: CCache - uses: hendrikmuhs/ccache-action@main - with: - max-size: "1G" - variant: "sccache" - key: ccache-${{ matrix.os }}-${{ matrix.buildtype }} - restore-keys: | - ccache-${{ matrix.os }} +# - name: CCache +# uses: hendrikmuhs/ccache-action@main +# with: +# max-size: "1G" +# variant: "sccache" +# key: ccache-${{ matrix.os }}-${{ matrix.buildtype }} +# restore-keys: | +# ccache-${{ matrix.os }} - - name: Remove Windows pre-installed MySQL - if: contains( matrix.os, 'windows') - run: rm -r -fo C:/mysql* +# - name: Remove Windows pre-installed MySQL +# if: contains( matrix.os, 'windows') +# run: rm -r -fo C:/mysql* - - name: Restore artifacts and install vcpkg - id: vcpkg-step - run: | - $json=Get-Content vcpkg.json -Raw | ConvertFrom-Json - $vcpkgCommitId=$json.'builtin-baseline' - Write-Host "vcpkg commit ID: $vcpkgCommitId" - echo "VCPKG_GIT_COMMIT_ID=$vcpkgCommitId" | Out-File -FilePath $env:GITHUB_ENV -Append +# - name: Restore artifacts and install vcpkg +# id: vcpkg-step +# run: | +# $json=Get-Content vcpkg.json -Raw | ConvertFrom-Json +# $vcpkgCommitId=$json.'builtin-baseline' +# Write-Host "vcpkg commit ID: $vcpkgCommitId" +# echo "VCPKG_GIT_COMMIT_ID=$vcpkgCommitId" | Out-File -FilePath $env:GITHUB_ENV -Append - - name: Get vcpkg commit id from vcpkg.json - uses: lukka/run-vcpkg@main - with: - vcpkgGitURL: "https://github.com/microsoft/vcpkg.git" - vcpkgGitCommitId: ${{ env.VCPKG_GIT_COMMIT_ID }} +# - name: Get vcpkg commit id from vcpkg.json +# uses: lukka/run-vcpkg@main +# with: +# vcpkgGitURL: "https://github.com/microsoft/vcpkg.git" +# vcpkgGitCommitId: ${{ env.VCPKG_GIT_COMMIT_ID }} - - name: Get latest CMake and ninja - uses: lukka/get-cmake@main +# - name: Get latest CMake and ninja +# uses: lukka/get-cmake@main - - name: Run CMake - uses: lukka/run-cmake@main - with: - configurePreset: ${{ matrix.buildtype }} - buildPreset: ${{ matrix.buildtype }} +# - name: Run CMake +# uses: lukka/run-cmake@main +# with: +# configurePreset: ${{ matrix.buildtype }} +# buildPreset: ${{ matrix.buildtype }} - - name: Create and Upload Artifact - uses: actions/upload-artifact@main - with: - name: canary-${{ matrix.buildtype }}-${{ github.sha }} - path: | - ${{ github.workspace }}/build/${{ matrix.buildtype }}/bin/ +# - name: Create and Upload Artifact +# uses: actions/upload-artifact@main +# with: +# name: canary-${{ matrix.buildtype }}-${{ github.sha }} +# path: | +# ${{ github.workspace }}/build/${{ matrix.buildtype }}/bin/ diff --git a/.github/workflows/build-windows-solution-dummy.yml b/.github/workflows/build-windows-solution-dummy.yml index 6df2e27ec8e..c5b27c48661 100644 --- a/.github/workflows/build-windows-solution-dummy.yml +++ b/.github/workflows/build-windows-solution-dummy.yml @@ -1,26 +1,26 @@ ---- -name: Build - Windows - Solution (dummy) +# --- +# name: Build - Windows - Solution (dummy) -on: - workflow_dispatch: - pull_request: - types: [opened, synchronize, reopened, ready_for_review] - paths-ignore: - - "src/**" +# on: +# workflow_dispatch: +# pull_request: +# types: [opened, synchronize, reopened, ready_for_review] +# paths-ignore: +# - "src/**" -jobs: - job: - if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} - name: ${{ matrix.os }}-${{ matrix.buildtype }} - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [windows-2022] - buildtype: [Debug] - include: - - os: windows-2022 - triplet: x64-windows - packages: > - sccache - steps: - - run: echo "This is a dummy job to satisfy branch protection checks" +# jobs: +# job: +# if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} +# name: ${{ matrix.os }}-${{ matrix.buildtype }} +# runs-on: ${{ matrix.os }} +# strategy: +# matrix: +# os: [windows-2022] +# buildtype: [Debug] +# include: +# - os: windows-2022 +# triplet: x64-windows +# packages: > +# sccache +# steps: +# - run: echo "This is a dummy job to satisfy branch protection checks" diff --git a/.github/workflows/build-windows-solution.yml b/.github/workflows/build-windows-solution.yml index f662fa91607..ec0ff1e2793 100644 --- a/.github/workflows/build-windows-solution.yml +++ b/.github/workflows/build-windows-solution.yml @@ -1,82 +1,82 @@ ---- -name: Build - Windows - Solution +# --- +# name: Build - Windows - Solution -on: - workflow_dispatch: - pull_request: - types: [opened, synchronize, reopened, ready_for_review] - paths: - - "src/**" - merge_group: - push: - paths: - - "src/**" - branches: - - main +# on: +# workflow_dispatch: +# pull_request: +# types: [opened, synchronize, reopened, ready_for_review] +# paths: +# - "src/**" +# merge_group: +# push: +# paths: +# - "src/**" +# branches: +# - main -env: - CMAKE_BUILD_PARALLEL_LEVEL: 2 - MAKEFLAGS: "-j 2" - GITHUB_WORKSPACE: ${{ github.workspace }} - VCPKG_ROOT: ${{ github.workspace }}/vcpkg - VCPKG_TRIPLET: x64-windows +# env: +# CMAKE_BUILD_PARALLEL_LEVEL: 2 +# MAKEFLAGS: "-j 2" +# GITHUB_WORKSPACE: ${{ github.workspace }} +# VCPKG_ROOT: ${{ github.workspace }}/vcpkg +# VCPKG_TRIPLET: x64-windows -jobs: - cancel-runs: - if: github.event_name == 'pull_request' && github.ref != 'refs/heads/main' - runs-on: ubuntu-latest - steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} +# jobs: +# cancel-runs: +# if: github.event_name == 'pull_request' && github.ref != 'refs/heads/main' +# runs-on: ubuntu-latest +# steps: +# - name: Cancel Previous Runs +# uses: styfle/cancel-workflow-action@0.9.1 +# with: +# access_token: ${{ github.token }} - job: - if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} - name: ${{ matrix.os }}-${{ matrix.buildtype }} - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [windows-2022] - buildtype: [Debug] - include: - - os: windows-2022 - triplet: x64-windows - packages: > - sccache - steps: - - name: Setup MSBuild.exe - uses: microsoft/setup-msbuild@v1.1 +# job: +# if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} +# name: ${{ matrix.os }}-${{ matrix.buildtype }} +# runs-on: ${{ matrix.os }} +# strategy: +# matrix: +# os: [windows-2022] +# buildtype: [Debug] +# include: +# - os: windows-2022 +# triplet: x64-windows +# packages: > +# sccache +# steps: +# - name: Setup MSBuild.exe +# uses: microsoft/setup-msbuild@v1.1 - - name: Checkout repository - uses: actions/checkout@main +# - name: Checkout repository +# uses: actions/checkout@main - - name: Install vcpkg - run: | - $vcpkgJson = Get-Content .\vcpkg.json -Raw | ConvertFrom-Json - $vcpkgCommitId = $vcpkgJson.'builtin-baseline'.Trim() - Write-Host "vcpkg commit ID: $vcpkgCommitId" - git clone https://github.com/Microsoft/vcpkg.git - cd vcpkg - git checkout $vcpkgCommitId - .\bootstrap-vcpkg.bat - .\vcpkg integrate install +# - name: Install vcpkg +# run: | +# $vcpkgJson = Get-Content .\vcpkg.json -Raw | ConvertFrom-Json +# $vcpkgCommitId = $vcpkgJson.'builtin-baseline'.Trim() +# Write-Host "vcpkg commit ID: $vcpkgCommitId" +# git clone https://github.com/Microsoft/vcpkg.git +# cd vcpkg +# git checkout $vcpkgCommitId +# .\bootstrap-vcpkg.bat +# .\vcpkg integrate install - - name: Print useful paths - run: | - Write-Host "Workspace: $env:GITHUB_WORKSPACE" - Write-Host "Vcpkg Path: $env:GITHUB_WORKSPACE\vcpkg" - Write-Host "Triplet: ${{ matrix.triplet }}" +# - name: Print useful paths +# run: | +# Write-Host "Workspace: $env:GITHUB_WORKSPACE" +# Write-Host "Vcpkg Path: $env:GITHUB_WORKSPACE\vcpkg" +# Write-Host "Triplet: ${{ matrix.triplet }}" - - name: Build project - env: - GITHUB_WORKSPACE: ${{ github.workspace }} - run: msbuild.exe /p:VcpkgEnableManifest=true /p:Configuration=Debug /p:Platform=x64 /p:GITHUB_WORKSPACE="$env:GITHUB_WORKSPACE" vcproj/canary.sln +# - name: Build project +# env: +# GITHUB_WORKSPACE: ${{ github.workspace }} +# run: msbuild.exe /p:VcpkgEnableManifest=true /p:Configuration=Debug /p:Platform=x64 /p:GITHUB_WORKSPACE="$env:GITHUB_WORKSPACE" vcproj/canary.sln - - name: Upload artifacts - uses: actions/upload-artifact@main - with: - name: ${{ matrix.os }}-${{ matrix.buildtype }} - path: | - ${{ github.workspace }}/*.dll - ${{ github.workspace }}/*.exe +# - name: Upload artifacts +# uses: actions/upload-artifact@main +# with: +# name: ${{ matrix.os }}-${{ matrix.buildtype }} +# path: | +# ${{ github.workspace }}/*.dll +# ${{ github.workspace }}/*.exe diff --git a/.github/workflows/clang-lint-dummy.yml b/.github/workflows/clang-lint-dummy.yml index 41d488b4d0b..4ed1cb7c4e2 100644 --- a/.github/workflows/clang-lint-dummy.yml +++ b/.github/workflows/clang-lint-dummy.yml @@ -1,12 +1,12 @@ ---- -name: Clang-format (dummy) -on: - pull_request: - paths-ignore: - - "src/**" +# --- +# name: Clang-format (dummy) +# on: +# pull_request: +# paths-ignore: +# - "src/**" -jobs: - build: - runs-on: ubuntu-latest - steps: - - run: echo "This is a dummy job to satisfy branch protection checks" +# jobs: +# build: +# runs-on: ubuntu-latest +# steps: +# - run: echo "This is a dummy job to satisfy branch protection checks" diff --git a/.github/workflows/clang-lint.yml b/.github/workflows/clang-lint.yml index b57e407cbb9..e2cee7a503c 100644 --- a/.github/workflows/clang-lint.yml +++ b/.github/workflows/clang-lint.yml @@ -1,56 +1,56 @@ ---- -name: Clang-format -on: - pull_request: - paths: - - "src/**" - merge_group: - push: - paths: - - "src/**" -jobs: - cancel-runs: - if: github.event_name == 'pull_request' && github.ref != 'refs/heads/main' - runs-on: ubuntu-latest - steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} +# --- +# name: Clang-format +# on: +# pull_request: +# paths: +# - "src/**" +# merge_group: +# push: +# paths: +# - "src/**" +# jobs: +# cancel-runs: +# if: github.event_name == 'pull_request' && github.ref != 'refs/heads/main' +# runs-on: ubuntu-latest +# steps: +# - name: Cancel Previous Runs +# uses: styfle/cancel-workflow-action@0.9.1 +# with: +# access_token: ${{ github.token }} - build: - runs-on: ubuntu-latest - steps: - - name: Set up Git - if: ${{ github.ref != 'refs/heads/main' }} - run: | - git config --global user.email "github-actions[bot]@users.noreply.github.com" - git config --global user.name "GitHub Actions" +# build: +# runs-on: ubuntu-latest +# steps: +# - name: Set up Git +# if: ${{ github.ref != 'refs/heads/main' }} +# run: | +# git config --global user.email "github-actions[bot]@users.noreply.github.com" +# git config --global user.name "GitHub Actions" - - name: Actions checkout - if: ${{ github.ref != 'refs/heads/main' }} - uses: actions/checkout@v3 - with: - repository: ${{ github.event.pull_request.head.repo.full_name }} - ref: ${{ github.event.pull_request.head.ref }} - token: ${{ secrets.GITHUB_TOKEN }} +# - name: Actions checkout +# if: ${{ github.ref != 'refs/heads/main' }} +# uses: actions/checkout@v3 +# with: +# repository: ${{ github.event.pull_request.head.repo.full_name }} +# ref: ${{ github.event.pull_request.head.ref }} +# token: ${{ secrets.GITHUB_TOKEN }} - - name: Run clang format lint - if: ${{ github.ref != 'refs/heads/main' }} - uses: DoozyX/clang-format-lint-action@v0.17 - with: - source: "src" - exclude: "src/protobuf" - extensions: "cpp,hpp,h" - clangFormatVersion: 17 - inplace: true +# - name: Run clang format lint +# if: ${{ github.ref != 'refs/heads/main' }} +# uses: DoozyX/clang-format-lint-action@v0.17 +# with: +# source: "src" +# exclude: "src/protobuf" +# extensions: "cpp,hpp,h" +# clangFormatVersion: 17 +# inplace: true - - name: Run add and commit - if: ${{ github.ref != 'refs/heads/main' }} - uses: EndBug/add-and-commit@v9.1.4 - with: - author_name: GitHub Actions - author_email: github-actions[bot]@users.noreply.github.com - message: "Code format - (Clang-format)" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# - name: Run add and commit +# if: ${{ github.ref != 'refs/heads/main' }} +# uses: EndBug/add-and-commit@v9.1.4 +# with: +# author_name: GitHub Actions +# author_email: github-actions[bot]@users.noreply.github.com +# message: "Code format - (Clang-format)" +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/clean-cache.yaml b/.github/workflows/clean-cache.yaml index ed298937a51..38fb0d76ed3 100644 --- a/.github/workflows/clean-cache.yaml +++ b/.github/workflows/clean-cache.yaml @@ -1,30 +1,30 @@ ---- -name: Cleanup caches by a branch -on: - pull_request: - types: - - closed +# --- +# name: Cleanup caches by a branch +# on: +# pull_request: +# types: +# - closed -jobs: - cleanup: - runs-on: ubuntu-latest - steps: - - name: Cleanup - run: | - gh extension install actions/gh-actions-cache +# jobs: +# cleanup: +# runs-on: ubuntu-latest +# steps: +# - name: Cleanup +# run: | +# gh extension install actions/gh-actions-cache - echo "Fetching list of cache key" - cacheKeysForPR=$(gh actions-cache list -R "$REPO" -B "$BRANCH" -L 100 | cut -f 1 ) +# echo "Fetching list of cache key" +# cacheKeysForPR=$(gh actions-cache list -R "$REPO" -B "$BRANCH" -L 100 | cut -f 1 ) - ## Setting this to not fail the workflow while deleting cache keys. - set +e - echo "Deleting caches..." - for cacheKey in $cacheKeysForPR - do - gh actions-cache delete "$cacheKey" -R "$REPO" -B "$BRANCH" --confirm - done - echo "Done" - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - REPO: ${{ github.repository }} - BRANCH: refs/pull/${{ github.event.pull_request.number }}/merge +# ## Setting this to not fail the workflow while deleting cache keys. +# set +e +# echo "Deleting caches..." +# for cacheKey in $cacheKeysForPR +# do +# gh actions-cache delete "$cacheKey" -R "$REPO" -B "$BRANCH" --confirm +# done +# echo "Done" +# env: +# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# REPO: ${{ github.repository }} +# BRANCH: refs/pull/${{ github.event.pull_request.number }}/merge diff --git a/.github/workflows/cron-stale.yml b/.github/workflows/cron-stale.yml index 3c68d50a247..5f1d4fb645a 100644 --- a/.github/workflows/cron-stale.yml +++ b/.github/workflows/cron-stale.yml @@ -1,28 +1,28 @@ ---- -name: "Cron - Stale issues and PRs" -on: - schedule: - - cron: "30 1 * * *" +# --- +# name: "Cron - Stale issues and PRs" +# on: +# schedule: +# - cron: "30 1 * * *" -jobs: - cancel-runs: - if: github.event_name == 'pull_request' && github.ref != 'refs/heads/main' - runs-on: ubuntu-latest - steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} +# jobs: +# cancel-runs: +# if: github.event_name == 'pull_request' && github.ref != 'refs/heads/main' +# runs-on: ubuntu-latest +# steps: +# - name: Cancel Previous Runs +# uses: styfle/cancel-workflow-action@0.9.1 +# with: +# access_token: ${{ github.token }} - stale: - runs-on: ubuntu-latest - steps: - - uses: actions/stale@v6 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: "This issue is stale because it has been open 120 days with no activity." - stale-pr-message: "This PR is stale because it has been open 45 days with no activity." - days-before-issue-stale: 90 - days-before-pr-stale: 30 - days-before-issue-close: -1 - days-before-pr-close: -1 +# stale: +# runs-on: ubuntu-latest +# steps: +# - uses: actions/stale@v6 +# with: +# repo-token: ${{ secrets.GITHUB_TOKEN }} +# stale-issue-message: "This issue is stale because it has been open 120 days with no activity." +# stale-pr-message: "This PR is stale because it has been open 45 days with no activity." +# days-before-issue-stale: 90 +# days-before-pr-stale: 30 +# days-before-issue-close: -1 +# days-before-pr-close: -1 diff --git a/.github/workflows/issue.yml b/.github/workflows/issue.yml index 9486cf44731..240e4448df5 100644 --- a/.github/workflows/issue.yml +++ b/.github/workflows/issue.yml @@ -1,25 +1,25 @@ -name: Issue - Labeling -on: - workflow_dispatch: - issues: - types: ['opened'] -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: Renato66/auto-label@v2 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - ignore-comments: true - labels-synonyms: '{ - "Priority: Low":["Low"], - "Priority: Medium":["Medium"], - "Priority: High":["High"], - "Priority: Critical":["Critical"], - "Area: Datapack":["[X] Datapack"], - "Area: Source":["[X] Source"], - "Area: Map":["[X] Map"], - "Type: Enhancement":["Enhancement"], - "Type: Missing Content":["Missing Content"] - }' - default-labels: '["Status: Pending Test"]' +# name: Issue - Labeling +# on: +# workflow_dispatch: +# issues: +# types: ['opened'] +# jobs: +# build: +# runs-on: ubuntu-latest +# steps: +# - uses: Renato66/auto-label@v2 +# with: +# repo-token: ${{ secrets.GITHUB_TOKEN }} +# ignore-comments: true +# labels-synonyms: '{ +# "Priority: Low":["Low"], +# "Priority: Medium":["Medium"], +# "Priority: High":["High"], +# "Priority: Critical":["Critical"], +# "Area: Datapack":["[X] Datapack"], +# "Area: Source":["[X] Source"], +# "Area: Map":["[X] Map"], +# "Type: Enhancement":["Enhancement"], +# "Type: Missing Content":["Missing Content"] +# }' +# default-labels: '["Status: Pending Test"]' diff --git a/.github/workflows/lua-format-dummy.yml b/.github/workflows/lua-format-dummy.yml index 9a52797a3ca..2c7eaeb705f 100644 --- a/.github/workflows/lua-format-dummy.yml +++ b/.github/workflows/lua-format-dummy.yml @@ -1,13 +1,13 @@ ---- -name: Lua-format (dumy) +# --- +# name: Lua-format (dumy) -on: - pull_request: - paths-ignore: - - "data*/**" +# on: +# pull_request: +# paths-ignore: +# - "data*/**" -jobs: - lua-formatter: - runs-on: ubuntu-latest - steps: - - run: echo "This is a dummy job to satisfy branch protection checks" +# jobs: +# lua-formatter: +# runs-on: ubuntu-latest +# steps: +# - run: echo "This is a dummy job to satisfy branch protection checks" diff --git a/.github/workflows/mysql-schema-check.yml b/.github/workflows/mysql-schema-check.yml index b0291956edc..290b5a38d65 100644 --- a/.github/workflows/mysql-schema-check.yml +++ b/.github/workflows/mysql-schema-check.yml @@ -1,43 +1,43 @@ ---- -name: MySQL Schema Check -on: - workflow_dispatch: - pull_request: - types: [opened, synchronize, reopened, ready_for_review] - paths: - - "schema.sql" - merge_group: - push: - paths: - - "schema.sql" - branches: - - main +# --- +# name: MySQL Schema Check +# on: +# workflow_dispatch: +# pull_request: +# types: [opened, synchronize, reopened, ready_for_review] +# paths: +# - "schema.sql" +# merge_group: +# push: +# paths: +# - "schema.sql" +# branches: +# - main -jobs: - mysql-schema-check: - runs-on: ubuntu-latest - services: - mysql: - image: mysql:8.0 - env: - MYSQL_ROOT_PASSWORD: root - MYSQL_DATABASE: canary - MYSQL_USER: canary - MYSQL_PASSWORD: canary - ports: - - 3306/tcp - options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 - strategy: - fail-fast: false - name: Check - steps: - - name: Checkout repository - uses: actions/checkout@main - - name: 📌 MySQL Start & init & show db - run: | - sudo /etc/init.d/mysql start - mysql -e 'CREATE DATABASE canary;' -uroot -proot - mysql -e "SHOW DATABASES" -uroot -proot - - name: Import Canary Schema - run: | - mysql -uroot -proot canary < schema.sql +# jobs: +# mysql-schema-check: +# runs-on: ubuntu-latest +# services: +# mysql: +# image: mysql:8.0 +# env: +# MYSQL_ROOT_PASSWORD: root +# MYSQL_DATABASE: canary +# MYSQL_USER: canary +# MYSQL_PASSWORD: canary +# ports: +# - 3306/tcp +# options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 +# strategy: +# fail-fast: false +# name: Check +# steps: +# - name: Checkout repository +# uses: actions/checkout@main +# - name: 📌 MySQL Start & init & show db +# run: | +# sudo /etc/init.d/mysql start +# mysql -e 'CREATE DATABASE canary;' -uroot -proot +# mysql -e "SHOW DATABASES" -uroot -proot +# - name: Import Canary Schema +# run: | +# mysql -uroot -proot canary < schema.sql diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index 345a0e6f089..e8772fa0f74 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -1,12 +1,12 @@ ---- -name: "PR - Labeler" -on: - - pull_request_target +# --- +# name: "PR - Labeler" +# on: +# - pull_request_target -jobs: - triage: - runs-on: ubuntu-latest - steps: - - uses: actions/labeler@main - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" +# jobs: +# triage: +# runs-on: ubuntu-latest +# steps: +# - uses: actions/labeler@main +# with: +# repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/tests-lua.yml b/.github/workflows/tests-lua.yml index 6455c5705de..70573ca4b45 100644 --- a/.github/workflows/tests-lua.yml +++ b/.github/workflows/tests-lua.yml @@ -1,24 +1,24 @@ ---- -name: Tests - Lua +# --- +# name: Tests - Lua -on: - pull_request: - merge_group: - push: - branches: - - main +# on: +# pull_request: +# merge_group: +# push: +# branches: +# - main -jobs: - job: - name: Run Lua Tests - runs-on: ubuntu-latest +# jobs: +# job: +# name: Run Lua Tests +# runs-on: ubuntu-latest - steps: - - name: Update - run: sudo apt-get update +# steps: +# - name: Update +# run: sudo apt-get update - - name: Setup Lua - run: sudo apt-get install -y libluajit-5.1-dev +# - name: Setup Lua +# run: sudo apt-get install -y libluajit-5.1-dev - - name: Check out code. - uses: actions/checkout@main +# - name: Check out code. +# uses: actions/checkout@main