Attempt to build and to install Podman 5 in test runner #49
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: 1 | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
#- name: Set up Homebrew | |
# uses: Homebrew/actions/setup-homebrew@master | |
- name: Remove Podman | |
run: | | |
sudo apt-get remove crun podman | |
- uses: actions/checkout@v4 | |
with: | |
repository: containers/podman | |
ref: v5.1.2 | |
path: ./podman | |
- name: Build Podman | |
run: | | |
sudo apt-get install \ | |
btrfs-progs \ | |
crun \ | |
git \ | |
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 | |
cd podman | |
make BUILDTAGS="systemd" PREFIX=/usr | |
sudo make install PREFIX=/usr | |
- name: Start Podman | |
run: | | |
podman --version | |
systemctl --user enable --now podman.socket | |
systemctl --user status podman.socket | |
#- name: Install Podman | |
# brew install crun podman | |
#- name: Versions | |
# run: | | |
# crun --version | |
# podman version | |
#- name: Start Podman | |
# run: brew services start podman | |
- 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 | |
- name: Build | |
run: cargo build --verbose | |
- name: Tests | |
run: cargo test --verbose |