kanidm/.github/workflows/debian_package_kanidm.yml

48 lines
1.2 KiB
YAML
Raw Permalink Normal View History

---
name: "Build Debian Packages"
# yamllint disable-line rule:truthy
on:
push:
pull_request:
jobs:
build-deb-package:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
2022-09-28 02:31:19 +02:00
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
default: true
- name: Update package manager
run: sudo apt-get update
- name: Install dependencies
run: |
sudo apt-get install -y \
libpam0g-dev \
libudev-dev \
libssl-dev \
libsqlite3-dev \
pkg-config \
make
- uses: jetli/wasm-pack-action@v0.3.0
with:
# Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest')
version: 'latest'
- name: "Doing the package build"
run: |
make -f platform/debian/Makefile debs/all
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Ubuntu Packages (20.04)"
files: target/*.deb
if: ${{ github.ref == 'refs/heads/master' }}