Skip to content

Commit

Permalink
Create CI.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ofmla authored Apr 22, 2024
1 parent a9a8cd0 commit c0a4a62
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: SZ3 Fortran Bindings Testing

# Define when to trigger the workflow
on:
push:
branches: [main, ci_workflow]
pull_request:
branches: [main]
workflow_dispatch:

jobs:
test_bindings:
name: Test zfp Fortran example on ubuntu-latest
runs-on: ubuntu-latest

strategy:
matrix:
gcc-version: [9, 10, 11]

steps:
# Setup GCC
- name: Get compiler
uses: fortran-lang/setup-fortran@v1
with:
compiler: gcc
version: ${{ matrix.gcc-version }}

# Clone the own repository to access test data files
- name: Clone own repository
uses: actions/checkout@v4
with:
fetch-depth: 0

# Build executable and compare output files
- name: Build executable and compare files
run: |
cmake -S . -B build -DREAL64 -DBUILD_EXAMPLES=ON
cmake --build build
ls -la
./exe -c
./exe -d

0 comments on commit c0a4a62

Please sign in to comment.