Skip to content

Commit

Permalink
Add job to build the executable
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 2, 2023
1 parent 8cdeabf commit d7b89c8
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,35 @@ jobs:

- name: Execute tests (Unit and Feature tests) via Pest
run: vendor/bin/pest

build-executable:
runs-on: ubuntu-latest
name: Build executable

steps:
- uses: actions/checkout@v3

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --no-interaction --no-progress --no-suggest --prefer-dist

- name: Get build version
id: build-version
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Build executable
run: php hyde standalone:build --build-version-suffix ${{ steps.build-version.outputs.sha_short }}

- name: Upload executable
uses: actions/upload-artifact@v3
with:
name: hyde
path: builds/hyde

0 comments on commit d7b89c8

Please sign in to comment.