From 9d7f8e963a5b76b27cf2aacfe355633b7395614e Mon Sep 17 00:00:00 2001 From: Kasper Peeters Date: Sat, 10 Aug 2024 17:31:13 +0200 Subject: [PATCH] Fix fedora package name. --- .github/workflows/fedora-40-package.yml | 30 ++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/fedora-40-package.yml b/.github/workflows/fedora-40-package.yml index cf955022eb..fc4fef8503 100644 --- a/.github/workflows/fedora-40-package.yml +++ b/.github/workflows/fedora-40-package.yml @@ -19,11 +19,11 @@ jobs: # if: github.ref != 'refs/heads/devel' # run: exit 1 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@master + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@master - - name: Pull Fedora image - run: docker pull fedora:40 + - name: Pull Fedora image + run: docker pull fedora:40 - name: Set up GitHub CLI run: | @@ -36,20 +36,20 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Build RPM in Fedora container - run: | + run: | docker run --rm \ -v ${{ github.workspace }}:/workspace \ -w /workspace \ fedora:40 \ - bash -c " - dnf install -y rpm-build make gcc-c++ git python3-devel cmake gmp-devel libuuid-devel sqlite-devel gtkmm30-devel boost-devel python3-matplotlib python3-pip - pip3 install sympy - cd cadabra2 - mkdir build - cd build - cmake -DPACKAGING_MODE=ON -DENABLE_MATHEMATICA=OFF -DCMAKE_INSTALL_PREFIX=/usr .. - make - cpack + bash -c " \ + dnf install -y rpm-build make gcc-c++ git python3-devel cmake gmp-devel libuuid-devel sqlite-devel gtkmm30-devel boost-devel python3-matplotlib python3-pip \ + pip3 install sympy \ + cd cadabra2 \ + mkdir build \ + cd build \ + cmake -DPACKAGING_MODE=ON -DENABLE_MATHEMATICA=OFF -DCMAKE_INSTALL_PREFIX=/usr .. \ + make \ + cpack \ " - name: Set version variables from output of cmake @@ -59,7 +59,7 @@ jobs: - name: Upload Release Assets run: | - gh release upload "${{ env.VERSION }}" build/cadabra2-${{ env.VERSION }}-fedora-40.rpm --clobber + gh release upload "${{ env.VERSION }}" build/cadabra2-${{ env.VERSION }}-fedora40.rpm --clobber env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}