diff --git a/.github/workflows/actions-ci.yml b/.github/workflows/actions-ci.yml index dfc06865276..506d098017a 100644 --- a/.github/workflows/actions-ci.yml +++ b/.github/workflows/actions-ci.yml @@ -490,3 +490,26 @@ jobs: # echo ${env:SDEROOT} # .\tests\ci\run_windows_tests.bat "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86 true # + freebsd-13: + if: github.repository_owner == 'aws' + name: FreeBSD 13 test + runs-on: ubuntu-latest + env: + AWS_LC_SSL_TEST_RUNNER_PEEK_ROUNDS: 5 + AWS_LC_GO_TEST_TIMEOUT: 90m + GOFLAGS: "-buildvcs=false" + steps: + - uses: actions/checkout@v4 + with: + submodules: 'recursive' + - name: Prepare VM + uses: vmactions/freebsd-vm@v1 + with: + envs: 'AWS_LC_SSL_TEST_RUNNER_PEEK_ROUNDS AWS_LC_GO_TEST_TIMEOUT GOFLAGS' + release: 13.2 + usesh: true + copyback: false + prepare: | + pkg install -y git gmake bash cmake-core curl go perl5 ninja + run: | + tests/ci/run_freebsd_tests.sh diff --git a/.github/workflows/cross-test.yml b/.github/workflows/cross-test.yml index 097e9ae5f6a..ea282128d48 100644 --- a/.github/workflows/cross-test.yml +++ b/.github/workflows/cross-test.yml @@ -109,3 +109,4 @@ jobs: env: CFLAGS: "-Wno-string-compare" run: tests/ci/run_cross_tests.sh s390x s390x-ibm-linux-gnu "-DCMAKE_BUILD_TYPE=Release" + diff --git a/tests/ci/run_freebsd_tests.sh b/tests/ci/run_freebsd_tests.sh new file mode 100755 index 00000000000..4299727e848 --- /dev/null +++ b/tests/ci/run_freebsd_tests.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 OR ISC + +set -ex + +source tests/ci/common_posix_setup.sh + +echo "Testing AWS-LC shared library in release mode." +build_and_test -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=1 + +echo "Testing AWS-LC static library in release mode." +build_and_test -DCMAKE_BUILD_TYPE=Release +