Commit 1112cec 1 parent 3527c98 commit 1112cec Copy full SHA for 1112cec
File tree 4 files changed +30
-10
lines changed
4 files changed +30
-10
lines changed Original file line number Diff line number Diff line change
1
+ name : Main
2
+ on : [push, pull_request]
3
+ jobs :
4
+ test-main :
5
+ runs-on : ubuntu-latest
6
+ steps :
7
+ - uses : actions/checkout@v1
8
+ - run : docker build -t slirp4netns-tests -f Dockerfile.tests .
9
+ - run : docker run --security-opt seccomp="unconfined" --rm -v /dev/net/tun:/dev/net/tun slirp4netns-tests
10
+ test-build :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v1
14
+ - run : docker build -q -f Dockerfile.buildtests .
Original file line number Diff line number Diff line change
1
+ name : Pull Request
2
+ on : [pull_request]
3
+ jobs :
4
+ artifact :
5
+ runs-on : ubuntu-latest
6
+ steps :
7
+ - uses : actions/checkout@v1
8
+ - run : DOCKER_BUILDKIT=1 docker build -o /tmp/artifact --target artifact -f Dockerfile.buildtests .
9
+ - uses : actions/upload-artifact@v1
10
+ with :
11
+ name : slirp4netns-x86_64
12
+ path : /tmp/slirp4netns
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -44,6 +44,10 @@ RUN ./autogen.sh
44
44
FROM buildtest-opensuse151-common AS buildtest-opensuse151-dynamic
45
45
RUN ./configure && make && cp -f slirp4netns /
46
46
47
+ # artifact for GitHub actions
48
+ FROM scratch AS artifact
49
+ COPY --from=buildtest-alpine310-static /slirp4netns /slirp4netns
50
+
47
51
FROM scratch AS buildtest-final-stage
48
52
COPY --from=buildtest-alpine310-static /slirp4netns /buildtest-alpine310-static
49
53
COPY --from=buildtest-ubuntu1804-dynamic /slirp4netns /buildtest-ubuntu1804-dynamic
You can’t perform that action at this time.
0 commit comments