Skip to content

Update build-freebsd-package.yml #7

Update build-freebsd-package.yml

Update build-freebsd-package.yml #7

name: Build FreeBSD Package
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build FreeBSD package
run: |
docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace ustcmirror/freebsd-pkg:latest \
/bin/sh -c "
env ASSUME_ALWAYS_YES=YES pkg bootstrap
pkg update -f
pkg install -y git python3 py37-pip
git clone https://github.com/huashengdun/webssh.git
cd webssh
pip install -r requirements.txt
python setup.py bdist
"