|
@@ -14,6 +14,10 @@ inputs:
|
|
|
description: Update channel
|
|
|
required: false
|
|
|
default: 'stable'
|
|
|
+ architecture:
|
|
|
+ description: OBS build architecture
|
|
|
+ required: false
|
|
|
+ default: 'x64'
|
|
|
|
|
|
runs:
|
|
|
using: composite
|
|
@@ -71,6 +75,7 @@ runs:
|
|
|
Invoke-External msiexec /i $msiPath /qn /norestart
|
|
|
|
|
|
- name: Install rclone
|
|
|
+ if: inputs.architecture == 'x64'
|
|
|
shell: pwsh
|
|
|
run: |
|
|
|
choco install rclone --version=1.64.2 -y --no-progress
|
|
@@ -81,7 +86,15 @@ runs:
|
|
|
workload_identity_provider: ${{ inputs.gcpWorkloadIdentityProvider }}
|
|
|
service_account: ${{ inputs.gcpServiceAccountName }}
|
|
|
|
|
|
+ - name: Ensure previous build directory exists
|
|
|
+ if: inputs.architecture != 'x64'
|
|
|
+ shell: pwsh
|
|
|
+ run: |
|
|
|
+ . ${env:GITHUB_ACTION_PATH}\Ensure-Location.ps1
|
|
|
+ Ensure-Location "${{ github.workspace }}/old_builds"
|
|
|
+
|
|
|
- name: Download Previous Build
|
|
|
+ if: inputs.architecture == 'x64'
|
|
|
shell: pwsh
|
|
|
env:
|
|
|
RCLONE_GCS_ENV_AUTH: 'true'
|
|
@@ -111,7 +124,7 @@ runs:
|
|
|
run: |
|
|
|
. ${env:GITHUB_ACTION_PATH}\Invoke-External.ps1
|
|
|
$boufArgs = @(
|
|
|
- "--config", "${env:GITHUB_ACTION_PATH}/config.toml",
|
|
|
+ "--config", "${env:GITHUB_ACTION_PATH}/config_${{ inputs.architecture }}.toml"
|
|
|
"--version", "${{ inputs.version }}"
|
|
|
"--branch", "${{ inputs.channel }}"
|
|
|
"-i", "${{ github.workspace }}/build"
|
|
@@ -122,6 +135,7 @@ runs:
|
|
|
Invoke-External "${{ github.workspace }}\bouf\bin\bouf.exe" @boufArgs
|
|
|
|
|
|
- name: Sync Latest Build
|
|
|
+ if: inputs.architecture == 'x64'
|
|
|
shell: pwsh
|
|
|
env:
|
|
|
RCLONE_INCLUDE: '**/${{ inputs.version }}/**'
|
|
@@ -131,6 +145,7 @@ runs:
|
|
|
rclone sync --delete-excluded --transfers 100 "${{ github.workspace }}/old_builds" ":gcs:obs-latest/${{ inputs.channel }}"
|
|
|
|
|
|
- name: Upload Build to Archive
|
|
|
+ if: inputs.architecture == 'x64'
|
|
|
shell: pwsh
|
|
|
env:
|
|
|
RCLONE_GCS_ENV_AUTH: 'true'
|