Skip to content

Commit

Permalink
Merge branch 'main' into updateCompat
Browse files Browse the repository at this point in the history
  • Loading branch information
elsongabriel authored Dec 29, 2023
2 parents 558c964 + df811d7 commit 6565131
Show file tree
Hide file tree
Showing 292 changed files with 5,516 additions and 1,136 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/analysis-reviewdog-cppcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,20 @@ name: Analysis - Review Dog
on:
pull_request:
paths:
- 'src/**'
- "src/**"
push:
paths:
- 'src/**'
- "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'
concurrent_skipping: "same_content"
cancel_others: true

- name: Check out code.
Expand Down
17 changes: 3 additions & 14 deletions .github/workflows/analysis-reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
if: github.ref != 'refs/heads/main'
uses: fkirc/skip-duplicate-actions@master
with:
concurrent_skipping: 'same_content'
concurrent_skipping: "same_content"
cancel_others: true

- name: Check out code.
Expand All @@ -32,11 +32,9 @@ jobs:
luac -v
reviewdog -reporter=github-pr-check -runners=luac
luacheck:
runs-on: ubuntu-latest
steps:

- name: Check out code.
uses: actions/checkout@main

Expand All @@ -54,11 +52,9 @@ jobs:
cd "$GITHUB_WORKSPACE"
reviewdog -reporter=github-pr-check -runners=luacheck
shellcheck:
runs-on: ubuntu-latest
steps:

- name: Check out code.
uses: actions/checkout@main

Expand All @@ -67,14 +63,12 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-check
pattern: '*.sh'
exclude: './.git/*'

pattern: "*.sh"
exclude: "./.git/*"

xmllint:
runs-on: ubuntu-latest
steps:

- name: Check out code.
uses: actions/checkout@main

Expand All @@ -92,11 +86,9 @@ jobs:
xmllint --version
reviewdog -reporter=github-pr-check -runners=xmllint
yamllint:
runs-on: ubuntu-latest
steps:

- name: Check out code.
uses: actions/checkout@main

Expand All @@ -106,11 +98,9 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-check


hadolint:
runs-on: ubuntu-latest
steps:

- name: Check out code
uses: actions/checkout@main

Expand All @@ -122,7 +112,6 @@ jobs:
actionlint:
runs-on: ubuntu-latest
steps:

- name: Check out code
uses: actions/checkout@main

Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/analysis-sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,14 @@ name: Analysis - SonarCloud

on:
pull_request_target:
types: [opened, synchronize, reopened]
types: [opened, synchronize, reopened, ready_for_review]
paths:
- 'src/**'
push:
paths:
- 'src/**'
branches:
- main
- "src/**"

env:
VCPKG_BUILD_TYPE: debug
CMAKE_BUILD_PARALLEL_LEVEL: 2
MAKEFLAGS: '-j 2'
MAKEFLAGS: "-j 2"
VCPKG_BINARY_SOURCES: clear;default,readwrite

jobs:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/build-docker-dummy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Build - Docker (dummy)

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"

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"
26 changes: 10 additions & 16 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,23 @@ on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- 'src/**'
- "src/**"
merge_group:
push:
paths:
- 'src/**'
- "src/**"
branches:
- main

jobs:
cancel-runs:
if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request' && github.ref != 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

build_docker_x86:
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
Expand All @@ -35,7 +36,7 @@ jobs:
- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '5.x'
versionSpec: "5.x"

- name: Determine Version
id: gitversion
Expand Down Expand Up @@ -89,13 +90,6 @@ jobs:
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
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: Checkout
uses: actions/checkout@main
with:
Expand All @@ -104,7 +98,7 @@ jobs:
- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '5.x'
versionSpec: "5.x"

- name: Determine Version
id: gitversion
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/build-ubuntu-dummy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Build - Ubuntu (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:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
buildtype: [linux-release, linux-debug]
include:
- os: ubuntu-20.04
triplet: x64-linux
- 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
17 changes: 9 additions & 8 deletions .github/workflows/build-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,27 @@ on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- 'src/**'
- "src/**"
merge_group:
push:
paths:
- 'src/**'
- "src/**"
branches:
- main

env:
CMAKE_BUILD_PARALLEL_LEVEL: 2
MAKEFLAGS: '-j 2'
MAKEFLAGS: "-j 2"

jobs:
cancel-runs:
if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request' && github.ref != 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

job:
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/build-windows-cmake-dummy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
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"
17 changes: 9 additions & 8 deletions .github/workflows/build-windows-cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,25 @@ on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- 'src/**'
- "src/**"
merge_group:
push:
paths:
- 'src/**'
- "src/**"
branches:
- main
env:
CMAKE_BUILD_PARALLEL_LEVEL: 2
MAKEFLAGS: '-j 2'
MAKEFLAGS: "-j 2"
jobs:
cancel-runs:
if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request' && github.ref != 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

job:
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/build-windows-solution-dummy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Build - Windows - Solution (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: [Debug]
include:
- os: windows-2022
triplet: x64-windows
packages: >
sccache
steps:
- run: echo "This is a dummy job to satisfy branch protection checks"
Loading

0 comments on commit 6565131

Please sign in to comment.