Skip to content

GitHub Actions: release workflow creates a draft #81

GitHub Actions: release workflow creates a draft

GitHub Actions: release workflow creates a draft #81

Workflow file for this run

name: C/C++ CI
on: [push]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- name: install dependencies
run: sudo apt-get install -y cmake check
- name: configure cmake
run: cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DENABLE_TESTS=OFF -B./build -G "Unix Makefiles"
- name: build with cmake
run: cmake --build ./build --config Debug --target all
- name: Generate packages with CPack
run: make package
working-directory: ./build
- uses: actions/upload-artifact@v1
with:
name: build
path: build
test:
runs-on: ubuntu-22.04
needs: build
steps:
- uses: actions/checkout@v1
- uses: actions/download-artifact@v1
with:
name: build
path: build
- name: install dependencies
run: sudo apt-get install check
- name: configure
run: cmake .. -DENABLE_TESTS=ON
working-directory: ./build
- name: make
run: make
working-directory: ./build
- name: make test
run: make test
working-directory: ./build