Skip to content

Merge pull request #16 from AndrewQuijano/master #12

Merge pull request #16 from AndrewQuijano/master

Merge pull request #16 from AndrewQuijano/master #12

Workflow file for this run

name: Publish deb package
on:
push:
branches:
master
jobs:
create_release:
runs-on: ubuntu-latest
outputs:
v-version: ${{ steps.version.outputs.v-version }}
steps:
- name: Get next version
uses: reecetech/[email protected]
id: version
with:
release_branch: master
use_api: true
build_deb_2004:
needs: create_release
runs-on: ubuntu-20.04
steps:
- name: Install git
run: sudo apt-get -qq update -y && sudo apt-get -qq install cmake ninja-build rapidjson-dev -y
- name: Check out
uses: actions/checkout@v4
- name: Build package
working-directory: .
run: mkdir build && cd build && cmake -GNinja .. && ninja && ninja package
- name: Upload debian package to release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ needs.create_release.outputs.v-version }}
files: |
build/*.deb
build_deb_2204:
needs: create_release
runs-on: ubuntu-22.04
steps:
- name: Install dependencies
run: sudo apt-get -qq update -y && sudo apt-get -qq install cmake ninja-build rapidjson-dev -y
- name: Check out
uses: actions/checkout@v4
- name: Build package
working-directory: .
run: |
mkdir build
cd build
cmake -GNinja .. -DVERSION=${{ needs.create_release.outputs.v-version }}
ninja
ninja package
- name: Upload debian package to release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ needs.create_release.outputs.v-version }}
files: |
build/*.deb