Modular logistics and supply chain operating system (LSOS)
JavaScript driver-appfleet-managementfreight-managementinfrastructureinventory-managementlast-mile-deliverylogisticsondemandopen-sourceorder-managementroute-optimizationsupply-chain-managementtracking-and-monitoringtransport-management-systemtransportationwarehouse-management
fixed upload to only run on release workflow, debug macos build on runer
Ronald A. Richardsonf04807de1ef8
diff --git a/.github/workflows/build-binaries.yml b/.github/workflows/build-binaries.ymlindex 39f569ae..91e46823 100644--- a/.github/workflows/build-binaries.yml+++ b/.github/workflows/build-binaries.yml@@ -19,21 +19,20 @@ jobs:steps:- uses: actions/checkout@v3-# - name: Build Linux binary# run: |# chmod +x ./builds/linux/build-linux.sh# ./builds/linux/build-linux.sh-- # - name: Upload Linux binary- # uses: softprops/action-gh-release@v2- # with:- # tag_name: ${{ github.event.workflow_run.head_branch }}- # files: |- # ${{ env.DIST_DIR }}/fleetbase-linux-x86_64- # draft: false- # env:- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ - name: Upload Linux binary+ if: github.event_name == 'workflow_run'+ uses: softprops/action-gh-release@v2+ with:+ tag_name: ${{ github.event.workflow_run.head_branch }}+ files: |+ ${{ env.DIST_DIR }}/fleetbase-linux-x86_64+ draft: false+ env:+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}build-macos:name: macOS (ARM64) Build@@ -42,20 +41,18 @@ jobs:steps:- uses: actions/checkout@v3-- name: Install build dependenciesrun: |brew updatebrew install autoconf automake coreutils asdf [email protected]source "$(brew --prefix asdf)/libexec/asdf.sh"asdf plugin add php https://github.com/asdf-community/asdf-php.git-- name: Build macOS binaryrun: |chmod +x ./builds/osx/build-osx.sh./builds/osx/build-osx.sh-- name: Upload Linux binary+ if: github.event_name == 'workflow_run'uses: softprops/action-gh-release@v2with:tag_name: ${{ github.event.workflow_run.head_branch }}diff --git a/builds/osx/build-osx.sh b/builds/osx/build-osx.shindex 05eec31f..860e0560 100755--- a/builds/osx/build-osx.sh+++ b/builds/osx/build-osx.sh@@ -166,11 +166,17 @@ sed -i '' 's/^[[:space:]]*git pull/# git pull/' "$OSX_DIR/frankenphp/build-statised -i '' 's/-framework CoreFoundation -framework SystemConfiguration/& -framework CoreServices/' "$OSX_DIR/frankenphp/build-static.sh"# ── work around 403 on GH macOS runners ────────────────────────────────────────-log "Patching curl to use a browser-like User-Agent (to avoid 403s)…"-curl() {- command curl -sSL -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6 Safari/605.1.15" "$@"-}-export -f curl+log "Installing curl-wrapper to avoid 403s…"+mkdir -p "$HOME/bin"+cat << 'EOF' >"$HOME/bin/curl"+#!/usr/bin/env bash+# wrap system curl and force a browser UA+exec /usr/bin/curl -fsSL -A \+"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 \+(KHTML, like Gecko) Version/15.6 Safari/605.1.15" "$@"+EOF+chmod +x "$HOME/bin/curl"+export PATH="$HOME/bin:$PATH"# Build the binarylog "⚙️ Running FrankenPHP build-static.sh..."