Skip to content
Merged

+scdoc #11906

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
matrix: ${{ steps.process-diff.outputs.matrix }}
steps:
- uses: pkgxdev/setup@v4
- run: pkgx --sync
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6
id: get-diff
Expand All @@ -29,6 +28,7 @@ jobs:
id: process-diff
env:
PKGX_PANTRY_PATH: ${{ github.workspace }}
PKGX_PANTRY_DIR: ${{ github.workspace }}
run: |
if [ -n "${{ steps.get-diff.outputs.diff }}" ]; then
for x in ${{ steps.get-diff.outputs.diff }}; do
Expand All @@ -54,6 +54,7 @@ jobs:
name: ${{ matrix.pkg }} ${{ matrix.platform.tinyname }}
env:
PKGX_PANTRY_PATH: ${{ github.workspace }}
PKGX_PANTRY_DIR: ${{ github.workspace }}
steps:
- uses: actions/checkout@v4

Expand All @@ -66,7 +67,6 @@ jobs:
- uses: pkgxdev/setup@v4
with:
PKGX_DIR: /opt
- run: pkgx --sync

- uses: pkgxdev/brewkit/build@v1
id: build
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/pkg-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ jobs:
arch: ${{ steps.build.outputs.arch }}
env:
PKGX_PANTRY_PATH: ${{ github.workspace }}
PKGX_PANTRY_DIR: ${{ github.workspace }}
steps:
- uses: actions/checkout@v4

Expand All @@ -83,7 +84,6 @@ jobs:
- uses: pkgxdev/setup@v4
with:
PKGX_DIR: /opt
- run: pkgx --sync

- uses: pkgxdev/brewkit/build@v1
with:
Expand Down Expand Up @@ -113,6 +113,7 @@ jobs:
container: ${{ matrix.container }}
env:
PKGX_PANTRY_PATH: ${{ github.workspace }}
PKGX_PANTRY_DIR: ${{ github.workspace }}
steps:
# pkgxdev/setup no longer seeds the base, and many tests
# expect libc6-dev and possibly other base libraries.
Expand All @@ -131,7 +132,6 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- uses: pkgxdev/setup@v4
- run: pkgx --sync

- uses: pkgxdev/brewkit/download-build-artifact@v1
with:
Expand All @@ -153,7 +153,6 @@ jobs:
PREFIX: ${{ needs.build.outputs.project }}/${{ needs.build.outputs.platform }}/${{ needs.build.outputs.arch }}/v${{ needs.build.outputs.version }}.tar.${{ matrix.compression }}
steps:
- uses: pkgxdev/setup@v4
- run: pkgx --sync

- uses: actions/checkout@v4

Expand Down Expand Up @@ -265,7 +264,6 @@ jobs:
aws-region: us-east-1

- uses: pkgxdev/setup@v4
- run: pkgx --sync

- name: generate versions.txt
run: |
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
pkg: ${{ steps.id.outputs.pkg-json }}
steps:
- uses: pkgxdev/setup@v4
- run: pkgx --sync
- uses: actions/checkout@v4
- run: .github/scripts/get-matrix.ts ${{ inputs.pkg }}
id: matrix
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/restock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
versions: ${{ steps.inventory.outputs.versions }}
steps:
- uses: pkgxdev/setup@v4
- run: pkgx --sync
- uses: actions/checkout@v4
- run: ./.github/scripts/inventory.ts ${{ inputs.project }}
id: inventory
Expand Down
38 changes: 38 additions & 0 deletions projects/sr.ht/scdoc/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
distributable:
url: https://git.sr.ht/~sircmpwn/scdoc/archive/{{version}}.tar.gz
strip-components: 1

versions:
url: https://git.sr.ht/~sircmpwn/scdoc/refs
match: /scdoc\/archive\/\d+(\.\d+)+\.tar\.gz/
strip:
- /scdoc\/archive\//
- /\.tar\.gz/

build:
script:
- make --jobs {{ hw.concurrency }} $ARGS
- make install $ARGS
env:
ARGS:
- PREFIX="{{prefix}}"
- LDFLAGS="$LDFLAGS"

provides:
- bin/scdoc

test:
dependencies:
gnu.org/diffutils: "*"
script:
- echo "" | (scdoc || true) | tee out
- echo -e "" >> out
- run: diff -u out $FIXTURE
fixture: |
.\" Generated by scdoc {{version}}
.\" Complete documentation for this program is not available as a GNU info page
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.nh
.ad l
.\" Begin generated content:
Loading