(fix) wrong folder name #10
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: fpm-deployment | |
on: [push] | |
env: | |
GCC_V: "10" | |
PROJECT_NAME: "mfi" | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/[email protected] | |
- name: Set up Python 3.x | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.x | |
- name: Install fypp | |
run: pip install --upgrade fypp | |
- name: Generate ${{ env.PROJECT_NAME }}-fpm package 🔧 | |
run: | | |
make FYPPFLAGS="-DMFI_EXTENSIONS -DUSE_GPU -DUSE_CUBLAS" | |
mkdir mfi-cublas | |
cp -R src mfi-cublas | |
cp -R test mfi-cublas | |
cp fpm.toml mfi-cublas | |
cp LICENSE mfi-cublas | |
find mfi-cublas/src -type f ! -name "*.f90" -delete | |
find mfi-cublas/test -type f ! -name "*.f90" -delete | |
- name: Install GFortran | |
run: | | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ env.GCC_V }} 100 \ | |
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${{ env.GCC_V }} \ | |
--slave /usr/bin/gcov gcov /usr/bin/gcov-${{ env.GCC_V }} | |
- name: Install Lapack and Blas | |
run: | | |
sudo apt install libblas3* liblapack3* libtmglib3* libcublas* | |
- name: Install fpm latest release | |
uses: fortran-lang/setup-fpm@v3 | |
with: | |
fpm-version: 'v0.5.0' | |
- name: Run fpm build ⚙ | |
run: | | |
fpm build --link-flag="-lcublas" --profile release | |
# Update and deploy the f90 files generated by github-ci to the `PROJECT_NAME-fpm` branch. | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
if: github.event_name != 'pull_request' | |
with: | |
BRANCH: mfi-cublas | |
FOLDER: mfi-cublas |