From 83efb17367a852c56f8525c9e0275f05dbe896fa Mon Sep 17 00:00:00 2001 From: iphydf Date: Wed, 22 Nov 2023 21:43:23 +0000 Subject: [PATCH] perf: Add a KVM FreeBSD build on cirrus ci. --- .cirrus.yml | 17 ++++++++++++++--- .github/workflows/ci.yml | 10 ---------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 3050eada..94eccd87 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -9,7 +9,7 @@ bazel-opt_task: - /src/workspace/tools/inject-repo c-toxcore test_all_script: - cd /src/workspace && bazel test -k - --config=ci + --config=remote --build_tag_filters=-haskell --test_tag_filters=-haskell -- @@ -26,7 +26,7 @@ bazel-dbg_task: - /src/workspace/tools/inject-repo c-toxcore test_all_script: - cd /src/workspace && bazel test -k - --config=ci + --config=remote --build_tag_filters=-haskell --test_tag_filters=-haskell -- @@ -43,8 +43,19 @@ cimple_task: - /src/workspace/tools/inject-repo c-toxcore test_all_script: - cd /src/workspace && bazel test -k - --config=ci --build_tag_filters=haskell --test_tag_filters=haskell -- //c-toxcore/... + +freebsd_task: + container: + image: toxchat/freebsd:latest + cpu: 2 + memory: 4G + kvm: true + configure_script: + - git submodule update --init --recursive + - cd .. && mv cirrus-ci-build /work/c-toxcore && mkdir cirrus-ci-build + test_all_script: + - cd /work/c-toxcore && .github/scripts/cmake-freebsd diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f0c169a0..2266f2cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -100,16 +100,6 @@ jobs: with: file: other/docker/alpine-s390x/Dockerfile - build-freebsd: - runs-on: ubuntu-latest - steps: - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - name: Docker Build - uses: docker/build-push-action@v2 - with: - file: other/docker/freebsd/Dockerfile - cimplefmt: runs-on: ubuntu-latest steps: