Skip to content

Commit

Permalink
perf: Add a KVM FreeBSD build.
Browse files Browse the repository at this point in the history
This uses nested virtualization to improve FreeBSD test times.
  • Loading branch information
iphydf committed Nov 22, 2023
1 parent 47e77d1 commit ee8ea23
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,25 @@ jobs:
with:
file: other/docker/freebsd/Dockerfile

build-freebsd-kvm:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Checkout code
uses: actions/checkout@v3
- name: Change RUN to CMD
run: sed -i -e 's/^RUN/CMD/' other/docker/freebsd/Dockerfile
- name: Docker Build
uses: docker/build-push-action@v2
with:
context: "."
file: other/docker/freebsd/Dockerfile
tags: toxchat/c-toxcore:freebsd
load: true
- name: Run build
run: docker run --name toxcore-freebsd --device /dev/kvm --rm -it toxchat/c-toxcore:freebsd

cimplefmt:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion other/docker/freebsd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ FROM toxchat/freebsd:latest
WORKDIR /work/c-toxcore
COPY . /work/c-toxcore/

RUN .github/scripts/cmake-freebsd
CMD [".github/scripts/cmake-freebsd"]

0 comments on commit ee8ea23

Please sign in to comment.