Skip to content

Commit

Permalink
FreeBSD GHA builder initial experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
nozomi-slibero committed Nov 20, 2023
1 parent 124c9f7 commit e8aadc4
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/freebsd.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion build.bsd.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit e8aadc4

Please sign in to comment.