Skip to content

Commit

Permalink
0.0 Skeleton Fill (#2)
Browse files Browse the repository at this point in the history
* 0.0 Skeleton Fill

* wf
  • Loading branch information
Zemurin authored Mar 27, 2024
1 parent 33d22f0 commit 5b31fbd
Show file tree
Hide file tree
Showing 6,297 changed files with 1,179,641 additions and 70 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
37 changes: 37 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
BasedOnStyle: Microsoft
Language: Cpp

AccessModifierOffset: -1
AlignAfterOpenBracket: DontAlign
AllowAllArgumentsOnNextLine: false
AllowAllConstructorInitializersOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: InlineOnly
AllowShortIfStatementsOnASingleLine: false
AllowShortLambdasOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: true
BinPackArguments: false
BinPackParameters: false
BraceWrapping:
BeforeLambdaBody: false
BreakBeforeBraces: Custom
BreakConstructorInitializers: AfterColon
ColumnLimit: 160
Cpp11BracedListStyle: true
IndentCaseLabels: true
IndentWidth: 3
DerivePointerAlignment: false
MaxEmptyLinesToKeep: 3
PointerAlignment: Left
SortIncludes: true
SortUsingDeclarations: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCtorInitializerColon: false
SpaceBeforeInheritanceColon: false
SpaceBeforeRangeBasedForLoopColon: false
TabWidth: 3
UseTab: Always
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
patreon: ParadoxGameConverters
20 changes: 0 additions & 20 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,6 @@ updates:
# Workflow files stored in the
# default location of `.github/workflows`
directory: "/"
schedule:
interval: "monthly"

- package-ecosystem: "gitsubmodule"
directory: "external/common_items"
schedule:
interval: "daily"

- package-ecosystem: "gitsubmodule"
directory: "external/fmt"
schedule:
interval: "monthly"

- package-ecosystem: "gitsubmodule"
directory: "external/bitmap"
schedule:
interval: "monthly"

- package-ecosystem: "gitsubmodule"
directory: "external/Fronter"
schedule:
interval: "daily"

Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/clang-format-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: clang-format Check
on: [push, pull_request]
jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
strategy:
matrix:
path:
- 'EU4ToVic3/Source'
- 'EU4ToVic3Tests'
steps:
- uses: actions/checkout@v4
- name: Run clang-format style check for C/C++ programs.
uses: jidicula/[email protected]
with:
check-path: ${{ matrix.path }}
99 changes: 99 additions & 0 deletions .github/workflows/linux_codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
name: "CodeQL"
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 16 * * 6'

jobs:
analyze_main:
name: Analyze Local
if: github.repository_owner == 'ParadoxGameConverters'
runs-on: [self-hosted, linux]

strategy:
fail-fast: false
matrix:
language: ['cpp']

steps:
- name: "Cloning repo"
uses: actions/checkout@v4

- name: "Cloning selective submodules"
run: |
git submodule update --init --recursive commonItems
git -c submodule."external/commonItems".update=none \
submodule update --init --recursive Fronter
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Build solution
run: |
chmod u+x build_linux.sh
./build_linux.sh
- name: Run Tests
run: |
cd test/Release-Linux
./EU5ToVic3Tests
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

- name: Cleanup
uses: colpal/actions-clean@v1
if: always()

analyze:
name: Analyze Foreign
if: github.repository_owner != 'ParadoxGameConverters'
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language: ['cpp']

steps:
- name: "Cloning repo"
uses: actions/checkout@v4

- name: "Cloning selective submodules"
run: |
git submodule update --init --recursive commonItems
git -c submodule."external/commonItems".update=none \
submodule update --init --recursive Fronter
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Install Prerequisites
run: |
sudo apt-key adv --fetch-keys https://repos.codelite.org/CodeLite.asc
sudo apt-add-repository 'deb https://repos.codelite.org/wx3.2/ubuntu/ jammy universe'
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install libcurl4-openssl-dev libwxbase3.2-0-unofficial \
libwxbase3.2unofficial-dev libwxgtk3.2-0-unofficial libwxgtk3.2unofficial-dev \
wx3.2-headers wx-common libnotify-dev libnotify4 libcurl4-openssl-dev
- name: Build solution
run: |
chmod u+x build_linux_foreign.sh
./build_linux_foreign.sh
- name: Run Tests
run: |
cd test/Release-Linux
./EU5ToVic3Tests
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
24 changes: 24 additions & 0 deletions .github/workflows/publish_commit_id.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "Publish commit id"

on:
push:
branches: [master]

jobs:
publish_id:
if: github.repository_owner == 'ParadoxGameConverters'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Publish commit id
uses: ParadoxGameConverters/publish_commit_id@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
destination_file: 'EU5ToVic3.txt'
user_email: '[email protected]'
user_name: 'idhrendur'
destination_branch: 'main'
commit_message: "Publish EU5ToVic3's commit id"
102 changes: 102 additions & 0 deletions .github/workflows/windows_build_test_and_push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
name: Build, test and publish
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build_test_and_publish:
name: Build, test and publish local
if: github.repository_owner == 'ParadoxGameConverters'
runs-on: [self-hosted, windows]

steps:
- name: "Cloning repo"
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: "Cloning selective submodules"
run: |
git submodule update --init --recursive commonItems
git -c submodule."external/commonItems".update=none `
submodule update --init --recursive Fronter
- name: "Get previous tag"
if: ${{ github.event_name == 'push' }}
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"

- name: "Build solution"
run: |
cd "C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\"
.\MSBuild.exe -m -p:Configuration=Release $Env:GITHUB_WORKSPACE\EU5ToVic3.sln
- name: "Run tests"
run: |
cd $Env:GITHUB_WORKSPACE\Release-Tests\
.\EU5ToVic3Tests.exe
- name: "Prepare release"
run: |
cd "C:\Program Files\7-Zip\"
.\7z.exe a $Env:GITHUB_WORKSPACE\EU5ToVic3-0.0Aadvark-win-x64.zip $Env:GITHUB_WORKSPACE\Release\*
cp $Env:GITHUB_WORKSPACE\EU5ToVic3-0.0Aadvark-win-x64.zip $Env:GITHUB_WORKSPACE\EU5ToVic3-latest-win-x64.zip
- name: "Prepare installer"
run: |
c:\"Program Files (x86)\Inno Setup 6\iscc" EU5ToVic3-Installer.iss
cp $Env:GITHUB_WORKSPACE\Output\EU5ToVic3-latest-win-x64.exe $Env:GITHUB_WORKSPACE\Output\EU5ToVic3-0.0Aadvark-win-x64.exe
- name: "Upload binaries to release"
if: ${{ github.event_name == 'push' }}
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.previoustag.outputs.tag }}
allowUpdates: true
omitBodyDuringUpdate: true
omitNameDuringUpdate: true
artifacts: EU5ToVic3-0.0Aadvark-win-x64.zip, Output\EU5ToVic3-0.0Aadvark-win-x64.exe
token: ${{ secrets.API_TOKEN_GITHUB }}

- name: "Upload binaries to archive"
if: ${{ github.event_name == 'push' }}
uses: ncipollo/release-action@v1
with:
tag: windows_development_build
allowUpdates: true
omitBodyDuringUpdate: true
omitNameDuringUpdate: true
artifacts: EU5ToVic3-0.0Aadvark-win-x64.zip, EU5ToVic3-latest-win-x64.zip, Output\EU5ToVic3-0.0Aadvark-win-x64.exe, Output\EU5ToVic3-latest-win-x64.exe
token: ${{ secrets.API_TOKEN_GITHUB }}

- name: "Cleanup"
if: always()
run: |
Get-ChildItem -Path $Env:GITHUB_WORKSPACE -Recurse -Force | Remove-Item -force -recurse
build_test:
name: Build and test foreign
if: github.repository_owner != 'ParadoxGameConverters'
runs-on: windows-2022

steps:
- name: "Cloning repo"
uses: actions/checkout@v4

- name: "Cloning selective submodules"
run: |
git submodule update --init --recursive commonItems
git -c submodule."external/commonItems".update=none `
submodule update --init --recursive Fronter
- name: "Build solution"
run: |
cd "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\"
.\MSBuild.exe -m -p:Configuration=Release $Env:GITHUB_WORKSPACE\EU5ToVic3.sln
- name: "Run tests"
run: |
cd $Env:GITHUB_WORKSPACE\Release-Tests\
.\EU5ToVic3Tests.exe
74 changes: 26 additions & 48 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,48 +1,26 @@
# Wordpress - ignore core, configuration, examples, uploads and logs.
# https://github.com/github/gitignore/blob/main/WordPress.gitignore

# Core
#
# Note: if you want to stage/commit WP core files
# you can delete this whole section/until Configuration.
/wp-admin/
/wp-content/index.php
/wp-content/languages
/wp-content/plugins/index.php
/wp-content/themes/index.php
/wp-includes/
/index.php
/license.txt
/readme.html
/wp-*.php
/xmlrpc.php

# Configuration
wp-config.php

# Example themes
/wp-content/themes/twenty*/

# Example plugin
/wp-content/plugins/hello.php

# Uploads
/wp-content/uploads/

# Log files
*.log

# htaccess
/.htaccess

# All plugins
#
# Note: If you wish to whitelist plugins,
# uncomment the next line
#/wp-content/plugins

# All themes
#
# Note: If you wish to whitelist themes,
# uncomment the next line
#/wp-content/themes
.vs
packages
Release/
ReleaseIntermediate/
Release-Linux/
Release-Tests/
Debug/
DebugIntermediate/
Debug-Tests/
Analysis
AnalysisIntermediate
testResults
*testResults*
*.opensdf
*.opendb
*.sdf
*.VC.db
*.cppcheck
EU5ToVic3/build
EU5ToVic3/cmake_install.cmake
.gitmodules
tests.xml
*bz2
*DotSettings.user
lib/
build/
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "commonItems"]
path = commonItems
url = https://github.com/ParadoxGameConverters/commonItems.git
[submodule "Fronter"]
path = Fronter
url = https://github.com/ParadoxGameConverters/Fronter.git
Loading

0 comments on commit 5b31fbd

Please sign in to comment.