Skip to content

Commit

Permalink
Utilize shivammathur/setup-php to install Relay extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ostrolucky committed Jan 27, 2023
1 parent aee156d commit dd0a737
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,9 @@ jobs:
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
extensions: "${{ matrix.php-extensions }}"
extensions: "${{ matrix.php-extensions }},relay-dev"
ini-values: "zend.assertions=1, max_execution_time=30"

- name: "Install Relay"
run: |
curl -L "https://builds.r2.relay.so/dev/relay-dev-php${{ matrix.php-version }}-debian-x86-64.tar.gz" | tar xz
cd relay-dev-php${{ matrix.php-version }}-debian-x86-64
sudo cp relay.ini $(php-config --ini-dir)
sudo cp relay-pkg.so $(php-config --extension-dir)/relay.so
sudo sed -i "s/00000000-0000-0000-0000-000000000000/$(cat /proc/sys/kernel/random/uuid)/" $(php-config --extension-dir)/relay.so
- name: "Install symfony/flex"
run: "composer require --no-progress --no-scripts --no-plugins symfony/flex"

Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,9 @@ jobs:
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
extensions: "relay"
php-version: "7.4"

- name: "Install Relay"
run: |
curl -L "https://builds.r2.relay.so/dev/relay-dev-php7.4-debian-x86-64.tar.gz" | tar xz
cd relay-dev-php7.4-debian-x86-64
sudo cp relay.ini $(php-config --ini-dir)
sudo cp relay-pkg.so $(php-config --extension-dir)/relay.so
sudo sed -i "s/00000000-0000-0000-0000-000000000000/$(cat /proc/sys/kernel/random/uuid)/" $(php-config --extension-dir)/relay.so
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"

Expand Down

0 comments on commit dd0a737

Please sign in to comment.