Skip to content

Commit d17ee0c

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents e4cc3f4 + 286914b commit d17ee0c

File tree

1,585 files changed

+53114
-13579
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,585 files changed

+53114
-13579
lines changed

.appveyor.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,15 @@ environment:
2020
- MINGW_ROOT: C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64
2121
MINGW_VERSION: v8.1.0
2222

23+
matrix:
24+
fast_finish: true
25+
2326
install:
2427
# Update env variables to use the desired MinGW version
2528
- ps: |
2629
Set-AppveyorBuildVariable -Name PATH -Value "$Env:MINGW_ROOT\bin\;$Env:PATH";
2730
Set-AppveyorBuildVariable -Name DIR_MINGW64 -Value "$Env:MINGW_ROOT\x86_64-w64-mingw32";
31+
Set-AppveyorBuildVariable -Name SCCACHE_C_CUSTOM_CACHE_BUSTER -Value "$Env:MINGW_VERSION"
2832
# Ensure we have the precompiled libraries to link with (SDL, etc.).
2933
- ps: |
3034
if (!(Test-Path 'C:\dev64')) { New-Item 'C:\dev64' -ItemType Directory; }
@@ -49,19 +53,22 @@ build_script:
4953
- ps: mingw32-make.exe -re -j2 -f .winmake $Env:es_run_mode;
5054

5155
before_test:
52-
- ps: mingw32-make.exe -re -j2 -f .winmake build-tests;
56+
- ps: |
57+
Set-AppveyorBuildVariable -Name BUILDDIR -Value "build/pkgd"
58+
mingw32-make.exe -re -j2 -f .winmake build-tests;
5359
- ps: |
5460
$here = (Get-Location).Path;
5561
Copy-Item -Path "bin\pkgd\release\endless-sky.exe" -Destination $here;
5662
Copy-Item -Path "C:\dev64\bin\*.dll" -Exclude "libstdc*" -Destination $here;
5763
5864
test_script:
59-
- ps: .\tests\endless-sky-tests.exe -n es-ci -i --warn NoAssertions --order rand --rng-seed 'time' --filenames-as-tags -r junit -o $Env:TEST_REPORT_FILE;
60-
- ps: .\tests\test_parse.ps1 'endless-sky.exe';
65+
- ps: .\tests\unit\endless-sky-tests.exe -n es-ci -i --warn NoAssertions --order rand --rng-seed 'time' --filenames-as-tags -r junit -o $Env:TEST_REPORT_FILE;
66+
- ps: .\utils\test_parse.ps1 'endless-sky.exe';
6167

6268
# Upload the build if tests passed.
6369
after_test:
6470
- ps: |
71+
sccache --show-stats
6572
$here = (Get-Location).Path;
6673
Copy-Item -Path "$Env:DIR_MINGW64\lib\libstdc++-6.dll" -Destination $here;
6774
Copy-Item -Path "$Env:DIR_MINGW64\lib\libgcc_s_seh-1.dll" -Destination $here;

