Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GitHub CI and add GitHub build badges #336

Merged
merged 8 commits into from
Feb 19, 2020

Conversation

claremacrae
Copy link
Contributor

Description

Fixed the GitHub actions builds, so that any future breakages in them are easy to spot.

Changes made:

  • Remove macos xcode versions that are no longer supported by GitHub
  • Add xcode 11.3
  • Leave in an 'ls' command to debug future xcode version changes
  • Split 'cd build && ctest' which broke all Windows builds
  • Add github actions build pages to README
  • Fix case of <Windows.h> to fix clang Windows builds

GitHub Issues

The output was:

At D:\a\_temp\384af4b7-bfae-4079-891c-d5392beae9ba.ps1:5 char:10
+ cd build && ctest
+          ~~
The token '&&' is not a valid statement separator in this version.
+ CategoryInfo          : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : InvalidEndOfLine

I've split all 'cd build && ctest' lines, to avoid making future
edits error-prone
The output was:

AIn file included from ../examples/all_features/main.cpp:2:
 In file included from ../scripts/development_only\doctest/doctest.h:5:
 ../doctest/parts\doctest.cpp:142:10: error: non-portable path to file '<Windows.h>'; specified path differs in case from file name on disk [-Werror,-Wnonportable-system-include-path]
 #include <windows.h>
          ^~~~~~~~~~~
          <Windows.h>
 1 error generated.
 ninja: build stopped: subcommand failed.
Example output:
xcode-select: error: invalid developer directory '/Applications/Xcode_10.2.1.app'
The output includes:

The macOS virtual environment has been updated to Catalina (v10.15). Starting January 15th,
jobs that include the line 'runs-on: macOS-10.14' will fail to run and return a failed check suite.
Please update your workflow and change the line 'runs-on: macOS-10.14' to 'runs-on: macOS-latest'.
The currently-available versions are as follows, so pick the oldest and the newest
of these.

11.0, 11.1, 11.2, 11.2.1, 11.3
11.0 does need to be specified to xcode-select as 11
@onqtam
Copy link
Member

onqtam commented Feb 19, 2020

Sorry for the delay - will merge this right now - thanks!

About the capital vs small letter for the windows header - clang-cl was complaining?!?!?! Because previously it was complaining because of the exact opposite thing: #312 #313

@onqtam onqtam merged commit 68cfa75 into doctest:dev Feb 19, 2020
@claremacrae
Copy link
Contributor Author

Thanks for merging this!

About the capital vs small letter for the windows header - clang-cl was complaining?!?!?! Because previously it was complaining because of the exact opposite thing: #312 #313

Oh dear... I wonder what was different about the environments. I was only going on build failures in CI here, so am reasonably confident of the validity of the change, at least as of 12 days ago...

Happily, this link shows that the GitHub CI build on the dev branch is now passing....
https://github.com/onqtam/doctest/tree/dev

And hopefully it will pass on master will start passing whenever you next merge dev to master.... and then both will start showing up here:
https://github.com/onqtam/doctest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants