From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BE2CD1582EF for ; Tue, 11 Feb 2025 09:26:03 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 9F7DE342F8E for ; Tue, 11 Feb 2025 09:26:03 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 23B21110479; Tue, 11 Feb 2025 09:25:20 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 58CC911042D for ; Tue, 11 Feb 2025 09:25:19 +0000 (UTC) Received: from [192.168.1.1] (c144-147.icpnet.pl [85.221.144.147]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 7D69D340C76; Tue, 11 Feb 2025 09:25:18 +0000 (UTC) Message-ID: <5db027d7de41a66424c131b179a2163b7a783766.camel@gentoo.org> Subject: [gentoo-dev] gentoo-crate-dist mirror experiment From: =?UTF-8?Q?Micha=C5=82_G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Date: Tue, 11 Feb 2025 10:25:14 +0100 Organization: Gentoo Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-7837Ae2skxZ3UlJXU72v" User-Agent: Evolution 3.54.3 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 X-Archives-Salt: 5a45d438-b032-473b-9b7f-530d0e549527 X-Archives-Hash: cf3a119e00e62c112edc5aeb6868d352 --=-7837Ae2skxZ3UlJXU72v Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, I'm experimenting with an automated setup to build and distribute crate tarballs for Rust packages in Gentoo. The setup roughly works like this: 1. We create a fork (or a mirror) of the upstream project repository in the dedicated GitHub organization [1]. 2. crate-dist-mirror action [2] is running in a "cronjob" to fetch new tags from the upstream repository and mirror them to our repository with a custom workflow. 3. crate-dist action [3] runs on every pushed tag, creating the crate tarball and uploading it to the GitHub "release". This has two benefits: a. you don't have to build the tarballs yourself -- they are usually already ready when you get to bumping the package, b. you don't have to host them yourself. pycargoebuild has a new `--no-write-crate-tarball` option that (combined with `--crate-tarball`) takes care of updating the ebuild without actually creating a crate tarball. Feel free to ping us if you'd like to have any upstream repositories mirrored there. [1] https://github.com/gentoo-crate-dist/ [2] https://github.com/projg2/crate-dist-mirror-action/ [3] https://github.com/projg2/crate-dist-action/ --=20 Best regards, Micha=C5=82 G=C3=B3rny --=-7837Ae2skxZ3UlJXU72v Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQFGBAABCgAwFiEEx2qEUJQJjSjMiybFY5ra4jKeJA4FAmerF3oSHG1nb3JueUBn ZW50b28ub3JnAAoJEGOa2uIyniQO+xMIAL0c6K5KT/pmsECLvMIleQIsO/vMx1sP MRGD7RuiuiVBFhz5RVHvaG76TBLl7APx9W/cPeopPSaJL++y/gMO/CsJ1j+erc3H 5uiqTEt/HxWDG+Jtse7Ao1eSF+C76NdJQd9B1DVEU2WZZ3qnknSNkuE+Wlos4j8M 9GQwqoISi8sX6qEKHO9DOdPMYO1KbzG6m+N17qp+9ePxyjhjs186I+Rs5pUTiElH nvWE2vA07QYv4lXESPsPLh7xNPonY1UnNQXYx4V4olAC25fH4+4GhzhxvKBzl/av D3taJUQwZDbycekVv49Z0fCSjG+8PWOD+h3UMmP5yd8v8zlzMf2iu00= =td5H -----END PGP SIGNATURE----- --=-7837Ae2skxZ3UlJXU72v--