|
80 | 80 | workspace.tar.gz |
81 | 81 | if-no-files-found: error |
82 | 82 |
|
83 | | - macos: |
84 | | - name: MacOS ${{ matrix.artifact-name }} |
85 | | - runs-on: ${{ matrix.image }} |
86 | | - strategy: |
87 | | - matrix: |
88 | | - include: |
89 | | - - target-name: mac-x86-64 |
90 | | - artifact-name: x86_64 |
91 | | - image: macos-15-intel |
92 | | - - target-name: mac-arm64 |
93 | | - artifact-name: arm64 |
94 | | - image: macos-15 |
95 | | - |
96 | | - steps: |
97 | | - - uses: actions/checkout@v5 |
98 | | - |
99 | | - - name: Install tools and dependencies |
100 | | - run: | |
101 | | - #workaround github actions default image providing outdated pkg-config |
102 | | - brew uninstall --ignore-dependencies --force pkg-config@0.29.2 || true |
103 | | - brew install libtool autoconf automake pkg-config bison re2c |
104 | | -
|
105 | | - - name: Prepare compile.sh download cache |
106 | | - id: download-cache |
107 | | - uses: actions/cache@v4 |
108 | | - with: |
109 | | - path: ./download_cache |
110 | | - key: compile-sh-cache-ssl-https-${{ hashFiles('./compile.sh') }} |
111 | | - restore-keys: compile-sh-cache-ssl-https- |
112 | | - |
113 | | - - name: Compile PHP |
114 | | - run: | |
115 | | - export PATH="/usr/local/opt/bison/bin:$PATH" |
116 | | - set -ex |
117 | | - trap "exit 1" ERR |
118 | | - ./compile.sh -t ${{ matrix.target-name }} -j4 -g -F -P ${{ inputs.pm-version-major }} -c ./download_cache -D -z ${{ inputs.php-version-base }} |
119 | | - |
120 | | - - name: Create tarball |
121 | | - run: | |
122 | | - tar -czf ./PHP-${{ inputs.php-version-base }}-MacOS-${{ matrix.artifact-name }}-PM${{ inputs.pm-version-major }}.tar.gz bin |
123 | | - tar -czf ./Z-PHP-${{ inputs.php-version-base }}-MacOS-${{ matrix.artifact-name }}-PM${{ inputs.pm-version-major }}-debugging-symbols.tar.gz bin-debug |
124 | | - |
125 | | - - name: Upload artifacts |
126 | | - uses: actions/upload-artifact@v5 |
127 | | - if: always() |
128 | | - with: |
129 | | - name: PHP-${{ inputs.php-version-base }}-MacOS-${{ matrix.artifact-name }}-PM${{ inputs.pm-version-major }} |
130 | | - path: | |
131 | | - ./*PHP-${{ inputs.php-version-base }}-MacOS-${{ matrix.artifact-name}}-PM${{ inputs.pm-version-major }}*.tar.gz |
132 | | - install.log |
133 | | - compile.sh |
134 | | - if-no-files-found: error |
135 | | - |
136 | | - - name: Prepare workspace for upload |
137 | | - if: failure() |
138 | | - run: tar -czf workspace.tar.gz install_data |
139 | | - |
140 | | - - name: Upload workspace |
141 | | - uses: actions/upload-artifact@v5 |
142 | | - if: failure() |
143 | | - with: |
144 | | - name: PHP-${{ inputs.php-version-base }}-MacOS-${{ matrix.artifact-name }}-workspace-PM${{ inputs.pm-version-major }} |
145 | | - path: | |
146 | | - workspace.tar.gz |
147 | | - if-no-files-found: error |
148 | | - |
149 | 83 | windows: |
150 | 84 | name: Windows |
151 | 85 | runs-on: windows-2022 |
|
0 commit comments