Skip to content

ASCII alternatives for all UTF8 symbols #540

ASCII alternatives for all UTF8 symbols

ASCII alternatives for all UTF8 symbols #540

name: Fortran wrappers
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: Check for updates
runs-on: ubuntu-latest
steps:
- name: Checkout Uno
uses: actions/checkout@v4
- name: Install Julia
uses: julia-actions/setup-julia@v2
with:
version: 1
arch: x64
- name: Regenerate the Fortran wrappers
shell: bash
run: |
cd interfaces/Julia/gen
julia --color=no --project -e 'using Pkg; Pkg.instantiate()'
julia --color=no --project wrapper_fortran.jl
cd ../../Fortran
git diff --quiet uno_c.f90 uno_fortran.f90 || {
echo "❌ The Fortran wrappers in uno_c.f90 / uno_fortran.f90 are out of date. ❌";
echo "Please run wrapper_fortran.jl in interfaces/Julia/gen to regenerate them:";
echo "";
echo "cd interfaces/Julia/gen";
echo "julia --project -e 'using Pkg; Pkg.instantiate()'";
echo "julia --project wrapper_fortran.jl";
echo "";
echo "You can also find the instructions at:";
echo "https://github.com/cvanaret/Uno/blob/main/interfaces/Julia/gen/README.md";
exit 1;
}