From f2ca6b38c81d52b9f00533e81882d6d6261fcd5a Mon Sep 17 00:00:00 2001 From: drew Date: Sun, 5 Apr 2026 13:38:06 +0400 Subject: [PATCH] ci: 404 error in fetching ps file Signed-off-by: drew --- .github/workflows/nightly.yml | 9 ++++++--- .github/workflows/release.yml | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 0efc345..5567e5a 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -32,10 +32,13 @@ jobs: mkdir -p "$PCSC_DIR/include" "$PCSC_DIR/lib/pkgconfig" # Download pcsc-lite headers from upstream - for header in winscard.h pcsclite.h wintypes.h; do - curl -fsSL "https://raw.githubusercontent.com/LudovicRousseau/PCSC/master/src/PCSC/$header" \ - -o "$PCSC_DIR/include/$header" + PCSC_URL="https://raw.githubusercontent.com/LudovicRousseau/PCSC/master/src/PCSC" + for header in winscard.h wintypes.h; do + curl -fsSL "$PCSC_URL/$header" -o "$PCSC_DIR/include/$header" done + # pcsclite.h is generated from pcsclite.h.in — download and substitute the version placeholder + curl -fsSL "$PCSC_URL/pcsclite.h.in" -o "$PCSC_DIR/include/pcsclite.h" + sed -i '' 's/@VERSION@/1.9.0/' "$PCSC_DIR/include/pcsclite.h" # Create pkg-config file (headers-only, no library needed for cross-compilation) cat > "$PCSC_DIR/lib/pkgconfig/libpcsclite.pc" << EOF diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d4d4695..335e121 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,10 +42,13 @@ jobs: mkdir -p "$PCSC_DIR/include" "$PCSC_DIR/lib/pkgconfig" # Download pcsc-lite headers from upstream - for header in winscard.h pcsclite.h wintypes.h; do - curl -fsSL "https://raw.githubusercontent.com/LudovicRousseau/PCSC/master/src/PCSC/$header" \ - -o "$PCSC_DIR/include/$header" + PCSC_URL="https://raw.githubusercontent.com/LudovicRousseau/PCSC/master/src/PCSC" + for header in winscard.h wintypes.h; do + curl -fsSL "$PCSC_URL/$header" -o "$PCSC_DIR/include/$header" done + # pcsclite.h is generated from pcsclite.h.in — download and substitute the version placeholder + curl -fsSL "$PCSC_URL/pcsclite.h.in" -o "$PCSC_DIR/include/pcsclite.h" + sed -i '' 's/@VERSION@/1.9.0/' "$PCSC_DIR/include/pcsclite.h" # Create pkg-config file (headers-only, no library needed for cross-compilation) cat > "$PCSC_DIR/lib/pkgconfig/libpcsclite.pc" << EOF