55 lines
1.5 KiB
YAML
55 lines
1.5 KiB
YAML
name: Build
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
push:
|
|
branches: ["actions"]
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
os: [windows-2019, macos-11]
|
|
configuration: [RelWithDebInfoOS]
|
|
addrsize: [64]
|
|
include:
|
|
- os: windows-2019
|
|
configuration: RelWithDebInfoOS
|
|
addrsize: 32
|
|
runs-on: ${{ matrix.os }}
|
|
env:
|
|
AUTOBUILD_CONFIGURATION: ${{ matrix.configuration }}
|
|
AUTOBUILD_ADDRSIZE: ${{ matrix.addrsize }}
|
|
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
|
|
path: .build-variables
|
|
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: 3.x
|
|
|
|
- name: Install autobuild
|
|
run: pip install autobuild
|
|
|
|
- uses: actions/cache@v3
|
|
id: cache-installables
|
|
with:
|
|
path: .autobuild-installables
|
|
key: ${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.configuration }}-${{ hashFiles('autobuild.xml') }}
|
|
|
|
- name: Install autobuild packages
|
|
run: autobuild install -c ${{ matrix.configuration }}
|
|
|
|
- name: Build
|
|
run: |
|
|
autobuild configure -c ${{ matrix.configuration }}
|
|
autobuild build --no-configure
|