forked from MapServer/MapServer
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (46 loc) · 1.33 KB
/
build-mapscript-php.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Build and test PHP MapScript
on:
push:
branches:
- '*'
except:
- /^(cherry-pick-)?backport-\d+-to-/
pull_request:
branches:
- '*'
except:
- /^(cherry-pick-)?backport-\d+-to-/
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
php-version: [8.3, 8.2]
env:
IGNORE_COMPARISON_RESULT_ON_CI: 'true'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Setup PHP
run: |
# for pre-installed software see
# https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2004-Readme.md
# both swig and php are included, so removed these
sudo apt-get -qq remove "php*-cli" "php*-dev"
sudo apt-get -qq remove "swig*"
sudo add-apt-repository ppa:ondrej/php -y
sudo apt-get -qq update
sudo apt-get -qq install php${{ matrix.php-version }}-cli php${{ matrix.php-version }}-dev
- name: Install dependencies
run: ./ci/ubuntu/setup.sh
- name: Build
run: ./ci/ubuntu/build.sh