-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #309 from pact-foundation/arm64_ruby
Feat: ARM64 Support for OSX / Linux + Windows 32 bit support
- Loading branch information
Showing
5 changed files
with
67 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
BUILD_TEST_TASK_TEMPLATE: &BUILD_TEST_TASK_TEMPLATE | ||
arch_check_script: | ||
- uname -am | ||
test_script: | ||
- composer install | ||
- composer run lint | ||
- composer run static-code-analysis | ||
- composer test | ||
|
||
linux_arm64_task: | ||
env: | ||
COMPOSER_ALLOW_SUPERUSER: 1 | ||
matrix: | ||
- IMAGE: php:8.2 | ||
- IMAGE: php:8.1 | ||
- IMAGE: php:8.0 | ||
container: | ||
image: $IMAGE | ||
pre_req_script: | ||
- apt update --yes && apt install --yes zip unzip git libyaml-dev | ||
- curl -sS https://getcomposer.org/installer -o /tmp/composer-setup.php | ||
- php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer | ||
- docker-php-ext-install sockets | ||
version_check_script: | ||
- php --version | ||
<< : *BUILD_TEST_TASK_TEMPLATE | ||
|
||
macos_arm64_task: | ||
# https://www.markhesketh.com/switching-multiple-php-versions-on-macos/ | ||
env: | ||
matrix: | ||
- VERSION: 8.2 | ||
- VERSION: 8.1 | ||
- VERSION: 8.0 | ||
macos_instance: | ||
image: ghcr.io/cirruslabs/macos-ventura-base:latest | ||
pre_req_script: | ||
- brew install php@$VERSION composer | ||
version_check_script: | ||
- php --version | ||
<< : *BUILD_TEST_TASK_TEMPLATE | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name: pact-php | ||
|
||
on: | ||
push: | ||
push: | ||
pull_request: | ||
# Once on the first of the month at 06:00 UTC | ||
schedule: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters