summaryrefslogtreecommitdiff
path: root/.github/workflows/build.yaml
diff options
context:
space:
mode:
authorSignal Linden <signal@lindenlab.com>2022-10-10 09:33:04 -0700
committerSignal Linden <signal@lindenlab.com>2022-10-10 09:33:04 -0700
commit5b4846046bb0700d749f017916e1d34294d830e0 (patch)
tree78195b29c58e854535bad8f618bfb5e5766ddf4c /.github/workflows/build.yaml
parentf83289d3a7e80bebe47f696f96aee1b7e64d1d69 (diff)
Add build action
Diffstat (limited to '.github/workflows/build.yaml')
-rw-r--r--.github/workflows/build.yaml53
1 files changed, 53 insertions, 0 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
new file mode 100644
index 0000000000..7ba97b6d53
--- /dev/null
+++ b/.github/workflows/build.yaml
@@ -0,0 +1,53 @@
+name: Build
+
+on:
+ workflow_dispatch:
+ pull_request:
+ push:
+ branches: ["actions"]
+
+jobs:
+ build:
+ strategy:
+ matrix:
+ os: [windows-2019, macos-11]
+ configuration: [RelWithDebInfoOS]
+ arch: [64]
+ include:
+ - os: windows-2019
+ configuration: RelWithDebInfoOS
+ arch: 32
+ runs-on: ${{ matrix.os }}
+ env:
+ AUTOBUILD_ADDRSIZE: ${{ matrix.arch }}
+ AUTOBUILD_INSTALLABLE_CACHE: ${{ github.workspace }}/.autobuild-installables
+ AUTOBUILD_VARIABLES_FILE: ${{ github.workspace }}/.build-variables/variables
+ steps:
+ - uses: actions/checkout@v3
+
+ - uses: actions/checkout@v3
+ with:
+ repository: secondlife/build-variables
+ ref: viewer
+ token: ${{ secrets.SHARED_GITHUB_TOKEN }}
+ path: .build-variables
+
+ - uses: actions/setup-python@v4
+ with:
+ python-version: 3.x
+
+ - name: Install autobuild
+ run: pip install autobuild<4
+
+ - uses: actions/cache@v3
+ id: cache-installables
+ with:
+ path: .autobuild-installables
+ key: ${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.configuration }}-${{ hashFiles('autobuild.xml') }}
+
+ - name: Build
+ shell: bash
+ run: |
+ autobuild install
+ autobuild configure -c ${{ matrix.configuration }}
+ autobuild build --no-configure