Skip to content

Commit 6c9d461

Browse files
authored
Merge pull request #352 from AkihiroSuda/dev
CI: update deps
2 parents d6b8b5f + ead6f78 commit 6c9d461

File tree

4 files changed

+26
-28
lines changed

4 files changed

+26
-28
lines changed

.github/workflows/main.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@ name: Main
22
on: [push, pull_request]
33
jobs:
44
test-main:
5-
runs-on: ubuntu-20.04
5+
runs-on: ubuntu-24.04
66
strategy:
77
matrix:
88
libslirp_commit: [master, v4.9.0, v4.8.0, v4.1.0]
99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v4
1111
- run: docker build -t slirp4netns-tests --build-arg LIBSLIRP_COMMIT -f Dockerfile.tests .
1212
env:
1313
LIBSLIRP_COMMIT: ${{ matrix.libslirp_commit }}
14+
- run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
1415
- run: docker run --rm --privileged slirp4netns-tests
1516
test-build:
16-
runs-on: ubuntu-20.04
17+
runs-on: ubuntu-24.04
1718
steps:
18-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v4
1920
- run: DOCKER_BUILDKIT=1 docker build -f Dockerfile.buildtests .

.github/workflows/release.yaml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,32 @@ on:
55

66
jobs:
77
release:
8-
runs-on: ubuntu-22.04
8+
runs-on: ubuntu-24.04
99
steps:
1010
- uses: actions/checkout@v4
1111
with:
1212
# Reproduce the exact commit hash value
1313
fetch-depth: 0
1414
ref: ${{ github.event.pull_request.head.sha }}
1515
- run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
16-
- uses: docker/setup-buildx-action@v2
17-
- name: Cache var-cache-apt
18-
uses: actions/cache@v3
16+
- uses: docker/setup-buildx-action@v3
17+
- name: Cache apt
18+
id: cache
19+
uses: actions/cache@v4
1920
with:
20-
path: var-cache-apt
21+
path: |
22+
var-cache-apt
23+
var-lib-apt
2124
key: var-cache-apt-${{ hashFiles('Dockerfile.artifact') }}
22-
- name: Cache var-lib-apt
23-
uses: actions/cache@v3
24-
with:
25-
path: var-lib-apt
26-
key: var-lib-apt-${{ hashFiles('Dockerfile.artifact') }}
2725
- name: inject var-cache-apt into docker
28-
uses: reproducible-containers/[email protected]
29-
with:
30-
cache-source: var-cache-apt
31-
cache-target: /var/cache/apt
32-
- name: inject var-lib-apt into docker
33-
uses: reproducible-containers/[email protected]
26+
uses: reproducible-containers/buildkit-cache-dance@v3
3427
with:
35-
cache-source: var-lib-apt
36-
cache-target: /var/lib/apt
28+
cache-map: |
29+
{
30+
"var-cache-apt": "/var/cache/apt",
31+
"var-lib-apt": "/var/lib/apt"
32+
}
33+
skip-extraction: ${{ steps.cache.outputs.cache-hit }}
3734
- name: "Build binaries from Dockerfile.artifact"
3835
run: docker buildx build -o /tmp/slirpbuilds --build-arg SOURCE_DATE_EPOCH --platform=amd64,arm64,arm,s390x,ppc64le,riscv64 -f Dockerfile.artifact .
3936
- name: "Create /tmp/artifact"

Dockerfile.artifact

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
# -f Dockerfile.artifact .
77

88
ARG LIBSLIRP_COMMIT=v4.9.0
9-
ARG UBUNTU_VERSION=jammy-20240125
10-
ARG XX_VERSION=1.2.1@sha256:8879a398dedf0aadaacfbd332b29ff2f84bc39ae6d4e9c0a1109db27ac5ba012
11-
ARG REPRO_SOURCES_LIST_VERSION=v0.1.0
9+
# TODO: update from jammy (22.04) to noble (24.04)
10+
ARG UBUNTU_VERSION=jammy-20250126
11+
ARG XX_VERSION=1.6.1@sha256:923441d7c25f1e2eb5789f82d987693c47b8ed987c4ab3b075d6ed2b5d6779a3
12+
ARG REPRO_SOURCES_LIST_VERSION=v0.1.4
1213

1314
FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx
1415

Dockerfile.tests

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
ARG LIBSLIRP_COMMIT=v4.9.0
22

3-
FROM ubuntu:22.04 AS build
3+
FROM ubuntu:24.04 AS build
44
ENV DEBIAN_FRONTEND=noninteractive
5-
RUN apt update && apt install -y automake autotools-dev make gcc libglib2.0-dev libcap-dev libseccomp-dev git ninja-build python3-pip
6-
RUN pip3 install meson
5+
RUN apt update && apt install -y automake autotools-dev make gcc libglib2.0-dev libcap-dev libseccomp-dev git ninja-build meson
76
RUN git clone https://gitlab.freedesktop.org/slirp/libslirp.git /libslirp
87
WORKDIR /libslirp
98
ARG LIBSLIRP_COMMIT

0 commit comments

Comments
 (0)