Skip to content

Commit

Permalink
Add more containers
Browse files Browse the repository at this point in the history
  • Loading branch information
AWehrhahn committed Dec 8, 2020
1 parent ebb73e7 commit b6ed150
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/make.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,17 @@ jobs:
strategy:
fail-fast: false
matrix:
include:
- name: manylinux2014_x86_64-gfortran
compiler: gfortran
container: quay.io/pypa/manylinux2014_x86_64
- name: manylinux2014_x86_64-f2c
compiler: f2c
container: quay.io/pypa/manylinux2014_x86_64

container: ${{ matrix.container }}
container:
[
manylinux2014_x86_64,
manylinux2014_i686,
manylinux2014_aarch64,
manylinux2014_ppc64le,
manylinux2014_s390x,
]
compiler: [gfortran, f2c]

container: quay.io/pypa/${{ matrix.container }}
steps:
- run: git clone https://github.com/AWehrhahn/SMElib .
- run: yum install -y zip python3-pip
Expand All @@ -63,7 +65,7 @@ jobs:
cd f2c
cp ../makefile.u Makefile
make
cp libf2c.a /usr/local/lib64/
cp libf2c.a /usr/local/lib/
cd ../..
- name: Replace Makefile
if: matrix.compiler == 'f2c'
Expand All @@ -73,7 +75,7 @@ jobs:
run: f2c -w -a -C++ -Nn1604 -Nq1200 -dsrc/eos/ src/eos/*.f & f2c -w -a -C++ -dsrc/sme/ src/sme/*.f
- run: ./bootstrap && ./configure --prefix=$PWD
- run: make install
- run: zip -r ${{ matrix.name }} lib share
- run: zip -r ${{ matrix.container }}-${{ matrix.compiler}} lib share

- run: pip3 install -r test/requirements.txt
- run: python3 -m pytest
Expand All @@ -85,8 +87,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./${{ matrix.name }}.zip
asset_name: ${{ matrix.name }}.zip
asset_path: ./${{ matrix.container }}-${{ matrix.compiler}}.zip
asset_name: ${{ matrix.container }}-${{ matrix.compiler}}.zip
asset_content_type: application/zip

build:
Expand Down

0 comments on commit b6ed150

Please sign in to comment.