From 2d25f751dba8fb48143622048cfe12bf135d9021 Mon Sep 17 00:00:00 2001 From: Joel Knight Date: Sun, 18 Feb 2024 16:50:48 -0700 Subject: [PATCH] CI job for FreeBSD --- .github/workflows/ci.yml | 19 +++++++++++++++++++ builder.json | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 99ca48dec5..7476257640 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -147,3 +147,22 @@ jobs: python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')" chmod a+x builder ./builder build -p ${{ env.PACKAGE_NAME }} + + freebsd: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build ${{ env.PACKAGE_NAME }} + consumers + id: test + uses: cross-platform-actions/action@v0.23.0 + with: + operating_system: freebsd + architecture: x86-64 + version: '14.0' + cpu_count: 4 + shell: bash + run: | + sudo pkg install py39-urllib3 + python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')" + chmod a+x builder + ./builder build -p ${{ env.PACKAGE_NAME }} diff --git a/builder.json b/builder.json index c44ce1dba7..e73c7f8602 100644 --- a/builder.json +++ b/builder.json @@ -5,7 +5,7 @@ { "name": "aws-c-cal" }, { "name": "s2n", - "targets": ["linux", "android"] + "targets": ["linux", "android", "freebsd"] } ], "downstream": [