forked from CleverRaven/Cataclysm-DDA
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA
- Loading branch information
Showing
742 changed files
with
1,671,975 additions
and
353,144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,7 @@ jobs: | |
build_catatclysm: | ||
name: Build | ||
runs-on: windows-2019 | ||
if: github.event.pull_request.draft == false | ||
|
||
steps: | ||
- name: checkout repository | ||
|
@@ -55,12 +56,12 @@ jobs: | |
uses: microsoft/[email protected] | ||
|
||
- name: Restore artifacts, or run vcpkg, build and cache artifacts | ||
uses: lukka/run-vcpkg@main | ||
uses: lukka/run-vcpkg@v10 | ||
id: runvcpkg | ||
with: | ||
additionalCachedPaths: '${{ runner.workspace }}/Cataclysm-DDA/msvc-full-features/vcpkg_installed' | ||
# run-vcpkg tries to hash vcpkg.json but complans if it finds more than one. | ||
# That said, we also have our custom vcpkg_triplets to hash, so we keep everything the same. | ||
appendedCacheKey: ${{ hashFiles( 'msvc-full-features/vcpkg.json', '.github/vcpkg_triplets/**' ) }}-x64 | ||
setupOnly: true | ||
vcpkgDirectory: '${{ runner.workspace }}/b/vcpkg' | ||
# We have to use at least this version of vcpkg to include fixes for yasm-tool's | ||
# availability only as an x86 host tool. Keep it in sync with the builtin-baseline | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,7 @@ jobs: | |
build_object_creator: | ||
name: Build | ||
runs-on: windows-2019 | ||
|
||
steps: | ||
- name: checkout repository | ||
uses: actions/checkout@v2 | ||
|
@@ -55,12 +55,12 @@ jobs: | |
uses: microsoft/[email protected] | ||
|
||
- name: Restore artifacts, or run vcpkg, build and cache artifacts | ||
uses: lukka/run-vcpkg@main | ||
uses: lukka/run-vcpkg@v10 | ||
id: runvcpkg | ||
with: | ||
additionalCachedPaths: '${{ runner.workspace }}/Cataclysm-DDA/msvc-full-features/vcpkg_installed;${{ runner.workspace }}/Cataclysm-DDA/msvc-object_creator/vcpkg_installed' | ||
# run-vcpkg tries to hash vcpkg.json but complans if it finds more than one. | ||
# That said, we also have our custom vcpkg_triplets to hash, so we keep everything the same. | ||
appendedCacheKey: ${{ hashFiles( '$msvc-full-features/vcpkg.json', 'msvc-object_creator/vcpkg.json', '.github/vcpkg_triplets/**' ) }}-x64 | ||
setupOnly: true | ||
vcpkgDirectory: '${{ runner.workspace }}/b/vcpkg' | ||
# We have to use at least this version of vcpkg to include fixes for yasm-tool's | ||
# availability only as an x86 host tool. Keep it in sync with the builtin-baseline | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Post Spell Check Result | ||
|
||
|
||
on: | ||
workflow_run: | ||
workflows: ["Text Changes Analyzer"] | ||
types: | ||
- completed | ||
|
||
|
||
jobs: | ||
post-spell-check-result: | ||
runs-on: ubuntu-latest | ||
if: > | ||
${{ github.event.workflow_run.event == 'pull_request' && | ||
github.event.workflow_run.conclusion == 'success' }} | ||
steps: | ||
- name: Download pr id artifact | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
workflow: ${{ github.event.workflow_run.name }} | ||
run_id: ${{ github.event.workflow_run.id }} | ||
name: pull_request_id | ||
- name: Download spell check retcode artifact | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
workflow: ${{ github.event.workflow_run.name }} | ||
run_id: ${{ github.event.workflow_run.id }} | ||
name: spell_check_retcode | ||
- name: set-spell-check-retcode | ||
id: set-spell-check-retcode | ||
run: echo "::set-output name=spell-check-retcode::$( cat spell_check_retcode )" | ||
- name: Download spell check output artifact | ||
if: steps.set-spell-check-retcode.outputs.spell-check-retcode >= 1 | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
workflow: ${{ github.event.workflow_run.name }} | ||
run_id: ${{ github.event.workflow_run.id }} | ||
name: spell_check_output | ||
- name: 'Comment on PR' | ||
if: steps.set-spell-check-retcode.outputs.spell-check-retcode >= 1 | ||
uses: actions/github-script@v5 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
var fs = require('fs'); | ||
var issue_number = Number(fs.readFileSync('./pull_request_id')); | ||
var body = fs.readFileSync('./spell_check_output', 'utf8'); | ||
console.log("Fetching comments of pull request %d of repository %s/%s.", issue_number, context.repo.owner, context.repo.repo); | ||
const comments = await github.paginate(github.rest.issues.listComments, | ||
{ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: issue_number | ||
} | ||
); | ||
comments.reverse(); | ||
const bot_comments = comments.filter(comment => comment.user.type === 'Bot' && comment.user.login === 'github-actions[bot]'); | ||
if (bot_comments.length > 0 && bot_comments[0].body === body) { | ||
console.log("Comment already exists. Exiting."); | ||
return; | ||
} | ||
console.log("Posting comment."); | ||
await github.rest.issues.createComment({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: issue_number, | ||
body: body | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,3 @@ minimum_perc = 0 | |
source_file = lang/po/cataclysm-dda.pot | ||
source_lang = en | ||
type = PO | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,3 +63,4 @@ Paul Bransford (draeath) <[email protected]> | |
Mark Langsdorf (mlangsdorf) <[email protected]> / <[email protected]> | ||
Ratul Saha (sahaRatul) <[email protected]> / <[email protected]> | ||
Davis Bray (Kaltag1925) <[email protected]> | ||
Nicolas Appriou <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.