From 651fab539485b92d85deda3503bee2f389537e52 Mon Sep 17 00:00:00 2001 From: agnik Date: Wed, 2 Oct 2024 21:15:52 +0530 Subject: [PATCH] Update Fedora packaging workflow and scripts --- .github/workflows/release-fedora.yml | 63 +++++++++++++--------------- build.sh | 52 ++++------------------- stone-prover.spec | 37 ++++++++-------- 3 files changed, 55 insertions(+), 97 deletions(-) diff --git a/.github/workflows/release-fedora.yml b/.github/workflows/release-fedora.yml index d1a6602..438f46a 100644 --- a/.github/workflows/release-fedora.yml +++ b/.github/workflows/release-fedora.yml @@ -3,51 +3,44 @@ name: Release Fedora Package on: push: tags: - - 'v*.*.*' # Trigger the workflow when a new tag is pushed (e.g., v1.0.0) + - 'v*.*.*' jobs: build: - runs-on: ubuntu-latest # Using Ubuntu as the host runner, simulating Fedora with Docker + runs-on: ubuntu-latest steps: - - name: Checkout stone-prover repository + - name: Checkout code uses: actions/checkout@v2 - - name: Set up Fedora environment with Docker - run: | - docker pull fedora:latest # Pull the latest Fedora image - docker run --name fedora-build -d fedora:latest tail -f /dev/null # Start the Fedora container - - - name: Install dependencies inside Fedora container - run: | - docker exec -i fedora-build bash -c "dnf update -y && dnf install -y rpm-build gcc make python3-pip wget git" + - name: Set up Docker + uses: docker/setup-buildx-action@v1 - - name: Install Bazelisk in Fedora container + - name: Build Fedora container and RPM run: | - docker exec -i fedora-build bash -c "wget https://github.com/bazelbuild/bazelisk/releases/download/v1.20.0/bazelisk-linux-amd64" - docker exec -i fedora-build bash -c "chmod +x bazelisk-linux-amd64 && mv bazelisk-linux-amd64 /usr/local/bin/bazelisk" - - - name: Verify Bazelisk installation - run: docker exec -i fedora-build bash -c "bazelisk version" - - - name: Copy and run build.sh inside Fedora container + docker build -t fedora-build -f- . < - 1.0.0-1 -- Initial RPM package for stone-prover. +* Wed Oct 02 2024 Your Name - %{version}-1 +- Initial RPM package for stone-prover. \ No newline at end of file