-
-
Notifications
You must be signed in to change notification settings - Fork 15
30 lines (29 loc) · 1.13 KB
/
compile-tests.yml
File metadata and controls
30 lines (29 loc) · 1.13 KB
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
on: [push]
jobs:
test:
if: "!contains(github.event.head_commit.message, 'skip ci')"
name: ${{ matrix.os }} ${{ matrix.phpv }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: ["centos:7", "ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04", "debian:9", "debian:10", "debian:11"]
phpv: ["PHP 5.6.40", "PHP 7.0.33", "PHP 7.1.33", "PHP 7.2.34", "PHP 7.3.33", "PHP 7.4.33", "PHP 8.0.30", "PHP 8.1.25", "PHP 8.2.12"]
steps:
- name: checkout
uses: actions/checkout@v3
- name: Runner CPU Info
run: cat /proc/cpuinfo
- name: Shellcheck analysis
run: |
sudo apt-get install -y shellcheck
shellcheck versions.sh
shellcheck -x php-compiler.sh
- name: Build
run: |
phpvs="${{ matrix.phpv }}"
phpvs="php${phpvs:4:1}${phpvs:6:1}"
echo ${{ matrix.os }}
echo $phpvs
sed -e "s/&&OS&&/${{ matrix.os }}/g" ./Dockerfile.actions | sed -e "s:&&PHPVL&&:${{ matrix.phpv }}:g" | sed -e "s:&&PHPVS&&:${phpvs}:g" | tee Dockerfile
docker build -t sergix44/ispc-phpcompiler .