]> git.lizzy.rs Git - dragonnet-example.git/commitdiff
Add CI
authorElias Fleckenstein <eliasfleckenstein@web.de>
Mon, 4 Oct 2021 09:29:47 +0000 (11:29 +0200)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Mon, 4 Oct 2021 09:29:47 +0000 (11:29 +0200)
.github/workflows/in_source.yml [new file with mode: 0644]
.github/workflows/out_of_source.yml [new file with mode: 0644]

diff --git a/.github/workflows/in_source.yml b/.github/workflows/in_source.yml
new file mode 100644 (file)
index 0000000..9cf9398
--- /dev/null
@@ -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 (file)
index 0000000..e972a5e
--- /dev/null
@@ -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)