-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from yanjen/intel-ci
Add support for Intel and NAG compilers
- Loading branch information
Showing
26 changed files
with
337 additions
and
272 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: FortUTF Ubuntu Intel 2023 | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
name: Intel Latest Tests | ||
runs-on: 'ubuntu-22.04' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup cmake | ||
uses: jwlawson/actions-setup-cmake@v1.14 | ||
with: | ||
cmake-version: '3.27.x' | ||
- name: Setup Intel ifort compiler | ||
uses: fortran-lang/setup-fortran@v1 | ||
id: setup-fortran | ||
with: | ||
compiler: intel | ||
version: '2023.2' | ||
- name: Build Tests | ||
run: | | ||
ifort --version | ||
cmake -H. -Bbuild -DBUILD_TESTS=ON -DCMAKE_Fortran_COMPILER=ifort | ||
cmake --build build | ||
- name: Run Tests | ||
run: | | ||
./build/FortUTF_Tests | ||
if [ $? -eq 0 ]; then | ||
echo "Unit Tests completed successfully" | ||
exit 0 | ||
else | ||
echo "Unit Tests failed" | ||
exit 1 | ||
fi | ||
- name: Run Test List | ||
run: | | ||
./build/FortUTF_Tests TEST_FAIL_EQUAL_CHAR TEST_EQUAL_CHAR | ||
if [ $? -eq 0 ]; then | ||
echo "Unit Tests completed succesfully" | ||
exit 0 | ||
else | ||
echo "Unit Tests failed" | ||
exit 1 | ||
fi |
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
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
Oops, something went wrong.