All checks were successful
Build FreeBSD package / build (generic, 15) (push) Successful in 24m35s
Build FreeBSD package / build (generic, 14) (push) Successful in 28m54s
Build FreeBSD package / build (haswell, 15) (push) Successful in 23m18s
Build OpenBSD package / build (generic) (push) Successful in 51m23s
Build FreeBSD package / build (haswell, 14) (push) Successful in 24m47s
Build OpenBSD package / build (haswell) (push) Successful in 48m18s
47 lines
1.5 KiB
YAML
47 lines
1.5 KiB
YAML
name: Build OpenBSD package
|
|
|
|
concurrency:
|
|
group: "build-openbsd-${{ github.ref }}"
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- '.forgejo/workflows/build-openbsd.yml'
|
|
- 'openbsd/**/*'
|
|
branches:
|
|
- main
|
|
- openbsd
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: openbsd
|
|
strategy:
|
|
matrix:
|
|
flavor: [generic, haswell]
|
|
env:
|
|
PORTSDIR: ${{ forgejo.workspace }}/ports
|
|
FLAVOR: ${{ matrix.flavor }}
|
|
steps:
|
|
- name: Clone
|
|
run: git clone https://forgejo.ellis.link/katie/continuwuity-bsd.git --revision ${{ forgejo.sha }}
|
|
- name: Prepare ports tree
|
|
run: |
|
|
cp /ports.tar.gz .
|
|
tar zfvx ports.tar.gz ports/infrastructure
|
|
mkdir -p ports/net/continuwuity
|
|
cp -R continuwuity-bsd/openbsd/* ports/net/continuwuity
|
|
patch ports/infrastructure/db/user.list < continuwuity-bsd/openbsd/user.list.patch
|
|
- name: Build
|
|
run: |
|
|
cd ports/net/continuwuity
|
|
make
|
|
- name: Package
|
|
run: |
|
|
cd ports/net/continuwuity
|
|
make package
|
|
- name: Upload
|
|
run: |
|
|
curl --fail-with-body --upload-file ${{ forgejo.workspace }}/ports/packages/amd64/ftp/continuwuity-0.5.7-${{ matrix.flavor }}.tgz --header "Authorization: Bearer ${{ secrets.PUSH_TOKEN }}" ${{ forgejo.server_url }}/api/packages/katie/generic/continuwuity-openbsd/${{ forgejo.ref_name }}-${{ forgejo.run_number }}/continuwuity-0.5.7-${{ matrix.flavor }}.tgz
|
|
|