Skip to content

Merge pull request #26 from blazzy/attach-exec-support #112

Merge pull request #26 from blazzy/attach-exec-support

Merge pull request #26 from blazzy/attach-exec-support #112

Workflow file for this run

name: Main
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
jobs:
doc-build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- name: build docs
run: RUSTDOCFLAGS="--cfg docsrs" cargo doc --all-features
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Remove Default Podman
run: |
sudo apt-get remove podman
sudo apt-get remove crun
- uses: actions/checkout@v4
with:
repository: containers/crun
ref: 1.16.1
path: ./crun
- uses: actions/checkout@v4
with:
repository: containers/podman
ref: v5.1.2
path: ./podman
- name: Install build deps
run: |
sudo apt-get update
sudo apt-get install \
btrfs-progs \
golang-go \
go-md2man \
iptables \
libassuan-dev \
libbtrfs-dev \
libc6-dev \
libdevmapper-dev \
libglib2.0-dev \
libgpgme-dev \
libgpg-error-dev \
libprotobuf-dev \
libprotobuf-c-dev \
libseccomp-dev \
libselinux1-dev \
libsystemd-dev \
pkg-config \
uidmap \
automake \
libyajl-dev \
autoconf \
libtool \
pkgconf \
libcap-dev
- name: Build crun
run: |
cd crun
./autogen.sh
./configure --prefix=/usr
make PREFIX=/usr
sudo make install PREFIX=/usr
- name: Build Podman
run: |
cd podman
make BUILDTAGS="systemd seccomp" PREFIX=/usr
sudo make install PREFIX=/usr
- name: Start Podman
run: |
podman --version
systemctl --user enable --now podman.socket
systemctl --user status podman.socket
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- uses: taiki-e/install-action@v2
with:
tool: cargo-rdme
- name: Format
run: cargo fmt --check
- name: README sync
run: cargo rdme --check --heading-base-level 0
- name: Build
run: cargo build --verbose
- name: Tests
run: cargo test --verbose