-
Notifications
You must be signed in to change notification settings - Fork 191
fpm deployment enhancement #802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 15 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
3e21484
start replacement of deployement sh script by python script
jalvesz d0da408
copy the VERSION file
jalvesz e79c643
ignore temp folders
jalvesz 5979ae9
change temp with wildcars for any level
jalvesz 9c363d8
fypp preprocessing at root using temp subfolders
jalvesz 5f5a058
focus on preprocessing and building
jalvesz a4def72
preprocessor flag by compilers
jalvesz 0ede787
add function to copy files after preprocessing
jalvesz 4ca323e
refactor fpm action using root folder
jalvesz 7683b32
forgottent argument
jalvesz e5d91dc
deprecate tests always_fail and always_skip
jalvesz 85ac351
no longer needed files in prune list
jalvesz d1f7b2b
Include README info regarding python script preprocessing
jalvesz 18cdae1
clean up deployment workflow
jalvesz 1b5a132
Merge branch 'fortran-lang:master' into deployment
jalvesz 6bca027
Update README.md
jalvesz 95ee064
use action='store_true' to avoid need of int parameter
jalvesz a597834
add argparse to requirements and update README
jalvesz ca8ad40
Merge branch 'fortran-lang:master' into deployment
jalvesz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -1,51 +1,48 @@ | ||
name: fpm-deployment | ||
|
||
on: [push, pull_request] | ||
env: | ||
GCC_V: "10" | ||
|
||
jobs: | ||
Build: | ||
runs-on: ubuntu-latest | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
toolchain: {compiler: gcc, version: 13} | ||
|
||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v2.3.1 | ||
|
||
- 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 stdlib-fpm package 🔧 | ||
run: | | ||
bash ./ci/fpm-deployment.sh | ||
|
||
- 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 fpm latest release | ||
uses: fortran-lang/setup-fpm@v5 | ||
with: | ||
fpm-version: 'v0.10.0' | ||
|
||
- name: Run fpm test ⚙ | ||
run: | | ||
cp -r stdlib-fpm stdlib-fpm-test | ||
cd stdlib-fpm-test | ||
fpm test | ||
fpm test --profile release | ||
- name: Checkout code | ||
uses: actions/checkout@v2.3.1 | ||
|
||
- name: Set up Python 3.x | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.x | ||
|
||
- name: Install requirements | ||
run: pip install --upgrade -r config/requirements.txt | ||
|
||
- uses: fortran-lang/setup-fortran@main | ||
id: setup-fortran | ||
with: | ||
compiler: ${{ matrix.toolchain.compiler }} | ||
version: ${{ matrix.toolchain.version }} | ||
|
||
- name: Setup Fortran Package Manager | ||
uses: fortran-lang/setup-fpm@v5 | ||
with: | ||
fpm-version: 'v0.10.0' | ||
|
||
- run: | | ||
python config/fypp_deployment.py --deploy_stdlib_fpm 1 | ||
fpm test --profile release | ||
|
||
# Update and deploy the f90 files generated by github-ci to the `stdlib-fpm` branch. | ||
- name: Deploy 🚀 | ||
uses: JamesIves/github-pages-deploy-action@4.1.5 | ||
if: github.event_name != 'pull_request' | ||
with: | ||
BRANCH: stdlib-fpm | ||
FOLDER: stdlib-fpm | ||
- name: Deploy 🚀 | ||
uses: JamesIves/github-pages-deploy-action@4.1.5 | ||
if: github.event_name != 'pull_request' | ||
with: | ||
BRANCH: stdlib-fpm | ||
FOLDER: stdlib-fpm |
This file contains hidden or 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
build/ | ||
|
||
**/temp/ | ||
# FORD generated documentation | ||
# !WARNING! This folder gets deleted and overwritten | ||
API-doc/ | ||
|
This file contains hidden or 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.