Skip to content

Commit

Permalink
Switch CI to run in VM instead docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Anderson committed Aug 16, 2021
1 parent 43767bd commit 57cbd27
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 34 deletions.
12 changes: 12 additions & 0 deletions .github/actions/setup-dependencies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
source /etc/lsb-release

# TODO: Add setup for Ubuntu 20.04
if [ "$DISTRIB_RELEASE" == "18.04" ]; then
sudo apt-get install -y git build-essential cmake python3 python3-setuptools python3-pip python3-venv valgrind doxygen
else
echo "Unsupported Operating System: $DISTRIB_DESCRIPTION"
exit 1
fi

pip3 --no-cache-dir install fprime-tools==2.0.2 fprime-gds==2.0
49 changes: 15 additions & 34 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,13 @@ on:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains 4 jobs. One for every CI test."
Framework:
# The type of runner that the job will run on
runs-on: ubuntu-latest
container:
image: nasafprime/fprime-base:latest

# Steps represent a sequence of tasks that will be executed as part of the job
runs-on: ubuntu-18.04
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Runs the CI action internal to the repository
- name: Setup Dependencies
run: ./.github/actions/setup-dependencies.sh
- name: F prime CI step
run: ./ci/tests/Framework.bash
# Archive the outputs
Expand All @@ -36,16 +31,12 @@ jobs:
retention-days: 5

Ref:
# The type of runner that the job will run on
runs-on: ubuntu-latest
container:
image: nasafprime/fprime-base:latest

# Steps represent a sequence of tasks that will be executed as part of the job
runs-on: ubuntu-18.04
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Runs the CI action internal to the repository
- name: Setup Dependencies
run: ./.github/actions/setup-dependencies.sh
- name: F prime CI step
run: ./ci/tests/Ref.bash
# Archive the outputs
Expand All @@ -58,16 +49,12 @@ jobs:
retention-days: 5

RPI:
# The type of runner that the job will run on
runs-on: ubuntu-latest
container:
image: nasafprime/fprime-base:latest

# Steps represent a sequence of tasks that will be executed as part of the job
runs-on: ubuntu-18.04
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Runs the CI action internal to the repository
- name: Setup Dependencies
run: ./.github/actions/setup-dependencies.sh
- name: F prime CI step
run: ./ci/tests/RPI.bash
# Archive the outputs
Expand All @@ -80,16 +67,12 @@ jobs:
retention-days: 5

Integration:
# The type of runner that the job will run on
runs-on: ubuntu-latest
container:
image: nasafprime/fprime-base:latest

# Steps represent a sequence of tasks that will be executed as part of the job
runs-on: ubuntu-18.04
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Runs the CI action internal to the repository
- name: Setup Dependencies
run: ./.github/actions/setup-dependencies.sh
- name: F prime CI step
run: ./ci/tests/30-ints.bash
# Archive the outputs
Expand All @@ -102,14 +85,12 @@ jobs:
retention-days: 5

CMake:
# The type of runner that the job will run on
runs-on: ubuntu-latest
container:
image: nasafprime/fprime-base:latest
runs-on: ubuntu-18.04
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Runs CMake test cases
- name: Setup Dependencies
run: ./.github/actions/setup-dependencies.sh
- name: CMake Tests
working-directory: ./cmake/test
run: pytest

0 comments on commit 57cbd27

Please sign in to comment.