Skip to content

Commit

Permalink
Add autotools (#13)
Browse files Browse the repository at this point in the history
* added autotools to release workflow

* updating spec

* testing release workflow on this branch

* isolating action for testing

* adding boost and gsl to release workflow

* removing boost version requirement in rpmbuild

* moving build files
  • Loading branch information
wjcunningham7 authored May 5, 2022
1 parent 06bdf9c commit 98c964a
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 5,354 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
with:
persist-credentials: false
- name: Install build tools
run: yum install -y make rpm-build automake autoconf
run: yum install -y make rpm-build automake autoconf gsl-devel boost
- name: Read version
run: |
VERSION=`cat VERSION`
Expand All @@ -98,13 +98,13 @@ jobs:
run: |
mkdir -p $HOME/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
mkdir fastmath-$VERSION
cp -r include configure configure.ac install-sh LICENSE Makefile.am Makefile.in missing VERSION fastmath-$VERSION
cp -r include configure.ac LICENSE Makefile.am VERSION fastmath-$VERSION
tar cvzf fastmath-$VERSION.tar.gz fastmath-$VERSION
mv fastmath-$VERSION.tar.gz $HOME/rpmbuild/SOURCES
- name: Generate spec
run: |
bash ./build-rpm-spec.sh
mv fastmath.spec $HOME/rpmbuild/SPECS
bash ./pkg/build-rpm-spec.sh
mv pkg/fastmath.spec $HOME/rpmbuild/SPECS
- name: Build RPM
run: rpmbuild -ba $HOME/rpmbuild/SPECS/fastmath.spec
- name: Test RPM installation
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ AUTHORS
ChangeLog
config.log
config.status
configure
configure~
depcomp
install-sh
Makefile.in
missing
NEWS
**/stamp-h1
**/config.h
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [UNRELEASED]

### Fixed

- Release RPM build action

## [1.3.1] - 2022-05-05

### Fixed
Expand Down
4 changes: 4 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ autom4te.cache,\
aclocal.m4,\
AUTHORS,\
ChangeLog,\
configure,\
configure~,\
install-sh,\
Makefile.in,\
missing,\
NEWS,\
$(sourcedir)/config.h.in~,\
$(sourcedir)/stamp-h1\
Expand Down
Loading

0 comments on commit 98c964a

Please sign in to comment.