workflow for testing #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: QuAcK Compilation | |
on: | |
push: | |
branches: | |
- ci | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
name: Dependencies | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y gfortran gcc liblapack-dev libblas-dev wget python3 make m4 pkg-config | |
- name: Configuration | |
run: | | |
./configure -i ninja || : | |
- name: Compilation | |
run: | | |
bash -c "source quack.rc ; cd src ; make" | |
- name: Upload compiled binary | |
uses: actions/upload-artifact@v3 | |
with: | |
name: fortran-binary | |
path: ./bin/QuAcK | |