Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(release): ensure build files exist #12

Merged
Merged
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
23 changes: 18 additions & 5 deletions .github/workflows/build-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
image: archlinux/archlinux:base-devel
env:
DISPLAY: ":1"
CONTAINER_DIR: pkgbuilds
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -59,13 +60,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Configure Git directory
# prevent fatal error when building stable matrix
if: matrix.release_name == 'stable'
run: git config --global --add safe.directory /__w/pacman-repo/pacman-repo

- name: Download and Patch beta PKGBUILDs
if: matrix.repo == 'lizardbyte-beta'
if: matrix.release_name == 'beta'
run: |
# we don't want any stable packages to be built, so remove them
rm -rf pkgbuilds
mkdir -p pkgbuilds
cd pkgbuilds
rm -rf ${CONTAINER_DIR}
mkdir -p ${CONTAINER_DIR}
cd ${CONTAINER_DIR}

while IFS=' ' read -r repo og_pkg_name updated_pkg_name release_asset; do
# Skip lines that start with #
Expand Down Expand Up @@ -145,7 +151,7 @@ jobs:
# generate build-pacman-repo.yaml
build-pacman-repo print-config \
--repository repo/${{ matrix.repo }}.db.tar.gz \
--container pkgbuilds \
--container ${CONTAINER_DIR} \
--require-pkgbuild \
--require-srcinfo \
--with-record-failed-builds repo/failed-build-records.yaml \
Expand All @@ -163,6 +169,13 @@ jobs:

build-pacman-repo build

# ensure files are present in the repo
repo_files=$(ls repo)
if [[ -z "${repo_files}" ]]; then
echo "::error:: No files found in repo"
exit 1
fi

- name: Create/Update GitHub Release
if: github.event_name == 'schedule' || github.event_name == 'push'
uses: ncipollo/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Server = https://github.com/LizardByte/pacman-repo/releases/latest/download
```conf
[lizardbyte-beta]
SigLevel = Optional
Server = https://github.com/LizardByte/pacman-repo/releases/beta/download
Server = https://github.com/LizardByte/pacman-repo/releases/download/beta
```

Then, run `sudo pacman -Sy` to update repository.
Expand Down
2 changes: 1 addition & 1 deletion pkgbuilds/sunshine/.SRCINFO
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pkgbase = sunshine
pkgdesc = A self-hosted GameStream host for Moonlight.
pkgver = 0.23.1
pkgrel = 1
pkgrel = 2
url = https://app.lizardbyte.dev/Sunshine
install = sunshine.install
arch = x86_64
Expand Down