You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since we are building the project under the `build` directory instead of the root path.
46
+
We will also need to specify the build directory for Coderrect.
16
47
```
17
48
- name: Coderrect Scan
18
-
uses: coderrect-inc/coderrect-github-action@v1.0
49
+
uses: coderrect-inc/coderrect-github-action@v0.4
19
50
with:
20
-
buildCommand: make all -j 6
51
+
buildPath: "build"
52
+
```
53
+
54
+
### For Fortran projects
55
+
You will need to install the fortran compiler first. For example:
56
+
```
57
+
- name: Install fortran
58
+
run: |
59
+
sudo apt-get update -y
60
+
sudo apt-get install -y gfortran
21
61
```
22
-
Take a look at this [cmake project](https://github.com/coderrect-inc/CloverLeaf_OpenMP) and [fortran project](https://github.com/coderrect-inc/covid-sim) to learn how to integrate Coderrect into more complex projects
62
+
Then it is likely you need to specify the fortran compiler when you use `make`. If so, we should also pass the full compilation command to Coderrect. (`gcc` is pre-installed in the Github Action environment.)
For more details, take a look at this [cmake project](https://github.com/coderrect-inc/covid-sim) and [fortran project](https://github.com/coderrect-inc/CloverLeaf_OpenMP) to learn how to integrate Coderrect into more complex projects
0 commit comments