Skip to content

Commit

Permalink
Fix building of rpm on github action.
Browse files Browse the repository at this point in the history
* Do not require to install gcc-c++, because it is only C
  project
* Mark "checkout" directory as trusted to be able to use it
  by tito
* Updated version og action/checkout to v4
  • Loading branch information
jirihnidek committed Oct 24, 2023
1 parent 81512bc commit dd4d837
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,17 @@ jobs:
steps:
# Install git and other tools first to be able to use 'actions/checkout@v2' properly
- name: Install required packages
run: dnf install --nogpgcheck -y tito gcc gcc-c++ make cmake git-core
run: dnf install --nogpgcheck -y tito gcc make cmake git-core

# Clone repository and set everything for building of RPMs
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

# This step is required so Tito can properly read git history
# See https://github.com/actions/checkout/issues/766
- name: Trust git repository path
run: |
git config --global --add safe.directory '*'
- name: Create build directory
run: rm -rf ./rpm_build; mkdir ./rpm_build
Expand Down

0 comments on commit dd4d837

Please sign in to comment.