Skip to content

Commit

Permalink
Install haulable, and create github workflow for building phar and ex…
Browse files Browse the repository at this point in the history
…ecutables
  • Loading branch information
Kathryn Anne S Tan committed May 2, 2024
1 parent e7e7285 commit 6521181
Show file tree
Hide file tree
Showing 4 changed files with 333 additions and 229 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Run Builds

on: [push]

jobs:
tests:
name: Run Builds
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
coverage: none

- name: Run composer install
run: composer install -n --prefer-dist

- name: Run phar build
run: php dockerfile-laravel app:build dockerfile-laravel --build-version=1.0.4

- name: Run windows builds
run: vendor/bin/haulable builds/dockerfile-laravel --platform="All Platforms"

- name: Check files created
run: ls -l

- name: Move builds into the builds folder
run: mv windows_x64 builds/windows_x64
File renamed without changes.
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
"email": "[email protected]"
}
],
"require": {},
"require-dev": {
"configured/haulable": "^0.4.0",
"illuminate/view": "^10.0",
"laravel-zero/framework": "^10.2",
"laravel/pint": "^1.13",
"mockery/mockery": "^1.6",
"nunomaduro/termwind": "^1.15.1",
"pestphp/pest": "^2.22",
"illuminate/view": "^10.0",
"laravel-zero/framework": "^10.2",
"phpspec/php-diff": "^1.1",
"nunomaduro/termwind": "^1.15.1"
"phpspec/php-diff": "^1.1"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 6521181

Please sign in to comment.