summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2020-08-20 08:28:07 (GMT)
committerChris Packham <judge.packham@gmail.com>2020-08-24 08:18:44 (GMT)
commit0b096f4164fdac9e7b7d186e3ca72f52906dff72 (patch)
tree3f2659ace77e05bc3d7cd1a87c69400d098da749 /.github
parent60473e7274525c78376063be05fdf673157e0388 (diff)
CI: Create continuous-integration-workflow.yml
Create a continuous integration workflow that builds a few sample configurations. Future improvements would be to have a single job that builds ct-ng and shares the artifacts with the matrix jobs for building the individual toolchains. It would also be a good idea to fetch and cache the various source tarballs. Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/continuous-integration-workflow.yml45
1 files changed, 45 insertions, 0 deletions
diff --git a/.github/workflows/continuous-integration-workflow.yml b/.github/workflows/continuous-integration-workflow.yml
new file mode 100644
index 0000000..fc40389
--- /dev/null
+++ b/.github/workflows/continuous-integration-workflow.yml
@@ -0,0 +1,45 @@
+name: CI
+
+on:
+ push:
+ pull_request:
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ sample: [
+ "arm-unknown-linux-gnueabi",
+ "aarch64-unknown-linux-gnu",
+ "mips-unknown-elf",
+ "powerpc64-unknown-linux-gnu",
+ "powerpc-unknown-linux-gnu",
+ "x86_64-multilib-linux-uclibc"
+ ]
+ steps:
+ - name: "clone"
+ uses: actions/checkout@v2
+ - name: "prereq"
+ run: |
+ sudo apt-get install -y gcc g++ gperf bison flex texinfo help2man \
+ make libncurses5-dev python3-dev autoconf \
+ automake libtool libtool-bin gawk wget bzip2 \
+ xz-utils unzip patch libstdc++6 rsync
+ - name: "build ct-ng"
+ run: |
+ ./bootstrap
+ ./configure --enable-local
+ make
+ - name: "build ${{ matrix.sample }}"
+ run: |
+ mkdir -p src
+ ./ct-ng ${{ matrix.sample }}
+ sed -i -e '/CT_LOG_PROGRESS_BAR/s/y$/n/' .config
+ sed -i -e '/CT_LOCAL_TARBALLS_DIR/s/HOME/CT_TOP_DIR/' .config
+ sed -i -e '/CT_PREFIX_DIR/s/HOME/CT_TOP_DIR/' .config
+ sed -i -e '/CT_LOG_EXTRA/d' .config
+ sed -i -e '/CT_LOG_LEVEL_MAX/d' .config
+ echo 'CT_LOG_ALL=y' >>.config
+ echo 'CT_LOG_LEVEL_MAX="ALL"' >>.config
+ ./ct-ng build