aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorToni <matzeton@googlemail.com>2022-05-07 11:25:40 +0200
committerlns <matzeton@googlemail.com>2022-05-07 11:41:51 +0200
commit2732408dd204392933ad812490b4844ae2532164 (patch)
tree7ac321a648cb9d38b4c06cdb149d6eefbce6e298 /.github
parent3648df7568641c01da276ed3ecf32158e30af88b (diff)
CI: Github Actions
Signed-off-by: lns <matzeton@googlemail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml55
1 files changed, 55 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..96f441b
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,55 @@
+name: Build
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+ types: [opened, synchronize, reopened]
+ release:
+ types: [created]
+ schedule:
+ - cron: "0 13 * * 1"
+
+env:
+ WERROR: 1
+ Q:
+
+jobs:
+ test:
+ name: ${{ matrix.os }}
+ runs-on: ${{ matrix.os }}
+ strategy:
+ fail-fast: true
+ matrix:
+ os: ["ubuntu-latest", "ubuntu-18.04"]
+ include:
+ - compiler: "default-cc"
+ os: "ubuntu-latest"
+ - compiler: "gcc-7"
+ os: "ubuntu-latest"
+
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
+ - name: Install Ubuntu Prerequisites
+ if: startsWith(matrix.os, 'ubuntu')
+ run: |
+ sudo apt-get update
+ sudo apt-get install autoconf automake cmake libtool pkg-config gettext flex bison
+ sudo apt-get install ${{ matrix.compiler }} lcov
+ - name: Print Help
+ run: |
+ make help
+ - name: Build Toolchain, CRTs and EASTL
+ run: |
+ make deps
+ - name: Build Examples
+ run: |
+ make all
+ - name: Cleanup
+ run: |
+ make deps-clean
+ make deps-distclean