Skip to content

Commit

Permalink
[#167] Update CI workflow to use block run;
Browse files Browse the repository at this point in the history
  • Loading branch information
jlucas9 committed Jun 30, 2023
1 parent 9622e22 commit 0a3750d
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 123 deletions.
119 changes: 119 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
name: Minimal Build

on:
push:
branches: [ main, dev ]
pull_request:

jobs:
#
# Minimal Build
#
minimal_build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

# Container Setup
- name: Container Setup
run: |
apt update;
apt install -y \
autoconf \
cmake \
g++-multilib \
gcc-multilib \
gettext \
git \
gdb \
lcov \
libcurl4-openssl-dev \
libmariadb-dev \
libmariadb-dev-compat \
libgcrypt20-dev \
libtool \
python3-dev \
python3-pip
pip3 install pycryptodome
# End Container Setup

- name: Minimal Build Script
run: bash ${GITHUB_WORKSPACE}/support/scripts/build_minimal.sh

#
# Internal Build
#
internal_build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

# Container Setup
- name: Container Setup
run: apt update; \
apt install -y \
autoconf \
cmake \
g++-multilib \
gcc-multilib \
gettext \
git \
gdb \
lcov \
libcurl4-openssl-dev \
libmariadb-dev \
libmariadb-dev-compat \
libgcrypt20-dev \
libtool \
python3-dev \
python3-pip \
pip3 install pycryptodome
# End Container Setup

- name: Internal Build Script
run: bash ${GITHUB_WORKSPACE}/support/scripts/build_internal.sh

- name: Code-Coverage
working-directory: ${{github.workspace}}/build
run: make gcov

- name: Upload
uses: codecov/codecov-action@v1
with:
files: 'coverage/*.c.gcov'

#
# KMC Build
#
kmc_build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

# Container Setup
- name: Container Setup
run: apt update; \
apt install -y \
autoconf \
cmake \
g++-multilib \
gcc-multilib \
gettext \
git \
gdb \
lcov \
libcurl4-openssl-dev \
libmariadb-dev \
libmariadb-dev-compat \
libgcrypt20-dev \
libtool \
python3-dev \
python3-pip \
pip3 install pycryptodome
# End Container Setup

- name: KMC Build Script
run: bash ${GITHUB_WORKSPACE}/support/scripts/build_kmc.sh
47 changes: 0 additions & 47 deletions .github/workflows/internal_build.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/kmc_build.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/minimal_build.yml

This file was deleted.

0 comments on commit 0a3750d

Please sign in to comment.