Skip to content

Commit b9e2217

Browse files
committed
github actions experiments
1 parent e7420fa commit b9e2217

File tree

1 file changed

+13
-24
lines changed

1 file changed

+13
-24
lines changed

.github/workflows/CI.yml

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ jobs:
2727
if: contains( matrix.os, 'ubuntu')
2828
run: |
2929
sudo apt-get install graphviz
30-
sudo -H pip install FoBiS.py && FoBiS.py --version
31-
sudo -H pip install ford==5.0.6 && ford --version
32-
sudo -H pip install --upgrade markdown==2.6.9
30+
sudo -H pip install numpy
31+
sudo -H pip install ford && ford --version
3332
sudo -H pip install matplotlib
3433
3534
- name: Install GFortran Linux
@@ -42,27 +41,17 @@ jobs:
4241
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} \
4342
--slave /usr/bingcov gcov /usr/bin/gcov-${GCC_V}
4443
45-
- name: Build and compile
46-
run: |
47-
FoBiS.py build -compiler gnu -cflags "-c -O2 -std=f2008" -dbld ./lib/ -s ./src/ -dmod ./ -dobj ./ -t pyplot_module.f90 -o libpyplot.a -mklib static -colors
48-
FoBiS.py build -compiler gnu -cflags "-c -O2 -std=f2008" -dbld ./bin/ -s ./src/tests/ -dmod ./ -dobj ./ -colors -libs ./lib/libpyplot.a --include ./lib/
49-
50-
- name: catch build fail
51-
run: cmake --build build --verbose --parallel 1
52-
if: failure()
44+
- name: Compile
45+
run: gfortran -O2 ./src/pyplot_module.f90 ./src/tests/test.f90 -o ./bin/test
5346

54-
- name: test
47+
- name: Run test
5548
run: ./bin/test
5649

57-
- name: Install project
58-
run: |
59-
git config --global user.name "TRAVIS-CI-for-$(git --no-pager show -s --format='%cn' $TRAVIS_COMMIT)"
60-
git config --global user.email "$(git --no-pager show -s --format='%ce' $TRAVIS_COMMIT)"
61-
git clone -q --branch=gh-pages "https://${GH_TOKEN}@github.com/$TRAVIS_REPO_SLUG" gh-pages >/dev/null 2>&1
62-
rm -rf gh-pages/*
63-
ford ./pyplot-fortran.md
64-
cp -rf ./doc/* gh-pages/
65-
cd gh-pages/
66-
git add -f --all * || true
67-
git commit -m "Travis CI autocommit from Travis job $TRAVIS_JOB_NUMBER for tag $TRAVIS_TAG $TRAVIS_COMMIT" || true
68-
git push -fq origin gh-pages > /dev/null 2>&1 || true
50+
- name: Build documentation
51+
run: ford ./pyplot-fortran.md
52+
53+
- name: Deploy Documentation
54+
uses: JamesIves/[email protected]
55+
with:
56+
branch: gh-pages # The branch the action should deploy to.
57+
folder: doc # The folder the action should deploy.

0 commit comments

Comments
 (0)