From: Elias Fleckenstein Date: Mon, 4 Oct 2021 09:29:47 +0000 (+0200) Subject: Add CI X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=0a5e546f3a37de8b5242a5a14c9402a5d9deec88;p=dragonnet-example.git Add CI --- diff --git a/.github/workflows/in_source.yml b/.github/workflows/in_source.yml new file mode 100644 index 0000000..9cf9398 --- /dev/null +++ b/.github/workflows/in_source.yml @@ -0,0 +1,18 @@ +name: Build in Source +on: [push] +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository and submodules + uses: actions/checkout@v2 + with: + submodules: recursive + - name: Install deps + run: | + sudo apt-get update + sudo apt-get install -y build-essential cmake + - name: Build + run: | + cmake . + make -j$(nproc) diff --git a/.github/workflows/out_of_source.yml b/.github/workflows/out_of_source.yml new file mode 100644 index 0000000..e972a5e --- /dev/null +++ b/.github/workflows/out_of_source.yml @@ -0,0 +1,20 @@ +name: Build out of Source +on: [push] +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository and submodules + uses: actions/checkout@v2 + with: + submodules: recursive + - name: Install deps + run: | + sudo apt-get update + sudo apt-get install -y build-essential cmake + - name: Build + run: | + mkdir build + cd build + cmake -B . -S .. + make -j$(nproc)