Skip to content

Commit

Permalink
Merge pull request #16 from secondlife/signal/platform
Browse files Browse the repository at this point in the history
Add plaform option
  • Loading branch information
bennettgoble authored Oct 7, 2022
2 parents 0bfa08b + 1dfffc2 commit 788a554
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ inputs:
cygwin-packages:
type: string
description: Additional cygwin packages to install
platform:
type: string
description: Autobuild platform
configuration:
type: string
description: Autobuild configuration

outputs:
package-name:
Expand Down Expand Up @@ -148,17 +154,18 @@ runs:
shell: ${{ steps.shell.outputs.shell }}
id: autobuild
env:
AUTOBUILD_VCS_INFO: "true"
AUTOBUILD_CONFIG_FILE: ${{ inputs.file }}
AUTOBUILD: autobuild # Expected by some 3p build scripts
AUTOBUILD_ADDRSIZE: ${{ inputs.addrsize }}
AUTOBUILD_CONFIG_FILE: ${{ inputs.file }}
AUTOBUILD_INSTALLABLE_CACHE: ${{ github.workspace }}/.autobuild-installables
AUTOBUILD_VARIABLES_FILE: ${{ github.workspace }}/.build-variables/variables
AUTOBUILD_VCS_INFO: "true"
BUILD_ID: ${{ inputs.build-id }}
CONFIGURATION: ${{ inputs.configuration }}
PLATFORM: ${{ inputs.platform }}
SHORT_SHA: ${{ steps.sha.outputs.short }}
WORKSPACE: ${{ github.workspace }}
WINDOWS: ${{ runner.os == 'Windows' }}
WORKSPACE: ${{ github.workspace }}
run: |
# Change into github.workspace, as cygwin shell places us in $HOME
cd "$WORKSPACE"
Expand All @@ -181,6 +188,10 @@ runs:
export AUTOBUILD_CONFIGURATION="$CONFIGURATION"
fi
if [[ ! -z "$PLATFORM" ]]; then
export AUTOBUILD_PLATFORM="$PLATFORM"
fi
autobuild install
autobuild configure ${{ inputs.configure-args }}
autobuild build --no-configure ${{ inputs.build-args }}
Expand Down

0 comments on commit 788a554

Please sign in to comment.