From 05c94a05620738f194023fe94cb980b3b438b1b9 Mon Sep 17 00:00:00 2001 From: Mykola Hohsadze Date: Sun, 1 Sep 2024 03:20:53 +0300 Subject: [PATCH] Add FreeBSD CI support --- .github/workflows/amd64_freebsd_cmake.yml | 31 +++++++++++++++++++++++ .github/workflows/arm64_freebsd_cmake.yml | 31 +++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 .github/workflows/amd64_freebsd_cmake.yml create mode 100644 .github/workflows/arm64_freebsd_cmake.yml diff --git a/.github/workflows/amd64_freebsd_cmake.yml b/.github/workflows/amd64_freebsd_cmake.yml new file mode 100644 index 00000000..286ab87a --- /dev/null +++ b/.github/workflows/amd64_freebsd_cmake.yml @@ -0,0 +1,31 @@ +name: amd64 FreeBSD CMake + +on: + push: + pull_request: + schedule: + # min hours day(month) month day(week) + - cron: '0 0 7,22 * *' + +jobs: + make: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build and run tests + uses: cross-platform-actions/action@v0.25.0 + with: + operating_system: freebsd + architecture: x86-64 + version: '14.1' + shell: bash + memory: 5G + cpu_count: 4 + run: | + sudo pkg install -y cmake git + sudo cmake --version + sudo cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release + sudo cmake --build build --target all -v + sudo cmake --build build --target test -v + sudo cmake --build build --target install -v + diff --git a/.github/workflows/arm64_freebsd_cmake.yml b/.github/workflows/arm64_freebsd_cmake.yml new file mode 100644 index 00000000..0afa6cb1 --- /dev/null +++ b/.github/workflows/arm64_freebsd_cmake.yml @@ -0,0 +1,31 @@ +name: Arm64 FreeBSD CMake + +on: + push: + pull_request: + schedule: + # min hours day(month) month day(week) + - cron: '0 0 7,22 * *' + +jobs: + make: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build and run tests + uses: cross-platform-actions/action@v0.25.0 + with: + operating_system: freebsd + architecture: arm64 + version: '14.1' + shell: bash + memory: 5G + cpu_count: 4 + run: | + sudo pkg install -y cmake git + sudo cmake --version + sudo cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release + sudo cmake --build build --target all -v + sudo cmake --build build --target test -v + sudo cmake --build build --target install -v +