.codespell.exclude

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
"Woh"
2+
"Yot"
23
"mor"
34
"Grey"
45
"Mitre"
56
"Alph"
67
"Gord"
78
"gard"
9+
"Mata"
810
"Diamond Grey"
911
"Grey Wolf"
1012
` "The Grey Goose."`
@@ -17,3 +19,29 @@
1719
"cach"
1820
"oder"
1921
" Grat"
22+
` "Fantastic, you understand the situation," she says, though her tone is much more businesslike than the wording would imply. "In that case, if you could please take this to Earth and communicate with your various governments we can begin a dialogue on how best to deal with this current scenario."`
23+
` "Hello, ser! I hope you've been enjoying your stay in our state of the art spaceport! But why stay cooped up in here, when you could be out there?" She gestures toward the windows.`
24+
` "So ser," she continues, "what do you say? Should I sign you up for the VIP Winter-Wonder Excursion Package for a special time limited-only offer of 2,000 credits?"`
25+
` The woman frowns, but nods knowingly. "I am afraid, ser, most seem to think the way you do. Still, if you ever run into anyone out there who might be interested, let them know. We could really use the work." With that, she turns and walks briskly back to her booth.`
26+
` The woman's face lights up, and you get the sense that she isn't used to hearing "yes" very often. "Oh, that is wonderful ser, just wonderful!"`
27+
` She puts her finger to her ear and says, "Hjlod, we have a customer! Get the crawler warmed up!" The woman then drops her hand and waves to you. "Right this way, ser! And might I add - you will not be disappointed." She chatters excitedly about the cultural, artistic and scientific merits of the trip as she leads you toward a large pressure hatch.`
28+
` The woman's face, red with the cold, looks crest-fallen, but unsurprised, like she was half expecting this outcome. "Brunhilda can be an... intimidating vehicle, it's true. But she is safe ser, I assure you. Either way, I'll take you back to the spaceport."`
29+
` The uneventful journey to the boiling ice river of Slidr is suddenly interrupted when a deep tremor followed by a thunderous boom shakes the Ice-Crawler to its core and causes it to slip on the disturbed ice and snow. Somewhere outside, subsequent rumble starts to build rapidly. After Hjlod regains control of the crawler, she immediately veers away from the noise. "That vas Nifel-quake, and loud noise was avalanche, or landslide, maybe both. This is not good."`
30+
` By the time you are on your feet, Hjlod has already gathered up numerous supplies and is preparing to open the hatch and dig her way to the surface. She looks at you. "Nothing to vorry about. Happens all time. Vell, not really. First time this happen, but Hjlod not let you die, probably. I can lead us to settlement not far from here."`
31+
` Hjlod abruptly stops and glares at you. "You are fool. You vill certainly die, and you endanger me in process. This is no game, valk only vhere I valk or die.`
32+
` Evening and exhaustion approach hand in hand, and as the last sun sets, you're not sure how much farther you can go. "There!" Hjlod breaks the silence of hours as she points at the weak flicker of light in the twilight landscape. "This is good," she admits hoarsely as you both stumble toward the light. "Ve vould have not survived night."`
33+
` "I just vant to thank you." Hjlod's gray-blue eyes glitter in the morning light. "I alvays say Hjlod keep tourist safe. But yesterday you save Hjlod. I vill not forgot, know this."`
34+
`There are no signs of Hjlod when you arrive at the mostly empty spaceport. You spend a few minutes wandering around before you see her heading down the hall toward you. "Sorry to be late, you vould not believe all paper-vork they had for me. I think they aren't happy about Ice-Crawler."`
35+
` You ask her if she's worried you've been compromised - that you might be working against the Skadenga's best interests. Hjlod shakes her head. "No. Future is set. Vhat vill, vill be. You are given task to tell us vhere to go, ve go vhere you say. The rest is just noise.`
36+
` "Sounds like herbalist box. Ondurdis had one long before I vas born. Gave it to liar. It not important though, not Setstokkr."`
37+
` Hjlod nods. "Hrithfjall sounds like good place. I vill tell Ondurdis.`
38+
` Hjlod nods. "The Skadenga have alvays been guides, pathfinders. I vill tell Ondurdis.`
39+
` "Vhen you were gone, thing, or assembly, vas held. Ondurdis called in all Skadenga from all villages across Nifel. You must find transportation for 2,200 folk. That is what Onderduis told me to tell you."`
40+
` Hjlod takes a deep, calming breath. "I call because you are our only hope. They vill not let us leave. They vill not let us be. They will steal our souls." She points a shaky finger at you. "Take us back to Nifel. All those who are left. Take us home. Ve know the cold vill get us eventually. But better to live on a dying vorld as Skadenga than to live here as nothing."`
41+
` Hjlod grimaces. "Once they know you are here, they vill collect us. Come back here in an hour. Any longer than that, and ve vill be gone." She slumps down on the ground as you exit the dark, dirty tunnel where the remaining Skadenga cling to their fleeting identity.`
42+
` "Ve have 52 people that need off this vorld right now." Hjlod hesitates a moment, and then adds, "I know how much you like money. Ve have pooled all our savings together and will pay you <payment> for this job." She grabs a ragged duffle bag and a group gather around her. "The rest vill meet us at your ship. Ve move now."`
43+
` "I do not know vhy you sent us to that place. But I am happy to be home. So go, and maybe one day I vill not hate to see you again."`
44+
`A familiar woman is waiting for you outside your ship. Although it's been more than seven years since you've last seen her, you recognize Hjlod instantly. Her eyes are brighter than when last you parted, and she has the same lopsided grin that you remember. "<first>, I saw your ship landing, and thought I vould say hello."`
45+
` She reaches into her pocket and pulls out a small wooden box, similar to the one you saw displayed at Asgard years ago. "I have been thinking," Hjlod says. "Maybe all this vas vill of Skade. Maybe you took us to Asgard to make us stronger, to make us better. It is bitter lesson, but I understand it now."`
46+
` "A data archive with the latest briefings and analyses. Heavily shielded and encrypted, of course, so no need to worry about it showing up on a scan. It has to get there by <date>. So, could you do it?" They hold out a small case with a data crystal visible through the window.`
47+
`As the scan results arrive the data is relayed down to the team in the cargo hold. Your video feed shows a large hologram of the system floating in midair above one of the pallets. Nearby, terminals flash rolling readouts and analyses. As the data on the spectral ship solidifies, cones of projected courses appear on the display. Line by line the cone tightens in as additional data flows from your telemetry, closing in on a path intersecting with the nearby world.`

.ecrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"Exclude": ["\\.mp3$", "test_datafile.cpp", "\\Shader.cpp$", "Font.cpp", "Mask.cpp"]
3+
}

.editorconfig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ trim_trailing_whitespace = false
1111
indent_style = tab
1212

1313
# Code files
14-
[*.{cpp,h,rc,hpp}, SConstruct, SConscript]
14+
[{*.{cpp,h,rc,hpp}, SConstruct, SConscript}]
1515
indent_style = tab
16+
# Except any third-party libraries
17+
[catch.hpp]
18+
indent_style = unset
1619

1720
# Markdown
1821
[*.md]
File renamed without changes.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Documentation Issue
2+
description: There is an error in documentation, such as documentation being wrong or outdated. Documentation may include the wiki on GitHub, RFCs, style guides, or other such pages/documents.
3+
labels: [documentation]
4+
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: Thank you for filing a wiki report!
9+
- type: input
10+
attributes:
11+
label: Location
12+
description: Where the issue is.
13+
placeholder: wiki, style guide, etc.
14+
validations:
15+
required: true
16+
- type: textarea
17+
id: description
18+
attributes:
19+
label: Describe the issue
20+
description: Provide a clear and concise description of what the issue is.
21+
validations:
22+
required: true
23+
- type: textarea
24+
id: content
25+
attributes:
26+
label: Expected content
27+
description: Provide content you expected that is missing.
28+
validations:
29+
required: true

.github/path-filters.yml

Lines changed: 42 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,57 @@
11
data:
2-
- 'changelog*'
3-
- 'copyright*'
4-
- credits.txt
5-
- icon.png
6-
- keys.txt
7-
- license.txt
8-
- 'data/**/*'
9-
- 'images/**/*'
10-
- 'sounds/**/*'
2+
- 'changelog*'
3+
- 'copyright*'
4+
- credits.txt
5+
- icon.png
6+
- keys.txt
7+
- license.txt
8+
- 'data/**/*'
9+
- 'images/**/*'
10+
- 'sounds/**/*'
1111

1212
game_code: &build
13-
- 'source/**'
13+
- 'source/**'
1414

1515
macos:
16-
- 'XCode/**'
17-
- '**/*.xcodeproj'
18-
- 'icons/endless-sky.iconset/**'
19-
- 'utils/fetch_sdl2_framework.sh'
20-
- 'utils/set_dylibs_rpath.sh'
21-
- *build
16+
- 'XCode/**'
17+
- '**/*.xcodeproj'
18+
- 'icons/endless-sky.iconset/**'
19+
- 'utils/fetch_sdl2_framework.sh'
20+
- 'utils/set_dylibs_rpath.sh'
21+
- *build
2222

2323
windows:
24-
- '**/*.cbp'
25-
- EndlessSky.workspace
26-
- SConstruct
27-
- .winmake
28-
- *build
24+
- '**/*.cbp'
25+
- EndlessSky.workspace
26+
- SConstruct
27+
- .winmake
28+
- *build
2929

3030
linux:
31-
- SConstruct
32-
- *build
31+
- SConstruct
32+
- *build
3333

3434
unit_tests:
35-
- 'tests/**/*.h'
36-
- 'tests/**/*.hpp'
37-
- 'tests/**/*.cpp'
35+
- 'tests/unit/**/*.h'
36+
- 'tests/unit/**/*.hpp'
37+
- 'tests/unit/**/*.cpp'
3838

