fix
Some checks failed
build-rpm / rpm (push) Failing after 4s

This commit is contained in:
Danilo Reyes
2026-02-19 10:42:15 -06:00
parent 506fdd5d96
commit a6f3fcc625
2 changed files with 7 additions and 1 deletions

View File

@@ -11,6 +11,8 @@ on:
jobs: jobs:
rpm: rpm:
runs-on: nixos runs-on: nixos
env:
NIX_CONFIG: builders=
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4

View File

@@ -1,7 +1,11 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -euo pipefail set -euo pipefail
ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd) if ROOT_DIR=$(git -C "${PWD}" rev-parse --show-toplevel 2>/dev/null); then
ROOT_DIR="$ROOT_DIR"
else
ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
fi
SPEC_FILE="$ROOT_DIR/packaging/prem2resolve.spec" SPEC_FILE="$ROOT_DIR/packaging/prem2resolve.spec"
if ! command -v rpmspec >/dev/null 2>&1; then if ! command -v rpmspec >/dev/null 2>&1; then