Add container-build tool #1
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: Build and test on containers | |
on: | |
[push, pull_request, workflow_dispatch] | |
jobs: | |
build_and_test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
builder: ["podman"] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Update podman | |
run: | | |
# from https://askubuntu.com/questions/1414446/whats-the-recommended-way-of-installing-podman-4-in-ubuntu-22-04 | |
ubuntu_version='22.04' | |
key_url="https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_${ubuntu_version}/Release.key" | |
sources_url="https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_${ubuntu_version}" | |
echo "deb $sources_url/ /" | sudo tee /etc/apt/sources.list.d/devel-kubic-libcontainers-unstable.list | |
curl -fsSL $key_url | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/devel_kubic_libcontainers_unstable.gpg > /dev/null | |
sudo apt update | |
sudo apt install -y podman | |
- uses: actions/checkout@v4 | |
- name: Make on Unix | |
run: ./container-build.py make -d fast | |