aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2020-10-11 21:29:55 +0200
committerJan200101 <sentrycraft123@gmail.com>2020-10-11 21:29:55 +0200
commit7b64e547e3eccc4aa4515de2b86b39e16246d4ee (patch)
tree2ecc6158802e8795cb90ca8e2e487622bb28ba11 /.github/workflows
parent7d4e2f33a619b1f46a8f2ba00afa22edca6579e8 (diff)
downloadpolecat-7b64e547e3eccc4aa4515de2b86b39e16246d4ee.tar.gz
polecat-7b64e547e3eccc4aa4515de2b86b39e16246d4ee.zip
Update CI for cmake workflow
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml23
1 files changed, 18 insertions, 5 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5e9680e..31a9f4a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,5 +1,8 @@
name: CI
+env:
+ BUILD_TYPE: Release
+
on:
push:
branches: [ master ]
@@ -13,10 +16,20 @@ jobs:
steps:
- uses: actions/checkout@v2
+
- name: Install dependencies
- run: sudo apt-get install libcurl4-openssl-dev libjson-c-dev libarchive-dev meson
+ run: sudo apt-get install libcurl4-openssl-dev libjson-c-dev libarchive-dev cmake make
+
+ - name: Create Build Environment
+ run: cmake -E make_directory ${{runner.workspace}}/build
+
+ - name: Configure CMake
+ shell: bash
+ working-directory: ${{runner.workspace}}/build
+ run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
+
- name: Build
- run: |
- meson _build
- ninja -vC _build
- ninja -vC _build dist
+ working-directory: ${{runner.workspace}}/build
+ shell: bash
+ run: cmake --build . --config $BUILD_TYPE
+