Skip to content

Commit

Permalink
Github Action cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
SRWieZ committed Sep 7, 2024
1 parent ee3aab8 commit 9ca3145
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 27 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-linux-arm-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
uses: actions/cache@v3
with:
path: build/
key: build-deps-php-${{ env.COMPILE_PHP_VERSION }}-${{ runner.os }}
key: build-deps-php${{ env.COMPILE_PHP_VERSION }}-${{ runner.os }}-${{ runner.arch }}

- name: Get composer cache directory
id: composer-cache
Expand All @@ -56,13 +56,13 @@ jobs:

- if: ${{ github.event_name == 'workflow_dispatch' }}
name: Upload binaries
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.BINARY_NAME }}
path: build/bin/${{ env.BINARY_NAME }}

- if: ${{ github.event_name != 'workflow_dispatch' }}
name: Upload binaries to release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: build/bin/${{ env.BINARY_NAME }}
6 changes: 3 additions & 3 deletions .github/workflows/build-linux-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: actions/cache@v3
with:
path: build/
key: build-deps-php-${{ env.COMPILE_PHP_VERSION }}-${{ runner.os }}
key: build-deps-php${{ env.COMPILE_PHP_VERSION }}-${{ runner.os }}-${{ runner.arch }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -56,13 +56,13 @@ jobs:

- if: ${{ github.event_name == 'workflow_dispatch' }}
name: Upload binaries
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.BINARY_NAME }}
path: build/bin/${{ env.BINARY_NAME }}

- if: ${{ github.event_name != 'workflow_dispatch' }}
name: Upload binaries to release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: build/bin/${{ env.BINARY_NAME }}
20 changes: 3 additions & 17 deletions .github/workflows/build-macos-arm-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
uses: actions/cache@v3
with:
path: build/
key: build-deps-php-${{ env.COMPILE_PHP_VERSION }}-${{ runner.os }}
key: build-deps-php${{ env.COMPILE_PHP_VERSION }}-${{ runner.os }}-${{ runner.arch }}

- name: Get composer cache directory
id: composer-cache
Expand All @@ -56,32 +56,18 @@ jobs:
- name: Composer install
run: composer install --prefer-dist --no-progress --optimize-autoloader

# - id: cache-download
# name: Cached source download
# uses: actions/cache@v3
# with:
# path: downloads
# key: php-${{ env.COMPILE_PHP_VERSION }}-dependencies
#
# - if: steps.cache-download.outputs.cache-hit != 'true'
# name: Fetch php and extensions sources
# run: ./bin/spc download --with-php=${{ env.COMPILE_PHP_VERSION }} --for-extensions=$COMPILE_EXTENSIONS
#
# - name: Build Micro
# run: ./bin/spc build $COMPILE_EXTENSIONS --build-micro

- name: Build Binary
run: ./build.sh --name "${{ env.BINARY_NAME }}"

- if: ${{ github.event_name == 'workflow_dispatch' }}
name: Upload binaries
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.BINARY_NAME }}
path: build/bin/${{ env.BINARY_NAME }}

- if: ${{ github.event_name != 'workflow_dispatch' }}
name: Upload binaries to release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: build/bin/${{ env.BINARY_NAME }}
6 changes: 3 additions & 3 deletions .github/workflows/build-macos-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
# uses: actions/cache@v3
# with:
# path: build/
# key: build-deps-php-${{ env.COMPILE_PHP_VERSION }}-${{ runner.os }}
# key: build-deps-php${{ env.COMPILE_PHP_VERSION }}-${{ runner.os }}-${{ runner.arch }}

- name: Get composer cache directory
id: composer-cache
Expand All @@ -63,13 +63,13 @@ jobs:

- if: ${{ github.event_name == 'workflow_dispatch' }}
name: Upload binaries
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.BINARY_NAME }}
path: build/bin/${{ env.BINARY_NAME }}

- if: ${{ github.event_name != 'workflow_dispatch' }}
name: Upload binaries to release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: build/bin/${{ env.BINARY_NAME }}
2 changes: 1 addition & 1 deletion .github/workflows/build-phar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ jobs:
run: composer box compile

- name: Upload phar to release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: build/bin/svgtinyps.phar

0 comments on commit 9ca3145

Please sign in to comment.