test copy file #10
Workflow file for this run
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
name: test-bindings | |
on: | |
push: | |
branches: [main, ci_workflow] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
fortran_bindings: | |
name: Test SPERR Fortran bindings on ubuntu-latest | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone SPERR repository | |
uses: GuillaumeFalourd/clone-github-repo-action@v2.3 | |
with: | |
depth: 1 | |
branch: 'v0.8.1' | |
owner: 'NCAR' | |
repository: 'SPERR' | |
- name: Access cloned repository content | |
run: | | |
echo "ROOT" | |
ls -la | |
echo "CLONED REPO" | |
cd SPERR | |
cmake -S . -B build -DBUILD_CLI_UTILITIES=OFF -DBUILD_UNIT_TESTS=OFF -DCMAKE_VERBOSE_MAKEFILE=ON | |
cmake --build build | |
sudo cmake --install build | |
- name: Run C examples | |
run: | | |
cd SPERR/examples/C_API | |
ln -s ../../test_data . | |
gcc -g -O3 2d.c -o 2d.out -I/usr/local/include -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSPERR | |
gcc -g -O3 3d.c -o 3d.out -I/usr/local/include -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSPERR | |
./2d.out ./test_data/lena512.float 512 512 1 2.5 | |
cp output.stream 2d-output.stream | |
cp output.data 2d-output.data | |
./3d.out ./test_data/density_128x128x256.d64 128 128 256 1 2.6 -d | |
- name: Clone own repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Build executables | |
run: | | |
cmake -S . -B build -DCMAKE_VERBOSE_MAKEFILE=ON | |
cmake --build build | |
ls -la | |
cp ~/SPERR/test_data/lena512.float . | |
cp ~/SPERR/examples/C_API/2d-output.* . | |
ls -la |