Debian Codegraph @

.github/workflows/build.yml

raw
1 # This is a basic workflow to help you get started with Actions
2
3 name: build
4
5 # Controls when the action will run. Triggers the workflow on push or pull request
6 # events but only for the master branch
7 on:
8 push:
9 branches: [ main ]
10 pull_request:
11 branches: [ main ]
12
13 # A workflow run is made up of one or more jobs that can run sequentially or in parallel
14 jobs:
15 # This workflow contains a single job called "build"
16 build:
17 # The type of runner that the job will run on
18 runs-on: ubuntu-latest
19
20 # Steps represent a sequence of tasks that will be executed as part of the job
21 steps:
22 - name: Install gfortran and cairo on Linux
23 run: |
24 sudo apt-get update
25 sudo apt-get install gfortran libcairo2-dev
26
27 - name: Check gfortran version
28 run: gfortran --version
29
30 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
31 - uses: actions/checkout@v4
32
33 - name: get a copy of giza
34 run: git clone https://github.com/danieljprice/giza
35
36 - name: compile splash
37 run: make -j 4 SYSTEM=gfortran withgiza
38
39 - name: clean
40 run: make clean
41
42 - name: compile libexact
43 run: make -j 4 SYSTEM=gfortran libexact
44
45 - name: compile libread
46 run: make -j 4 SYSTEM=gfortran libread
47
48 - name: clean
49 run: make clean
50
51 - name: compile splash in single precision
52 run: make -j 4 SYSTEM=gfortran DOUBLEPRECISION=no withgiza
53
54 - name: clean
55 run: make clean
56
57 - name: compile splash with debug flags
58 run: make -j 4 SYSTEM=gfortran DEBUG=yes withgiza