-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (33 loc) · 882 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-22.04 ]
env:
GCC_V: 13
steps:
- name: Checkout Source Code
uses: actions/checkout@v3
- name: Install Dependencies (Linux)
if: contains(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install -y gcc-${GCC_V} gfortran-${GCC_V} make
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_V} 100 \
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V}
- name: Build and Test (Linux)
if: contains(matrix.os, 'ubuntu')
run: |
which gfortran
gfortran --version
which gcc
gcc --version
make linux
make linux_examples