Skip to content

Commit

Permalink
Seperated CI jobs into several YAML files
Browse files Browse the repository at this point in the history
Signed-off-by: Clovis Durand <[email protected]>
  • Loading branch information
Clovel authored and aajain-com committed Apr 6, 2020
1 parent e7de27e commit a11a8eb
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 23 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Lint code

on: pull_request

jobs:
linter:
runs-on: ubuntu-18.04
steps:
- name: Checkout code
uses: actions/checkout@v1

- name: Lint shell scripts
run: ./Tools/linters/shlint.sh

- name: Lint source code
run: ./Tools/linters/clint.sh
17 changes: 17 additions & 0 deletions .github/workflows/linux-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Linux CI

on: pull_request

jobs:
linux-unit-test:
runs-on: ubuntu-18.04

steps:
- name: Checkout code
uses: actions/checkout@v1

- name: Linux debug build
run: make TARGET=Linux all

- name: Linux release build
run: make TARGET=Linux BUILD_TYPE=Release all
29 changes: 29 additions & 0 deletions .github/workflows/no-docker-linux-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Linux CI (No Docker)

on: pull_request

jobs:
docker-unit-test:
runs-on: ubuntu-18.04

steps:
- name: Checkout code
uses: actions/checkout@v1

- name: Installing dependencies
# These were taken from Build/Docker/Dockerfile
run: |
sudo apt-get update
sudo apt-get install -y \
clang \
libavahi-compat-libdnssd-dev \
libssl-dev \
make
sudo apt-get clean
sudo rm -rf /var/lib/apt/lists/*
- name: Linux debug build
run: make TARGET=Linux DOCKER=0 all

- name: Linux release build
run: make TARGET=Linux DOCKER=0 BUILD_TYPE=Release all
23 changes: 0 additions & 23 deletions .github/workflows/pull_request.yml

This file was deleted.

0 comments on commit a11a8eb

Please sign in to comment.