Include github-org-analyzer under tutorial/github-org-analyzer (#56) #81
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: ci | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
# os: [ubuntu-latest, macos-latest] | |
os: [ubuntu-latest] | |
gcc_v: [11, 12] | |
env: | |
FPM_FC: gfortran-${{ matrix.gcc_v }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Fortran Package Manager | |
uses: fortran-lang/setup-fpm@v5 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install curl development headers on Ubuntu | |
if: contains( matrix.os, 'ubuntu' ) | |
run: sudo apt install -y libcurl4-openssl-dev | |
- name: Install GCC compilers on macOS | |
if: contains( matrix.os, 'macos') | |
run: | | |
brew install gcc@${{ matrix.gcc_v }} || brew upgrade gcc@${{ matrix.gcc_v }} || true | |
brew link gcc@${{ matrix.gcc_v }} | |
- name: Build with GCC | |
run: fpm build | |
- name: Test with GCC | |
run: fpm test |