Skip to content

Replace TravisCI with Github Actions #153

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

Merged
merged 1 commit into from
Aug 22, 2021

Conversation

FrNecas
Copy link
Contributor

@FrNecas FrNecas commented Aug 20, 2021

Since TravisCI is no longer free, we agreed with @viktormalik to migrate to Github Actions for CI purposes.

Signed-off-by: František Nečas <[email protected]>
@FrNecas
Copy link
Contributor Author

FrNecas commented Aug 20, 2021

Hm, it's weird that there are no Github Actions checks on this pull request. Not sure if it has to be enabled somewhere (the checks seem to be running on my branch - see https://github.com/FrNecas/2ls/runs/3381779235 )

build:
strategy:
matrix:
os: [ubuntu-latest]
Copy link
Contributor Author

@FrNecas FrNecas Aug 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have liked to include os: [ubuntu-latest, macos-latest] but the build fails on mac for a weird reason. See https://github.com/FrNecas/2ls/runs/3381425349#step:3:196 :

 In file included from xml_parser.cpp:13:
In file included from /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/fstream:188:
In file included from /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/filesystem:240:
/Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stack:127:5: error: expected ')'
    stack()
    ^
../util/parser.h:144:25: note: expanded from macro 'stack'
#define stack(x) (PARSER.stack[x])
                        ^
/Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stack:127:5: note: to match this '('
../util/parser.h:144:18: note: expanded from macro 'stack'
#define stack(x) (PARSER.stack[x])
                 ^

That looks like fstream include fails due to some problem in the C++ library on Mac while CBMC is being compiled? I can't reproduce, test or debug it since I don't have a mac :/ So I put only Ubuntu there for now.

@peterschrammel
Copy link
Member

Github actions always execute the workflow defined on the default branch. Otherwise, anyone can create a PR with a workflow and run anything.

@peterschrammel
Copy link
Member

Is this ready to merge?

@FrNecas
Copy link
Contributor Author

FrNecas commented Aug 22, 2021

I'd say so unless we can somehow figure out what's wrong with the mac build. Or lets phrase it differently - are we fine with testing just under Ubuntu? Previously we tested on mac as well so this slightly reduces the robustness of our CI. I just don't know what's wrong with the build, the CBMC compilation fails ( see the trace #153 (comment) ). It looks like #include <fstream> fails to compile which is weird on its own. I don't have a mac so no way to play around with this. I've asked a friend who has one to try it and he got the same error though

@peterschrammel peterschrammel merged commit df1848d into diffblue:master Aug 22, 2021
@peterschrammel
Copy link
Member

We can debug the mac issue separately.

@peterschrammel
Copy link
Member

The linter job seems to have a problem. The ubuntu jobs work correctly. Tests are run and pass.

@FrNecas
Copy link
Contributor Author

FrNecas commented Aug 23, 2021

Yes, the problem occurrs only when the action is ran after pushing (merging in this case) to the master branch as it refuses to fetch - fixed here #154

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.

2 participants