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
Merged
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
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on:
push:
pull_request:

jobs:
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.

compiler: [g++, clang++]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Run the tests
env:
COMPILER: ${{ matrix.compiler }}
run: ./build.sh $COMPILER -j4 && cd regression && make test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get the latest master
run: git fetch origin master:master
- name: Run lint
run: scripts/run_lint.sh master HEAD
43 changes: 0 additions & 43 deletions .travis.yml

This file was deleted.