kanidm/.github/workflows/debian_package_kanidm.yml
James Hodgkinson cc1cc691f3
Started chasing noise, found some code to delete... (#1768)
logging changes:

* Offering auth mechanisms -> debug
* 404's aren't really warnings
* double tombstone message, one goes to debug

other changes:

* CSP changes to allow the bootstrap images to load
* more testing javascriptfile things, I R 
* it's nice to know where things are
* putting non-rust web things in static/ instead of src/
* RequestCredentials::SameOrigin is the default, also adding a utility function to save dupe code. Wow this saved... kilobytes.
* removing commented code, fixing up codespell config
* clippyisms
* wtf, gha
* dee-gloo-ing some things
* adding some ubuntu build test things
* sigh rustwasm/wasm-pack/issues/1138
* more do_request things
* packaging things
* hilarious dev env setup script
* updated script works, all the UI works, including the experimental UI for naughty crabs
* deb package fixes
* fixed some notes
* setup experimental UI tweaks
2023-06-27 11:38:22 +10:00

90 lines
2.3 KiB
YAML

---
name: "Build Deb Packages"
"on":
push:
pull_request:
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-deb-package:
name: Build deb packages
strategy:
matrix:
image:
- ubuntu:22.04
- ubuntu:20.04
- ubuntu:18.04
- debian:11
- debian:10
runs-on: ubuntu-latest
container:
image: ${{ matrix.image }}
env:
DEBIAN_FRONTEND: noninteractive
steps:
- name: Checkout
uses: actions/checkout@v3
- name: install curl
run: |
apt-get update && apt-get install -y curl
- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.3
with:
version: "v0.4.2"
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install dependencies
run: |
scripts/install_ubuntu_dependencies.sh
# apt-get update && \
# apt-get install -y \
# lsb-release \
# libpam0g-dev \
# libudev-dev \
# libssl-dev \
# libsqlite3-dev \
# pkg-config \
# make \
# curl \
# sudo \
# build-essential \
# rsync
- name: Install wasm-pack
run: cargo install wasm-pack
- name: Build packages
run: |
make -f platform/debian/Makefile debs/all
- name: Upload debs
uses: actions/upload-artifact@v3
with:
name: ubuntu-packages
path: |
target/*.deb
upload-to-releases:
name: Upload to releases
needs: build-deb-package
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/master' && github.repository == 'kanidm/kanidm' }}
steps:
- name: Download previously built debs
uses: actions/download-artifact@v3
with:
name: ubuntu-packages
- name: List packages
run: |
ls
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Ubuntu Packages"
files: "*.deb"