Skip to content

Commit

Permalink
Build on ubuntu-22.04 and 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
wwahammy committed Jan 2, 2025
1 parent 836329a commit bb9aeba
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/container-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,22 @@ jobs:
build_and_test:
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-22.04, 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
- 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
if: ${{ matrix.os == 'ubuntu-22.04' }}
- uses: actions/checkout@v4
- name: Make on Unix
run: ./container-build.py make -d fast
Expand Down
6 changes: 3 additions & 3 deletions container-build.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ def runProcess(exe):


parser = argparse.ArgumentParser(description='Build Sandstorm using an Ubuntu 20.04 Docker/OCI container')
parser.add_argument("action", choices=["make", "prepare", "shell"], default="make", nargs="?")
parser.add_argument('--container-builder', dest="container_builder", default='podman', help='Command you run for building container from command line')
parser.add_argument('--container-runner', dest="container_runner", default='podman', help='Command you run for running container from command line')
parser.add_argument("action", choices=["make", "prepare", "shell"], default="make", nargs="?", help='')
parser.add_argument('--container-builder', dest="container_builder", default='podman', help='Command you run for building container from command line (Default: %(default))')
parser.add_argument('--container-runner', dest="container_runner", default='podman', help='Command you run for running container from command line (Default: %(default))')
parser.add_argument('args', nargs=argparse.REMAINDER)

args = parser.parse_args()
Expand Down

0 comments on commit bb9aeba

Please sign in to comment.