Before building jw-pkg from source, make pkg-install-release-deps is called without refreshing the package manager before. Fix that by calling make -C jw-pkg pkg-manager-refresh.
Note that it's called again later. Leaving that in because the second step doesn't hurt, and the first steppe might get scrapped entirely at some point.
Signed-off-by: Jan Lindemann <jan@janware.com>
34 lines
1.3 KiB
YAML
34 lines
1.3 KiB
YAML
name: jw-pkg packaging test
|
|
description: Checkout, build and test a project organized with jw-pkg
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- uses: ci/action-checkout@main-jw
|
|
with:
|
|
path: ${{ github.event.repository.name }}
|
|
working-directory: ${{ github.event.repository.name }}
|
|
persist-credentials: false
|
|
- name: Install build prerequisites
|
|
shell: bash
|
|
run: |
|
|
set -euxo pipefail
|
|
# Install from source what's publicly available. This step could be omitted.
|
|
(
|
|
export PROJECTS_DIR_REMOTE_BASE=${{ github.server_url }}
|
|
owner=janware
|
|
makefile=$PROJECTS_DIR_REMOTE_BASE/$owner/jw-pkg/raw/branch/master/make/projects-dir-minimal.mk
|
|
curl --create-dirs -o build-jw-foss/Makefile $makefile
|
|
make -C build-jw-foss pkg-manager-refresh
|
|
make -C build-jw-foss pkg-install-release-deps
|
|
OFFLINE=true make -C build-jw-foss pkg-rebuild-reinstall
|
|
)
|
|
|
|
- name: Build and install package
|
|
shell: bash
|
|
run: |
|
|
set -ex
|
|
make -C ${{ github.event.repository.name }} pkg-manager-refresh # redundant
|
|
make -C ${{ github.event.repository.name }} pkg-install-testbuild-deps # redundant
|
|
make -C ${{ github.event.repository.name }} pkg-rebuild
|
|
make -C ${{ github.event.repository.name }} pkg-reinstall
|