From 2fd0f86182ba4a2f46b724dbbadc3e396582941f Mon Sep 17 00:00:00 2001 From: Irene Diez Date: Wed, 29 Nov 2023 12:00:24 +0100 Subject: [PATCH] chore: try to fix Packit builds Signed-off-by: Irene Diez --- .packit.yaml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index c53409ee0..4e83bbd66 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -18,12 +18,19 @@ srpm_build_deps: actions: create-archive: - "cargo vendor vendor" - - bash -c "git archive --prefix=fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}/ --format=tar HEAD > fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}.tar" - - bash -c "tar -xvf fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}.tar" - - bash -c "cp -Ra vendor fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}" - - bash -c "tar -czf fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}.tar.gz fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}" - - bash -c "rm -rf fido-device-onboard-rs-${PACKIT_PROJECT_VERSION} fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}.tar vendor" - - bash -c "ls -1 ./fido-device-onboard-rs-*.tar.gz" + - "rm -rf vendor/winapi/src/*" + - "touch vendor/winapi/src/lib.rs" + - "rm -rf vendor/winapi-x86_64-pc-windows-gnu/lib/*" + - "rm -rf vendor/winapi-i686-pc-windows-gnu/lib/*" + - "rm -rf vendor/vcpkg/test-data" + - "tar cJf fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}-vendor-patched.tar.xz vendor/" + - "ls -1 ./fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}-vendor-patched.tar.xz" + # - bash -c "git archive --prefix=fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}/ --format=tar HEAD > fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}.tar" + # - bash -c "tar -xvf fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}.tar" + # - bash -c "cp -Ra vendor fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}" + # - bash -c "tar -czf fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}.tar.gz fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}" + # - bash -c "rm -rf fido-device-onboard-rs-${PACKIT_PROJECT_VERSION} fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}.tar vendor" + # - bash -c "ls -1 ./fido-device-onboard-rs-*.tar.gz" fix-spec-file: - sed -i fido-device-onboard.spec -e "s/with_packit 0/with_packit 1/" - bash -c "sed -i -r \"s/Release:(\s*)\S+/Release:\1${PACKIT_RPMSPEC_RELEASE}%{?dist}/\" fido-device-onboard.spec" @@ -45,4 +52,4 @@ jobs: - centos-stream-9-aarch64 - centos-stream-9-x86_64 - fedora-development-aarch64 - - fedora-development \ No newline at end of file + - fedora-development