File: test-build.yml

package info (click to toggle)
xastir 2.2.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,860 kB
  • sloc: ansic: 126,160; perl: 7,792; makefile: 448; sh: 228; sql: 102
file content (121 lines) | stat: -rw-r--r-- 3,870 bytes parent folder | download
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
name: Test Builds

on:
  push:
    branches: [ "master" ]
  pull_request:
    branches: [ "master" ]
  workflow_dispatch:

jobs:
  basic-ubuntu-build:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v4
    - name: Update Packages
      run: sudo apt-get update
    - name: Install Packages
      run: sudo apt-get install -y build-essential xorg-dev graphicsmagick libgraphicsmagick1-dev libmotif-dev libcurl4-openssl-dev libpcre2-dev libdb-dev shapelib libshp-dev libxpm-dev
    - name: Bootstrap
      run: ./bootstrap.sh
    - name: configure
      run: ./configure CPPFLAGS="-I/usr/include/geotiff"
    - name: make
      run: make
    - name: make install
      run: sudo make install

  full-ubuntu-build:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v4
    - name: Update Packages
      run: sudo apt-get update
    - name: Install Packages
      run: sudo apt-get install -y build-essential xorg-dev graphicsmagick libgraphicsmagick1-dev libmotif-dev libcurl4-openssl-dev libpcre2-dev libdb-dev shapelib libshp-dev libxpm-dev libproj-dev festival festival-dev libgeotiff-dev gpsman gpsmanshp libcjson1 libcjson-dev wget
    - name: Bootstrap (with autoreconf)
      run: autoreconf -i
    - name: configure
      run: ./configure CPPFLAGS="-I/usr/include/geotiff"
    - name: make
      run: make
    - name: make check
      run: make check
    - name: make install
      run: sudo make install
    - name: get NWS data
      run:  sudo /usr/local/share/xastir/scripts/get-NWSdata

  macos-build:
    runs-on: macos-latest
    steps:
    - uses: actions/checkout@v4
    - name: Install XQuartz
      run: brew install xquartz --cask
    - name: Install Packages
      run: brew install autoconf automake libtool berkeley-db graphicsmagick libgeotiff openmotif pcre proj shapelib cjson
    - name: Bootstrap
      run: ./bootstrap.sh
    - name: configure
      run: ./configure CPPFLAGS="-I/usr/include/geotiff -I/opt/homebrew/include -I/opt/homebrew/opt/berkeley-db/include" "LDFLAGS=-L/opt/homebrew/lib -L/opt/homebrew/opt/berkeley-db/lib"
    - name: make
      run: make
    - name: make check
      run: make check
    - name: make install
      run: sudo make install

  freebsd-build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - name: Set-up VM
      uses: vmactions/freebsd-vm@v1
      with:
        sync: nfs
        usesh: true
        prepare: |
          pkg install -y devel/autoconf devel/automake devel/shapelib devel/pcre2 graphics/GraphicsMagick graphics/libgeotiff ftp/curl databases/db18 lang/gcc13 x11-toolkits/open-motif audio/festival devel/libcjson lang/gcc14
    - name: Bootstrap
      shell: freebsd {0}
      run: |
        cd $GITHUB_WORKSPACE
        autoreconf -i
    - name: configure out-of-source gcc13
      shell: freebsd {0}
      run: |
        cd $GITHUB_WORKSPACE
        cd ..
        mkdir build
        cd build
        ../Xastir/configure --with-bdb-incdir=/usr/local/include/db18 --with-bdb-libdir=/usr/local/lib CFLAGS="-O2 -g" CC=gcc13 CXX=g++13
    - name: configure out-of-source gcc14
      shell: freebsd {0}
      run: |
        cd $GITHUB_WORKSPACE
        cd ..
        mkdir build-gcc14
        cd build-gcc14
        ../Xastir/configure --with-bdb-incdir=/usr/local/include/db18 --with-bdb-libdir=/usr/local/lib CFLAGS="-O2 -g" CC=gcc13 CXX=g++14
    - name: make gcc13
      shell: freebsd {0}
      run: |
        cd $GITHUB_WORKSPACE/../build
        make
    - name: make gcc14
      shell: freebsd {0}
      run: |
        cd $GITHUB_WORKSPACE/../build-gcc14
        make
    - name: make check gcc13
      shell: freebsd {0}
      run: |
        cd $GITHUB_WORKSPACE/../build
        make check
    - name: make check gcc14
      shell: freebsd {0}
      run: |
        cd $GITHUB_WORKSPACE/../build-gcc14
        make check