From e8aadc42224207a959091fd05e9401ff5e16d3ef Mon Sep 17 00:00:00 2001 From: Stefano Libero Date: Mon, 20 Nov 2023 15:05:20 +0100 Subject: [PATCH] FreeBSD GHA builder initial experiment --- .github/workflows/freebsd.yml | 31 +++++++++++++++++++++++++++++++ build.bsd.sh | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/freebsd.yml diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml new file mode 100644 index 0000000..329fc22 --- /dev/null +++ b/.github/workflows/freebsd.yml @@ -0,0 +1,31 @@ +name: FreeBSD build + +on: + push: + workflow_dispatch: + pull_request: + +jobs: + freebsdbuild: + runs-on: ubuntu-22.04 + name: Build on FreeBSD + # env: + # MYTOKEN : ${{ secrets.MYTOKEN }} + # MYTOKEN2: "value2" + steps: + - uses: actions/checkout@v3 + - name: Build in FreeBSD + id: build + uses: vmactions/freebsd-vm@v1 + with: + # envs: 'MYTOKEN MYTOKEN2' + usesh: true + prepare: | + git submodule update --init --recursive + run: | + ./build.bsd.sh + - name: Store executable + uses: actions/upload-artifact@v3 + with: + name: n2os_smb_client.bsd + path: bin/n2os_smb_client.bsd diff --git a/build.bsd.sh b/build.bsd.sh index 3b461ae..b2b22c5 100755 --- a/build.bsd.sh +++ b/build.bsd.sh @@ -1,6 +1,6 @@ #!/bin/sh -git submodule update --init --recursive +# git submodule update --init --recursive cmake . -DCMAKE_BUILD_TYPE=Release make strip -s n2os_smb_client