Skip to content

Commit

Permalink
Try to fix build of rpm using github action
Browse files Browse the repository at this point in the history
  • Loading branch information
jirihnidek committed Oct 24, 2023
1 parent 81512bc commit b568fc0
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,32 +38,29 @@ jobs:
needs: build
runs-on: ubuntu-latest
container:
image: fedora:rawhide
image: fedora:latest
options: --security-opt seccomp=unconfined
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

- name: Create build directory
run: rm -rf ./rpm_build; mkdir ./rpm_build

- name: Build RPM package
run: tito build --test --rpm --verbose --debug -o ./rpm_build --no-cleanup
run: tito build --test --rpm --verbose --debug --no-cleanup

- name: Store source RPM as artifact
uses: actions/upload-artifact@v2
with:
name: Source RPM
path: ./rpm_build/*.rpm
path: /tmp/tito/*.rpm

- name: Store binary RPMs as artifacts
uses: actions/upload-artifact@v2
with:
name: Binary RPMs
# TODO: replace x86_64 with result of 'uname -m'
path: ./rpm_build/x86_64/*.rpm
path: /tmp/tito/x86_64/*.rpm

0 comments on commit b568fc0

Please sign in to comment.