Fixed Makefile and build systems to include man-pages. Added Alt-linux workflow. Fix rpm spec-file #3
@ -15,7 +15,7 @@ jobs:
|
||||
- name: Checking environment
|
||||
continue-on-error: true
|
||||
run: printenv
|
||||
- name: Installing prerequisites - update pacman
|
||||
- name: Installing prerequisites - update apt
|
||||
run: apt-get update
|
||||
- name: Installing prerequisites - install nodejs for actions & git
|
||||
run: apt-get install -y git nodejs
|
||||
@ -29,19 +29,19 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
- name: Getting version info
|
||||
run: |
|
||||
echo "BFORCE_VER=$(cat ${{ env.GITHUB_WORKSPACE }}/source/.version)-$(date +%Y%M%d)" >> $GITHUB_ENV
|
||||
echo "BFORCE_VER=$(cat ${{ env.GITHUB_WORKSPACE }}/source/.version)" >> $GITHUB_ENV
|
||||
- name: Compressing source to tar.gz archive
|
||||
run: |
|
||||
tar -cvzf ./bforce-${{ env.BFORCE_VER }}.tar.gz -c ${{ env.GITHUB_WORKSPACE }}
|
||||
cp ${{ env.GITHUB_WORKSPACE }}/rpm/bforce.spec ./
|
||||
sed -i 's/^# %setup/%setup/' bforce.spec
|
||||
tar -cvzf ./bforce-${{ env.BFORCE_VER }}.tar.gz -c ${{ env.GITHUB_WORKSPACE }}/../
|
||||
cp ${{ env.GITHUB_WORKSPACE }}/rpm/bforce.spec ../
|
||||
sed -i 's/^# %setup/%setup/' ../bforce.spec
|
||||
- name: Building buildtree
|
||||
run: |
|
||||
rpmdev-setuptree
|
||||
mv ./bforce-${{ env.BFORCE_VER }}.tar.gz ./rpmbuild/SOURCES/
|
||||
mv ../bforce-${{ env.BFORCE_VER }}.tar.gz ./rpmbuild/SOURCES/
|
||||
- name: Building binary and source RPM
|
||||
run: |
|
||||
rpmbuild -bb ./bforce.spec --define "_topdir $( pwd )/rpmbuild"
|
||||
rpmbuild -bb ../bforce.spec --define "_topdir $( pwd )/rpmbuild"
|
||||
- name: Constructing artifact name and version
|
||||
run: |
|
||||
echo "BFORCE_VER=$(cat /builder/src/bforce/source/.version)-$(date +%Y%M%d)" >> $GITHUB_ENV
|
||||
|
Loading…
x
Reference in New Issue
Block a user