-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added php dependencies into packages
- Loading branch information
Showing
4 changed files
with
58 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
|
||
# Runs the build based on the provided files in test.yml | ||
name: build | ||
name: build-native | ||
|
||
on: | ||
workflow_call: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
|
||
name: build-php-deps | ||
|
||
on: | ||
workflow_call: ~ | ||
workflow_dispatch: ~ | ||
|
||
jobs: | ||
build-php-deps: | ||
name: build-php-dependencies | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 300 | ||
strategy: | ||
fail-fast: false | ||
env: | ||
COMPOSER_ALLOW_SUPERUSER: 1 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build PHP dependencies | ||
run: | | ||
uname -a | ||
PHP_VERSIONS=( 80 81 82 83 ) | ||
for PHP_VERSION in "${PHP_VERSIONS[@]}" | ||
do | ||
mkdir -p "prod/php/vendor_${PHP_VERSION}" | ||
docker run --rm \ | ||
-v ${PWD}:/sources \ | ||
-v ${PWD}/prod/php/vendor_${PHP_VERSION}:/sources/vendor \ | ||
-w /sources \ | ||
php:${PHP_VERSION:0:1}.${PHP_VERSION:1:1}-cli sh -c "apt-get update && apt-get install -y unzip && curl -sS https://getcomposer.org/installer | php -- --filename=composer --install-dir=/usr/local/bin && composer --ignore-platform-req=ext-opentelemetry --ignore-platform-req=ext-otel_instrumentation --no-dev install" | ||
#TODO get licences from dependencies | ||
rm composer.lock | ||
done | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: php-dependencies | ||
path: | | ||
prod/php/vendor_* |
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