2023-01-30 07:43:52 +05:30
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-02-09 20:08:02 +05:30
|
|
|
runs-on: ubuntu-latest
|
2023-01-30 07:43:52 +05:30
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: debug
|
|
|
|
run: |
|
|
|
|
id
|
|
|
|
which bash
|
|
|
|
whoami
|
|
|
|
env
|
|
|
|
ps -ef
|
|
|
|
pwd
|
|
|
|
cat /proc/self/uid_map
|
|
|
|
cat /proc/self/status
|
|
|
|
systemd-detect-virt
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo cat /etc/apt/sources.list
|
|
|
|
sudo sed -i '/deb-src/d' /etc/apt/sources.list
|
|
|
|
sudo sed -i '/^deb /p;s/ /-src /' /etc/apt/sources.list
|
|
|
|
export DEBIAN_PRIORITY=critical
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
2023-02-25 00:47:42 +05:30
|
|
|
# let's try to work around upgrade breakage in a pkg we don't care about
|
|
|
|
sudo apt-mark hold grub-efi-amd64-bin grub-efi-amd64-signed
|
2023-01-30 07:43:52 +05:30
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get -y dist-upgrade
|
|
|
|
sudo apt-get -y install ubuntu-dev-tools automake autopoint xsltproc gettext expect byacc libtool libbsd-dev pkgconf
|
|
|
|
sudo apt-get -y build-dep shadow
|
|
|
|
- name: configure
|
|
|
|
run: |
|
|
|
|
autoreconf -v -f --install
|
|
|
|
./autogen.sh --without-selinux --disable-man --with-yescrypt
|
|
|
|
- run: make
|
|
|
|
- run: make install DESTDIR=${HOME}/rootfs
|
|
|
|
- run: sudo make install
|
|
|
|
- name: run tests in shell with tty
|
|
|
|
shell: 'script -q -e -c "bash {0}"'
|
|
|
|
run: |
|
2023-02-28 08:03:12 +05:30
|
|
|
set -e
|
2023-01-30 07:43:52 +05:30
|
|
|
cd tests
|
|
|
|
sudo ./run_some
|
|
|
|
cat testsuite.log
|
2023-03-03 20:00:55 +05:30
|
|
|
|
|
|
|
container-build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [alpine, debian, fedora]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Build container
|
|
|
|
run: |
|
|
|
|
docker buildx build -f ./share/containers/${{ matrix.os }}.dockerfile . --output build-out
|
|
|
|
|
|
|
|
- name: Store artifacts
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: ${{ matrix.os }}-build
|
|
|
|
path: |
|
|
|
|
./build-out/config.log
|
|
|
|
./build-out/config.h
|
|
|
|
if-no-files-found: ignore
|