-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cc8547a
commit ce2bca6
Showing
4 changed files
with
44 additions
and
110 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,49 +1,45 @@ | ||
name: CI | ||
name: ARCHDefs | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
jobs: | ||
build: | ||
name: SIFDecode ${{ matrix.os }} ${{ matrix.compiler }} | ||
name: SIFDecode/${{ matrix.os }}/${{ matrix.compiler }}-v${{ matrix.version }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
compiler: gnu | ||
input: '1\n1\nn\n1' | ||
compiler: gcc | ||
version: '12' | ||
input: '1\n1\nN1\nNyy' | ||
arch: 'pc64.lnx.gfo' | ||
- os: macos-latest | ||
compiler: gnu | ||
input: '2\nn\n4' | ||
compiler: gcc | ||
version: '12' | ||
input: '2\nN1\nNyy' | ||
arch: 'mac64.osx.gfo' | ||
- os: ubuntu-latest | ||
compiler: intel | ||
input: '1\n1\nn\n2\nn\ny' | ||
hpckit: 'https://registrationcenter-download.intel.com/akdlm/irc_nas/18975/l_HPCKit_p_2022.3.1.16997_offline.sh' | ||
script: 'install_linux.sh' | ||
compiler: intel-classic | ||
version: '2021.10' | ||
input: '1\n1\nN2\nNyy' | ||
arch: 'pc64.lnx.ifr' | ||
- os: macos-latest | ||
compiler: intel | ||
input: '2\nn\n2\nn\ny' | ||
hpckit: 'https://registrationcenter-download.intel.com/akdlm/irc_nas/18977/m_HPCKit_p_2022.3.1.15344_offline.dmg' | ||
script: 'install_macos.sh' | ||
compiler: intel-classic | ||
version: '2021.10' | ||
input: '2\nN2\nNyy' | ||
arch: 'mac64.osx.ifr' | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
ARCHDEFS: ${{ github.workspace }}/ARCHDefs | ||
SIFDECODE: ${{ github.workspace }} | ||
MASTSIF: ${{ github.workspace }}/sif | ||
steps: | ||
- name: Set up Homebrew | ||
if: matrix.compiler == 'gnu' | ||
uses: Homebrew/actions/setup-homebrew@master | ||
- name: Check out | ||
uses: actions/checkout@v3 | ||
- name: Checkout SIFDecode | ||
uses: actions/checkout@v4 | ||
- name: Download ARCHDefs | ||
id: download-archdefs | ||
uses: robinraju/[email protected] | ||
|
@@ -56,25 +52,27 @@ jobs: | |
run: | | ||
tar zxf ARCHDefs-${{ steps.download-archdefs.outputs.tag_name }}.tar.gz | ||
mv ralna-ARCHDefs-* ARCHDefs | ||
- name: Install GNU C and Fortran compilers | ||
if: matrix.compiler == 'gnu' | ||
- name: Install compilers | ||
uses: fortran-lang/setup-fortran@main | ||
with: | ||
compiler: ${{ matrix.compiler }} | ||
version: ${{ matrix.version }} | ||
- name: Build | ||
run: | | ||
brew update | ||
eval $(brew shellenv) | ||
brew install gcc | ||
- name: Install Intel OneAPI C and Fortran compilers | ||
if: matrix.compiler == 'intel' | ||
cd $SIFDECODE | ||
printf "${{ matrix.input }}" > install_config | ||
./install_sifdecode < install_config | ||
- name: Test | ||
run: | | ||
.github/scripts/${{ matrix.script }} "${{ matrix.hpckit }}" all | ||
$SIFDECODE/bin/sifdecoder --help | ||
$SIFDECO: ${{ matrix.version }} | ||
- name: Build | ||
run: | | ||
[[ "${{ matrix.compiler }}" == "intel" ]] && source /opt/intel/oneapi/setvars.sh | ||
cd $SIFDECODE | ||
printf "${{ matrix.input }}" > install_config | ||
./install_sifdecode < install_config | ||
- name: Test | ||
run: | | ||
[[ "${{ matrix.compiler }}" == "intel" ]] && source /opt/intel/oneapi/setvars.sh | ||
$SIFDECODE/bin/sifdecoder --help | ||
$SIFDECODE/bin/sifdecoder -A ${{ matrix.arch }} ROSENBR.SIF | ||
# check that all output files exist (EXTER.f may not exist) | ||
|
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