summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorSignal Linden <signal@lindenlab.com>2022-10-10 10:44:04 -0700
committerSignal Linden <signal@lindenlab.com>2022-10-10 10:44:04 -0700
commit82d76fc0a36d62ba34ce2b38b9e14a105c899066 (patch)
tree58e4ff9873217a6135f4e07ceadff0a7bf6d38d8 /.github
parent2e53204e774a24483653d8a4d4c31bff2d7a5f97 (diff)
Use cygwin
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yaml22
1 files changed, 21 insertions, 1 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index e2abb3ce7c..06aac0c8ab 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -35,6 +35,22 @@ jobs:
ref: viewer
path: .build-variables
+ - name: Install cygwin
+ if: runner.os == 'Windows'
+ uses: secondlife/setup-cygwin@v1
+
+ - name: Determine shell
+ id: shell
+ shell: bash
+ env:
+ WINDOWS: ${{ runner.os == 'Windows' }}
+ run: |
+ if [[ $WINDOWS == 'true' ]]; then
+ echo "::set-output name=shell::C:\cygwin64\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'"
+ else
+ echo '::set-output name=shell::bash'
+ fi
+
- name: Install autobuild
run: pip3 install autobuild
@@ -46,8 +62,12 @@ jobs:
key: ${{ matrix.os }}-${{ matrix.addrsize }}-${{ matrix.configuration }}-${{ hashFiles('autobuild.xml') }}
- name: Build
- shell: bash
+ shell: ${{ steps.shell.outputs.shell }}
+ env:
+ WORKSPACE: ${{ github.workspace }}
run: |
+ cd "$WORKSPACE"
+
autobuild --quiet source_environment > .env
source .env