diff options
| author | BeF | 2022-07-20 12:15:07 +0200 |
|---|---|---|
| committer | GitHub | 2022-07-20 12:15:07 +0200 |
| commit | 2aed4220c2d019cc9b46fec70cfd79d249498e14 (patch) | |
| tree | e7cc3d1d4db617fc5ab1dbcc60f2366407eb5da5 /.github | |
| parent | 72109c9bf016145364b19162a5ff998fc5858a9c (diff) | |
| parent | 75595945d1d868fbd6db743809ca8a3eb5de3113 (diff) | |
Merge pull request #1 from jvoisin/pr1
pr for fetching upstream
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/distributions_php7.yml | 25 | ||||
| -rw-r--r-- | .github/workflows/release.yml | 71 |
2 files changed, 71 insertions, 25 deletions
diff --git a/.github/workflows/distributions_php7.yml b/.github/workflows/distributions_php7.yml index 12fa207..60eedd2 100644 --- a/.github/workflows/distributions_php7.yml +++ b/.github/workflows/distributions_php7.yml | |||
| @@ -94,28 +94,3 @@ jobs: | |||
| 94 | if: ${{ failure() }} | 94 | if: ${{ failure() }} |
| 95 | run: | | 95 | run: | |
| 96 | grep -r . --include='*.log' src/tests | 96 | grep -r . --include='*.log' src/tests |
| 97 | |||
| 98 | alpine: | ||
| 99 | runs-on: ubuntu-latest | ||
| 100 | container: alpine:latest | ||
| 101 | steps: | ||
| 102 | - name: Checkout code | ||
| 103 | uses: actions/checkout@v2 | ||
| 104 | - name: Remove php8 tests for php7 | ||
| 105 | run: rm -rf src/tests/*php8*/ src/tests/*/*_php8.phpt | ||
| 106 | - name: Remove tests failing on alpine for wathever reason | ||
| 107 | run: rm -rf src/tests/cookies_encryption_warning src/tests/upload_validation/upload_validation.phpt /tests/broken_configuration/encrypt_regexp_cookies_bad_regexp.phpt | ||
| 108 | - name: Install dependencies | ||
| 109 | run: apk add php7-dev php7-cgi php7-simplexml php7-xml pcre-dev build-base php7-pear php7-openssl php7-session bash grep re2c | ||
| 110 | - name: Install pecl | ||
| 111 | continue-on-error: true | ||
| 112 | run: pecl install vld-beta | ||
| 113 | - name: Build SP and run the testsuite | ||
| 114 | run: | | ||
| 115 | make release | ||
| 116 | ln -s $(php -r 'echo ini_get("extension_dir");')/* src/modules/ | ||
| 117 | make tests | ||
| 118 | - name: Show logs in case of failure | ||
| 119 | if: ${{ failure() }} | ||
| 120 | run: | | ||
| 121 | grep -r . --include='*.log' src/tests | ||
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..6d8d3d7 --- /dev/null +++ b/.github/workflows/release.yml | |||
| @@ -0,0 +1,71 @@ | |||
| 1 | name: Release Builder | ||
| 2 | on: | ||
| 3 | push: | ||
| 4 | branches: | ||
| 5 | - "release-*" | ||
| 6 | tags: | ||
| 7 | - "v*" | ||
| 8 | pull_request: | ||
| 9 | branches: | ||
| 10 | - "release-*" | ||
| 11 | |||
| 12 | jobs: | ||
| 13 | build-deb: | ||
| 14 | runs-on: ubuntu-latest | ||
| 15 | name: ${{ matrix.name }} | ||
| 16 | container: ${{ matrix.container }} | ||
| 17 | strategy: | ||
| 18 | fail-fast: false | ||
| 19 | matrix: | ||
| 20 | name: | ||
| 21 | [ | ||
| 22 | "debian-buster", | ||
| 23 | "debian-stretch", | ||
| 24 | "debian-bullseye", | ||
| 25 | "debian-sid", | ||
| 26 | "debian-bookworm", | ||
| 27 | "ubuntu-bionic", | ||
| 28 | "ubuntu-focal", | ||
| 29 | "ubuntu-jammy", | ||
| 30 | "ubuntu-impish", | ||
| 31 | ] | ||
| 32 | include: | ||
| 33 | - name: debian-buster | ||
| 34 | container: debian:buster | ||
| 35 | - name: debian-stretch | ||
| 36 | container: debian:stretch | ||
| 37 | - name: debian-bullseye | ||
| 38 | container: debian:bullseye | ||
| 39 | - name: debian-sid | ||
| 40 | container: debian:sid | ||
| 41 | - name: debian-bookworm | ||
| 42 | container: debian:bookworm | ||
| 43 | - name: ubuntu-bionic | ||
| 44 | container: ubuntu:bionic | ||
| 45 | - name: ubuntu-focal | ||
| 46 | container: ubuntu:focal | ||
| 47 | - name: ubuntu-jammy | ||
| 48 | container: ubuntu:jammy | ||
| 49 | - name: ubuntu-impish | ||
| 50 | container: ubuntu:impish | ||
| 51 | steps: | ||
| 52 | - name: Checkout code | ||
| 53 | uses: actions/checkout@v2 | ||
| 54 | - name: Set timezone | ||
| 55 | if: startsWith(matrix.container, 'ubuntu:') | ||
| 56 | run: ln -snf /usr/share/zoneinfo/Europe/Paris /etc/localtime && echo Europe/Paris > /etc/timezone | ||
| 57 | - name: Update OS | ||
| 58 | run: apt-get -qqy update | ||
| 59 | - name: Install deps | ||
| 60 | run: DEBIAN_FRONTEND=noninteractive apt-get -qqy --no-install-recommends install fakeroot php-xml php-curl dpkg-dev gcc make libpcre3-dev dh-php php-dev build-essential | ||
| 61 | - name: Build debs | ||
| 62 | run: DPKG_SKIP_TESTS=1 dpkg-buildpackage -i -us -uc -tc -I -rfakeroot | ||
| 63 | - name: Move built debs and rename | ||
| 64 | run: | | ||
| 65 | mv -v ../*.deb ./ | ||
| 66 | ls *.deb | xargs -I % mv -v % ${{ matrix.name }}-% | ||
| 67 | - name: Upload artifacts | ||
| 68 | uses: actions/upload-artifact@v3 | ||
| 69 | with: | ||
| 70 | name: snuffleupagus-${{ matrix.name }} | ||
| 71 | path: ./*.deb | ||
