Skip to content

Commit

Permalink
test FPM setup by means of GH Action
Browse files Browse the repository at this point in the history
  • Loading branch information
szaghi committed Jul 6, 2022
1 parent 6a327ca commit 3bdabbc
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,23 @@ jobs:
./install.sh --download wget --build cmake
rm -rf *
- name: FPM
- name: Checkout
run: |
git clone https://github.com/$GITHUB_REPOSITORY ./
- name: Setup FPM with GH Action
if: ${{ !env.ACT }}
uses: fortran-lang/setup-fpm@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup FPM without GH Action
if: ${{ env.ACT }}
run: |
wget $(curl -s https://api.github.com/repos/fortran-lang/fpm/releases/latest | grep 'browser_' | cut -d\" -f4 | grep -i linux | grep -vi sha256) -O fpm
chmod +x fpm
./fpm build --profile release
- name: FPM
run: |
export PATH=".:$PATH"
fpm build --profile release

0 comments on commit 3bdabbc

Please sign in to comment.