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
68 changes: 34 additions & 34 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
name: Nightly Build

on:
push:
branches:
- master
- main
- develop

env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: .

# Configuration type to build.
# You can convert this to a build matrix if you need coverage of multiple configuration types.
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
BUILD_CONFIGURATION: DevBuild
# GIT_COMMIT: $(git rev-parse --short "$GITHUB_SHA")
# GIT_BRANCH: ${GITHUB_REF#refs/heads/}

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Build Phobos
uses: ./.github/actions/build-phobos # Build steps are reused
with:
sln-path: ${{env.SOLUTION_FILE_PATH}}
build-config: ${{env.BUILD_CONFIGURATION}}
name: Nightly Build
on:
push:
branches:
- master
- main
- develop
env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: .
# Configuration type to build.
# You can convert this to a build matrix if you need coverage of multiple configuration types.
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
BUILD_CONFIGURATION: DevBuild
# GIT_COMMIT: $(git rev-parse --short "$GITHUB_SHA")
# GIT_BRANCH: ${GITHUB_REF#refs/heads/}
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v5
with:
submodules: recursive
- name: Build Phobos
uses: ./.github/actions/build-phobos # Build steps are reused
with:
sln-path: ${{env.SOLUTION_FILE_PATH}}
build-config: ${{env.BUILD_CONFIGURATION}}
166 changes: 83 additions & 83 deletions .github/workflows/pr-doc-checker.yml
Original file line number Diff line number Diff line change
@@ -1,83 +1,83 @@
name: Pull Request Check

on:
pull_request:
types:
- opened
- reopened
- synchronize
- labeled
- unlabeled
env:
BASE_BRANCH: ${{ github.event.pull_request.base.ref }}

