Skip to content

Commit

Permalink
Switch from Travis to Github Actions (#225)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Vetter <[email protected]>
  • Loading branch information
VeaaC authored Feb 16, 2022
1 parent de3f285 commit a28f971
Show file tree
Hide file tree
Showing 6 changed files with 148 additions and 152 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: flatdata-rs
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

env:
CARGO_TERM_COLORS: always

jobs:
GCC:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Dependencies
run: sudo apt-get install python3-pip python3-setuptools libboost-filesystem-dev
- name: Generator
run: pip3 install ./flatdata-generator
- name: Build and Test
run: |
CC=gcc CXX=g++ flatdata-cpp/ci/build-and-test-cpp.sh
Clang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Dependencies
run: sudo apt-get install python3-pip python3-setuptools libboost-filesystem-dev
- name: Generator
run: pip3 install ./flatdata-generator
- name: Build and Test
run: |
CC=clang CXX=clang++ flatdata-cpp/ci/build-and-test-cpp.sh
23 changes: 23 additions & 0 deletions .github/workflows/dot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: flatdata-dot
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

env:
CARGO_TERM_COLORS: always

jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Dependencies
run: sudo apt-get install graphviz
- name: Generator
run: pip3 install ./flatdata-generator
- name: Build and Test
run: |
ci/dot_test_cases.sh
29 changes: 29 additions & 0 deletions .github/workflows/generator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: flatdata-generator
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

env:
CARGO_TERM_COLORS: always

jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install
run: |
cd flatdata-generator
# runtime requirements
pip install -r requirements.txt
# CI requirements
pip install nose pylint
- name: Run tests
run: |
cd flatdata-generator
python -m nose
pip install .
flatdata-generator --help
30 changes: 30 additions & 0 deletions .github/workflows/py.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: flatdata-py
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

env:
CARGO_TERM_COLORS: always

jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install
run: |
pip install ./flatdata-generator
cd flatdata-py
# runtime requirements
pip install -r requirements.txt
# CI requirements
pip install nose pylint
- name: Run tests
run: |
cd flatdata-py
python -m nose
pip install .
flatdata-inspector --help
32 changes: 32 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: flatdata-rs
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

env:
CARGO_TERM_COLORS: always

jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Dependencies
run: sudo apt-get install python3-venv
- name: Build
run: |
# use generator from source
export FLATDATA_GENERATOR_PATH=${PWD}/flatdata-generator
cd flatdata-rs
cargo build --all-targets
cargo build --all-targets --all-features
- name: Run tests
run: |
# use generator from source
export FLATDATA_GENERATOR_PATH=${PWD}/flatdata-generator
cd flatdata-rs
cargo test --all-targets
cargo test --all-targets --all-features
152 changes: 0 additions & 152 deletions .travis.yml

This file was deleted.

0 comments on commit a28f971

Please sign in to comment.