3939
integration_tests:
40-
- 'tests/test_parse.*'
41-
- 'tests/run_tests*'
42-
- 'data/tests/**'
40+
- 'utils/test_parse.*'
41+
- 'tests/integration/run_tests*'
42+
- 'data/tests/**'
43+
- 'tests/integration/universes/**'
4344

4445
codespell:
45-
- .codespell.exclude
46+
- .codespell.exclude
47+
48+
xcode_files:
49+
- 'EndlessSky.xcodeproj/**'
50+
- 'utils/check_xcode.sh'
51+
52+
codeblocks_files:
53+
- '*.cbp'
54+
- 'utils/check_codeblocks.sh'
55+
56+
copyright:
57+
- 'copyright'

.github/pull_request_template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ NOTICE: Delete the sections that do not apply to your PR, and fill out the secti
1111
This save file can be used to play through the new mission content:
1212
{{attach a save file that allows people to easily test your added mission content or see your new in-game art}}
1313

14-
## PR Checklist
14+
## Artwork Checklist
1515
- [ ] I updated the copyright attributions, or decline to claim copyright of any assets produced or modified
16-
- [ ] I uploaded the necessary image, blend, and texture assets here: {{insert link to assets}}
16+
- [ ] I created a PR to the [endless-sky-assets repo](https://github.com/EndlessSkyCommunity/endless-sky-assets) with the necessary image, blend, and texture assets: {{insert PR link}}
1717
- [ ] I created a PR to the [endless-sky-high-dpi repo](https://github.com/endless-sky/endless-sky-high-dpi) with the `@2x` versions of these art assets: {{insert PR link}}
1818

1919

.github/workflows/cd.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ jobs:
3939
path: ${{ env.OUTPUT }}
4040

4141
cd_appimage_x86_64:
42-
runs-on: ubuntu-18.04
42+
runs-on: ubuntu-20.04
4343
env:
4444
ARCH: x86_64
4545
OUTPUT: endless-sky-x86_64-continuous.AppImage
46+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4647
steps:
4748
- uses: actions/checkout@v2
4849
- name: Install dependencies
@@ -64,7 +65,7 @@ jobs:
6465
cd_windows_win64:
6566
runs-on: windows-latest
6667
env:
67-
DIR_MINGW64: C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\x86_64-w64-mingw32
68+
DIR_MINGW64: C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64
6869
DIR_ESLIB: .\dev64
6970
OUTPUT: EndlessSky-win64-continuous.zip
7071
AR: gcc-ar
@@ -89,9 +90,9 @@ jobs:
8990
run: |
9091
COPY .\bin\pkgd\release\endless-sky.exe EndlessSky.exe
9192
COPY ".\dev64\bin\*.dll" .
92-
COPY $Env:DIR_MINGW64\lib\libgcc_s_seh-1.dll .
93-
COPY $Env:DIR_MINGW64\lib\libstdc++-6.dll .
94-
COPY $Env:DIR_MINGW64\lib\libwinpthread-1.dll .
93+
COPY $Env:DIR_MINGW64\bin\libgcc_s_seh-1.dll .
94+
COPY $Env:DIR_MINGW64\bin\libstdc++-6.dll .
95+
COPY $Env:DIR_MINGW64\bin\libwinpthread-1.dll .
9596
7z a ${{ env.OUTPUT }} .\sounds\ .\images\ .\data\ *.dll license.txt keys.txt icon.png EndlessSky.exe credits.txt copyright changelog
9697
- name: Upload artifact
9798
uses: actions/upload-artifact@v2
@@ -109,12 +110,12 @@ jobs:
109110
- name: Update Homebrew
110111
run: brew update
111112
- name: Install dependencies
112-
run: brew install libmad libpng jpeg-turbo
113+
run: brew install libpng jpeg-turbo
113114
- name: Restore cached SDL2 framework
114115
uses: actions/cache@v2
115116
with:
116117
path: ${{ env.SDL2_FRAMEWORK }}
117-
key: macos-latest-sdl2-${{ hashFiles('utils/fetch_sdl2_framework.sh') }}-${{ hashFiles('.github/workflows/ci.yml', 'EndlessSky.xcodeproj/**') }}
118+
key: macos-latest-sdl2-${{ hashFiles('EndlessSky.xcodeproj/**', 'utils/set_dylibs_rpath.sh', 'utils/fetch_sdl2_framework.sh') }}
118119
- name: Adjust version strings
119120
run: ./utils/cd_update_versions.sh
120121
shell: bash

0 commit comments

Comments
 (0)