add GitHub actions
This commit is contained in:
parent
a2f1de6f64
commit
cdc3a58b1e
2 changed files with 25 additions and 0 deletions
3
.ci/ubuntu_install.sh
Executable file
3
.ci/ubuntu_install.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
apt-get update -qq
|
||||||
|
apt-get install cmake git gcc g++ make qtbase5-dev -qq
|
22
.github/workflows/ubuntu.yml
vendored
Normal file
22
.github/workflows/ubuntu.yml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
name: Ubuntu
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
BUILD_TYPE: Release
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Install packages
|
||||||
|
run: sudo .ci/ubuntu_install.sh
|
||||||
|
- name: Configure CMake
|
||||||
|
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||||
|
- name: Build
|
||||||
|
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
Loading…
Reference in a new issue