Some checks failed
Build FreeBSD package / build (generic, 14) (push) Has been cancelled
Build FreeBSD package / build (haswell, 14) (push) Has been cancelled
Build FreeBSD package / build (haswell, 15) (push) Has been cancelled
Build FreeBSD package / build (generic, 15) (push) Has been cancelled
38 lines
1.3 KiB
YAML
38 lines
1.3 KiB
YAML
name: Build FreeBSD package
|
|
|
|
concurrency:
|
|
group: "build-freebsd-${{ github.ref }}"
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- '.forgejo/workflows/build-freebsd.yml'
|
|
- 'freebsd/**/*'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: freebsd-${{ matrix.freebsd }}-amd64
|
|
strategy:
|
|
matrix:
|
|
freebsd: [14, 15]
|
|
flavor: [generic, haswell]
|
|
steps:
|
|
- name: Clone
|
|
run: |
|
|
git clone https://forgejo.ellis.link/continuwuation/continuwuity --branch v0.5.5 --depth 1
|
|
git clone https://forgejo.ellis.link/katie/continuwuity-bsd --revision ${{ forgejo.sha }} continuwuity/bsd
|
|
|
|
- name: Build
|
|
run: |
|
|
cd continuwuity/bsd/freebsd
|
|
make package
|
|
env:
|
|
DISTVERSION: 0.5.5
|
|
DISTDIR: ${{ forgejo.workspace }}/distfiles
|
|
FLAVOR: ${{ matrix.flavor }}
|
|
|
|
- name: Upload package
|
|
run: |
|
|
curl --fail-with-body --upload-file continuwuity/bsd/freebsd/work-${{ matrix.flavor }}/pkg/continuwuity-${{ matrix.flavor }}-0.5.5.pkg --header "Authorization: Bearer ${{ secrets.PUSH_TOKEN }}" ${{ forgejo.server_url }}/api/packages/katie/generic/continuwuity-freebsd/run-${{ forgejo.run_number }}/continuwuity-${{ matrix.flavor }}-0.5.5-freebsd${{ matrix.freebsd }}-amd64.pkg
|