38 lines
1.2 KiB
YAML
38 lines
1.2 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/**/*'
|
|
branches: main
|
|
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/katie/continuwuity-bsd --revision ${{ forgejo.sha }}
|
|
|
|
- name: Build
|
|
run: |
|
|
cd continuwuity-bsd/freebsd
|
|
make package
|
|
env:
|
|
DISTVERSION: 0.5.7
|
|
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.7.pkg --header "Authorization: Bearer ${{ secrets.PUSH_TOKEN }}" ${{ forgejo.server_url }}/api/packages/katie/generic/continuwuity-freebsd/${{ forgejo.ref_name }}-${{ forgejo.run_number }}/continuwuity-${{ matrix.flavor }}-0.5.7-freebsd${{ matrix.freebsd }}-amd64.pkg
|