-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
404 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#name: Build FORD docs & deploy to gh-pages | ||
name: FORD(1) docs | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
name: Deploy docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install dependencies | ||
run: python -m pip install --upgrade pip ford | ||
|
||
- name: Checkout master | ||
uses: actions/checkout@v1 | ||
|
||
- name: Build docs | ||
run: | | ||
ford ford.md | ||
ls | ||
tree | ||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@releases/v3 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
#BRANCH: gh_pages | ||
BRANCH: master | ||
FOLDER: docs/fpm-ford | ||
TARGET_FOLDER: docs/fpm-ford | ||
# ford(1) deletes the output directory before running | ||
# so be careful to specify a unique subdirectory in | ||
# your ford(1) configuration files | ||
|
||
# valid inputs are ['SSH', 'ACCESS_TOKEN', 'GITHUB_TOKEN', 'BRANCH', | ||
# 'FOLDER', 'TARGET_FOLDER', 'BASE_BRANCH', 'COMMIT_MESSAGE', 'CLEAN', | ||
# 'CLEAN_EXCLUDE', 'GIT_CONFIG_NAME', 'GIT_CONFIG_EMAIL', 'REPOSITORY_NAME', | ||
# 'WORKSPACE', 'SINGLE_COMMIT', 'LFS', 'SILENT', 'PRESERVE'] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: macos with gfortran | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
Build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ macos-latest ] | ||
include: | ||
- os: macos-latest | ||
gcc_v: 9 | ||
env: | ||
FC: gfortran | ||
GCC_V: ${{ matrix.gcc_v }} | ||
TZ: UTC+04:00 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v1 | ||
|
||
- name: Install GFortran macOS | ||
run: | | ||
ls /usr/local/bin/gfortran-* | ||
ln -s /usr/local/bin/gfortran-${GCC_V} /usr/local/bin/gfortran | ||
which gfortran-${GCC_V} | ||
which gfortran | ||
- name: Install fpm | ||
run: | | ||
echo $PATH | ||
pwd | ||
uname -a | ||
wget https://raw.githubusercontent.com/urbanjost/index/main/bootstrap/fpm.F90 | ||
mkdir -p /Users/runner/bin | ||
gfortran fpm.F90 -o /Users/runner/bin/fpm | ||
ls -l | ||
- name: Display environment | ||
run: | | ||
echo "end" > foo.f90 | ||
gfortran -cpp -E -dM foo.f90 | ||
gfortran --version | ||
fpm --version | ||
- name: tests MacOS (debug) | ||
run: fpm test --profile debug | ||
|
||
- name: tests MacOS (release) | ||
run: fpm test --profile release | ||
|
||
- name: cleanup MacOS | ||
run: ls -ltras |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: windows mingw64 with gfortran | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
CTEST_TIME_TIMEOUT: "50" # some failures hang forever | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: [ | ||
{ msystem: MINGW64, arch: x86_64 }, | ||
] | ||
env: | ||
FC: gfortran | ||
TZ: UTC+04:00 | ||
defaults: | ||
run: | ||
shell: msys2 {0} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup MinGW native environment | ||
uses: msys2/setup-msys2@v2 | ||
if: contains(matrix.msystem, 'MINGW') | ||
with: | ||
msystem: ${{ matrix.msystem }} | ||
update: false | ||
install: >- | ||
git | ||
wget | ||
mingw-w64-${{ matrix.arch }}-gcc | ||
mingw-w64-${{ matrix.arch }}-gcc-fortran | ||
- name: Install fpm | ||
run: | | ||
echo $PATH | ||
pwd | ||
uname -a | ||
wget https://raw.githubusercontent.com/urbanjost/index/main/bootstrap/fpm.F90 | ||
gfortran fpm.F90 -o fpm | ||
ls -l | ||
- name: tests (release) | ||
run: | | ||
gfortran --version | ||
PATH=$PATH:. | ||
./fpm test --compiler gfortran --profile release -flag "-D _WIN32" | ||
env: | ||
FPM_COMPILER: gfortran | ||
CC: gcc | ||
CXX: g++ | ||
FC: gfortran | ||
TZ: UTC+04:00 | ||
|
||
- name: tests (debug) | ||
run: | | ||
PATH=$PATH:. | ||
gfortran --version | ||
./fpm test --compiler gfortran --profile debug -flag "-D _WIN32" | ||
env: | ||
FPM_COMPILER: gfortran | ||
CC: gcc | ||
CXX: g++ | ||
FC: gfortran | ||
TZ: UTC+04:00 | ||
|
||
- name: cleanup | ||
run: ls -ltras |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: msys windows gfortran | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
CTEST_TIME_TIMEOUT: "5" # some failures hang forever | ||
FC: gfortran | ||
TZ: UTC+04:00 | ||
|
||
jobs: | ||
gfortran-windows-msys2-mingw64: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v1 | ||
|
||
- name: Setup MinGW (MSYS2) | ||
uses: msys2/setup-msys2@v2 | ||
with: | ||
msystem: MINGW64 | ||
update: false | ||
install: >- | ||
git | ||
wget | ||
mingw-w64-x86_64-gcc-fortran | ||
- name: Install fpm | ||
shell: msys2 {0} | ||
run: | | ||
wget https://raw.githubusercontent.com/urbanjost/index/main/bootstrap/fpm.F90 | ||
gfortran fpm.F90 -o fpm | ||
- name: Run tests and demo programs (debug) | ||
shell: msys2 {0} | ||
run: | | ||
gfortran --version | ||
./fpm test --profile release -flag "-D _WIN32" | ||
env: | ||
FC: gfortran | ||
TZ: UTC+04:00 | ||
|
||
- name: Run tests and demo programs (release) | ||
shell: msys2 {0} | ||
run: | | ||
gfortran --version | ||
./fpm test --profile release -flag "-D _WIN32" | ||
env: | ||
FC: gfortran | ||
TZ: UTC+04:00 | ||
|
||
- name: cleanup | ||
run: dir |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: ubuntu with gfortran | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
Build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest ] | ||
include: | ||
- os: ubuntu-latest | ||
gcc_v: 9 | ||
|
||
env: | ||
FC: gfortran | ||
GCC_V: ${{ matrix.gcc_v }} | ||
TZ: UTC+04:00 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v1 | ||
|
||
- name: Install GFortran Linux | ||
run: | | ||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_V} 100 \ | ||
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} \ | ||
--slave /usr/bingcov gcov /usr/bin/gcov-${GCC_V} | ||
- name: Install fpm | ||
run: | | ||
echo $PATH | ||
pwd | ||
uname -a | ||
wget https://raw.githubusercontent.com/urbanjost/index/main/bootstrap/fpm.F90 | ||
mkdir -p /home/runner/.local/bin | ||
gfortran fpm.F90 -o /home/runner/.local/bin/fpm | ||
ls -l | ||
- name: Display environment | ||
run: | | ||
#make -k -p -fNOTTHERE | ||
echo "end" > foo.f90 | ||
gfortran -cpp -E -dM foo.f90 | ||
gfortran --version | ||
fpm --version | ||
- name: ubuntu with gfortran (debug) | ||
run: fpm test --profile debug | ||
|
||
- name: ubuntu with gfortran (release) | ||
run: fpm test --profile release | ||
|
||
# - name: Run demo programs (fpm run) | ||
# run: fpm run --profile release | ||
|
||
- name: cleanup Linux | ||
run: ls -ltras |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: windows with gfortran | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
Build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [windows-latest] | ||
gcc_v: [9] # Version of GFortran we want to use. | ||
include: | ||
|
||
- os: windows-latest | ||
os-arch: windows-x86_64 | ||
release-flags: --flag '--static -g -fbacktrace -O3' | ||
exe: .exe | ||
|
||
env: | ||
FC: gfortran | ||
GCC_V: ${{ matrix.gcc_v }} | ||
TZ: UTC+04:00 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v1 | ||
|
||
- name: Install fpm | ||
run: | | ||
echo $PATH | ||
pwd | ||
uname -a | ||
curl https://raw.githubusercontent.com/urbanjost/index/main/bootstrap/fpm.F90 --output fpm.F90 | ||
gfortran fpm.F90 -o fpm | ||
- name: Display environment | ||
run: | | ||
#make -k -p -fNOTTHERE | ||
echo "end" > foo.f90 | ||
gfortran -cpp -E -dM foo.f90 | ||
gfortran --version | ||
./fpm --version | ||
- name: tests MSWindows (debug) | ||
run: ./fpm test --profile debug -flag "-D _WIN32" | ||
|
||
- name: tests MSWindows (release) | ||
run: ./fpm test --profile release -flag "-D _WIN32" | ||
|
||
# - name: Run demo programs (fpm run) | ||
# run: fpm run --profile release | ||
|
||
- name: cleanup MSWindows | ||
run: dir |
Oops, something went wrong.