jobs:
Changelog-Check:
name: Changelog Mention
# If the No Documentation Needed label is set, then workflow will not be executed
if: ${{ !contains(github.event.pull_request.labels.*.name, 'No Documentation Needed') }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Check that Changelog has been updated
run: |
# Check that Changelog has been updated
if (git diff --name-only $(git merge-base origin/$BASE_BRANCH HEAD) | grep ^docs/Whats-New.md$)
then
echo "Thank you for remembering to update the Changelog! 😋"
exit 0
else
echo "It looks like you forgot to update the Changelog! 🧐"
echo "Please, mention your changes in 'docs/Whats-New.md' or use [No Documentation Needed] label for your Pull Request."
exit 1
fi

Credits-Check:
name: Credits List Mention
# If the No Documentation Needed or Bugfix label is set, then workflow will not be executed
if: ${{ !contains(github.event.pull_request.labels.*.name, 'No Documentation Needed') && !contains(github.event.pull_request.labels.*.name, 'Bugfix') }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Check that Credits List has been updated
run: |
# Check that Credits List has been updated
if (git diff --name-only $(git merge-base origin/$BASE_BRANCH HEAD) | grep ^CREDITS.md$)
then
echo "Thank you for remembering to update the Credits List! 😋"
exit 0
else
echo "It looks like you forgot to update the Credits List! 🧐"
echo "Please, mention your contribution in 'CREDITS.md' or use [No Documentation Needed] label for your Pull Request."
exit 1
fi

Documentation-Check:
name: Documentation for Changes
# If the No Documentation Needed or Bugfix label is set, then workflow will not be executed
if: ${{ !contains(github.event.pull_request.labels.*.name, 'No Documentation Needed') && !contains(github.event.pull_request.labels.*.name, 'Bugfix') }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Check that Documentation has been updated
run: |
# Check that Documentation has been updated
if (git diff --name-only $(git merge-base origin/$BASE_BRANCH HEAD) | \
grep \
-e ^docs/New-or-Enhanced-Logics.md$ \
-e ^docs/Fixed-or-Improved-Logics.md$ \
-e ^docs/AI-Scripting-and-Mapping.md$ \
-e ^docs/User-Interface.md$ \
-e ^docs/Miscellanous.md$ \
)
then
echo "Thank you for remembering to add your changes to the docs! 😋"
exit 0
else
echo "It looks like you forgot to add your changes to the docs! 🧐"
echo "Please, document your changes or use [No Documentation Needed] label for your Pull Request."
exit 1
fi
name: Pull Request Check
on:
pull_request:
types:
- opened
- reopened
- synchronize
- labeled
- unlabeled
env:
BASE_BRANCH: ${{ github.event.pull_request.base.ref }}
jobs:
Changelog-Check:
name: Changelog Mention
# If the No Documentation Needed label is set, then workflow will not be executed
if: ${{ !contains(github.event.pull_request.labels.*.name, 'No Documentation Needed') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Check that Changelog has been updated
run: |
# Check that Changelog has been updated
if (git diff --name-only $(git merge-base origin/$BASE_BRANCH HEAD) | grep ^docs/Whats-New.md$)
then
echo "Thank you for remembering to update the Changelog! 😋"
exit 0
else
echo "It looks like you forgot to update the Changelog! 🧐"
echo "Please, mention your changes in 'docs/Whats-New.md' or use [No Documentation Needed] label for your Pull Request."
exit 1
fi
Credits-Check:
name: Credits List Mention
# If the No Documentation Needed or Bugfix label is set, then workflow will not be executed
if: ${{ !contains(github.event.pull_request.labels.*.name, 'No Documentation Needed') && !contains(github.event.pull_request.labels.*.name, 'Bugfix') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Check that Credits List has been updated
run: |
# Check that Credits List has been updated
if (git diff --name-only $(git merge-base origin/$BASE_BRANCH HEAD) | grep ^CREDITS.md$)
then
echo "Thank you for remembering to update the Credits List! 😋"
exit 0
else
echo "It looks like you forgot to update the Credits List! 🧐"
echo "Please, mention your contribution in 'CREDITS.md' or use [No Documentation Needed] label for your Pull Request."
exit 1
fi
Documentation-Check:
name: Documentation for Changes
# If the No Documentation Needed or Bugfix label is set, then workflow will not be executed
if: ${{ !contains(github.event.pull_request.labels.*.name, 'No Documentation Needed') && !contains(github.event.pull_request.labels.*.name, 'Bugfix') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Check that Documentation has been updated
run: |
# Check that Documentation has been updated
if (git diff --name-only $(git merge-base origin/$BASE_BRANCH HEAD) | \
grep \
-e ^docs/New-or-Enhanced-Logics.md$ \
-e ^docs/Fixed-or-Improved-Logics.md$ \
-e ^docs/AI-Scripting-and-Mapping.md$ \
-e ^docs/User-Interface.md$ \
-e ^docs/Miscellanous.md$ \
)
then
echo "Thank you for remembering to add your changes to the docs! 😋"
exit 0
else
echo "It looks like you forgot to add your changes to the docs! 🧐"
echo "Please, document your changes or use [No Documentation Needed] label for your Pull Request."
exit 1
fi
62 changes: 31 additions & 31 deletions .github/workflows/pr-nightly.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
name: Pull Request Nightly Build

on:
pull_request:

env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: .

# Configuration type to build.
# You can convert this to a build matrix if you need coverage of multiple configuration types.
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
BUILD_CONFIGURATION: DevBuild
# GIT_COMMIT: $(git rev-parse --short "$GITHUB_SHA")
# GIT_BRANCH: ${GITHUB_REF#refs/heads/}

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4
with:
submodules: recursive
# ref: ${{ github.event.pull_request.head.sha }}

- name: Build Phobos
uses: ./.github/actions/build-phobos # Setup steps are reused
with:
sln-path: ${{env.SOLUTION_FILE_PATH}}
build-config: ${{env.BUILD_CONFIGURATION}}
name: Pull Request Nightly Build
on:
pull_request:
env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: .
# Configuration type to build.
# You can convert this to a build matrix if you need coverage of multiple configuration types.
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
BUILD_CONFIGURATION: DevBuild
# GIT_COMMIT: $(git rev-parse --short "$GITHUB_SHA")
# GIT_BRANCH: ${GITHUB_REF#refs/heads/}
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v5
with:
submodules: recursive
# ref: ${{ github.event.pull_request.head.sha }}
- name: Build Phobos
uses: ./.github/actions/build-phobos # Setup steps are reused
with:
sln-path: ${{env.SOLUTION_FILE_PATH}}
build-config: ${{env.BUILD_CONFIGURATION}}
Loading