Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
name: Build for Windows (x64)
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v6

- name: Set up MSVC x64 build environment
uses: ilammy/msvc-dev-cmd@v1
Expand All @@ -28,8 +28,8 @@ jobs:
- name: Rename binary for release
run: ren build\windows-msvc-x64-release\sim.exe sim-x64.exe

- name: Upload x64 binary as artifact
uses: actions/upload-artifact@v4
- name: Upload x64 binary as artifact
uses: actions/upload-artifact@v6
with:
name: binary-x64 # Explicit artifact name
path: build\windows-msvc-x64-release\sim-x64.exe # Explicit file path to upload
Expand All @@ -38,8 +38,8 @@ jobs:
name: Build for Windows (x86)
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v6

- name: Set up MSVC x86 build environment
uses: ilammy/msvc-dev-cmd@v1
Expand All @@ -53,8 +53,8 @@ jobs:
- name: Rename binary for release
run: ren build\windows-msvc-x86-release\sim.exe sim-x86.exe

- name: Upload x86 binary as artifact
uses: actions/upload-artifact@v4
- name: Upload x86 binary as artifact
uses: actions/upload-artifact@v6
with:
name: binary-x86 # Explicit artifact name
path: build\windows-msvc-x86-release\sim-x86.exe # Explicit file path to upload
Expand All @@ -64,20 +64,20 @@ jobs:
needs: [build-x64, build-x86] # Depends on both successful builds
runs-on: ubuntu-latest # ubuntu-latest is sufficient for creating the release
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v6

- name: Create a directory for binaries
run: mkdir release_binaries

- name: Download x64 binary
uses: actions/download-artifact@v4
- name: Download x64 binary
uses: actions/download-artifact@v7
with:
name: binary-x64
path: release_binaries

- name: Download x86 binary
uses: actions/download-artifact@v4
- name: Download x86 binary
uses: actions/download-artifact@v7
with:
name: binary-x86
path: release_binaries
Expand Down
19 changes: 15 additions & 4 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Code Quality Check

on:
workflow_dispatch:
push:
branches:
- master
Expand All @@ -25,7 +26,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Verify clang-tools installation
run: |
Expand All @@ -35,8 +36,10 @@ jobs:

- name: Check code formatting for compliance
run: |
New-Item -ItemType Directory -Path ci-artifacts -Force | Out-Null
$files = Get-ChildItem -Path src -Recurse -Include *.cpp,*.h
clang-format --dry-run --Werror --style=file $files
clang-format --dry-run --Werror --style=file $files 2>&1 | Tee-Object -FilePath ci-artifacts/clang-format.log
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
shell: pwsh # Use PowerShell for Get-ChildItem

- name: Set up MSVC build environment for the script
Expand All @@ -45,6 +48,14 @@ jobs:
arch: x64

- name: Run clang-tidy
shell: cmd
shell: pwsh
run: |
scripts\lint.bat
cmd /c scripts\lint.bat 2>&1 | Tee-Object -FilePath ci-artifacts/clang-tidy.log
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }

- name: Upload lint artifacts
if: always()
uses: actions/upload-artifact@v6
with:
name: code-quality-artifacts-${{ github.run_id }}
path: ci-artifacts/