71 lines
2.1 KiB
YAML
71 lines
2.1 KiB
YAML
name: Build
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
push:
|
|
branches: ["actions"]
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
runner: [windows_2022_public]
|
|
configuration: [ReleaseOS]
|
|
addrsize: [64]
|
|
include:
|
|
- runner: windows_2022_public
|
|
configuration: ReleaseOS
|
|
addrsize: 32
|
|
runs-on: ${{ matrix.runner }}
|
|
env:
|
|
AUTOBUILD_CONFIGURATION: ${{ matrix.configuration }}
|
|
AUTOBUILD_ADDRSIZE: ${{ matrix.addrsize }}
|
|
AUTOBUILD_INSTALLABLE_CACHE: ${{ github.workspace }}/.autobuild-installables
|
|
AUTOBUILD_VARIABLES_FILE: ${{ github.workspace }}/.build-variables/variables
|
|
AUTOBUILD_VSVER: "170"
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Checkout build variables
|
|
uses: actions/checkout@v3
|
|
with:
|
|
repository: secondlife/build-variables
|
|
ref: viewer
|
|
path: .build-variables
|
|
|
|
- name: Install autobuild
|
|
run: pip3 install autobuild
|
|
|
|
- name: Cache autobuild packages
|
|
uses: actions/cache@v3
|
|
id: cache-installables
|
|
with:
|
|
path: .autobuild-installables
|
|
key: ${{ matrix.os }}-${{ matrix.addrsize }}-${{ matrix.configuration }}-${{ hashFiles('autobuild.xml') }}
|
|
|
|
- name: Install windows dependencies
|
|
if: runner.os == 'Windows'
|
|
run: choco install nsis-unicode
|
|
|
|
- name: Build
|
|
id: build
|
|
shell: bash
|
|
run: |
|
|
pip install llsd # Required by viewer tests
|
|
autobuild configure
|
|
autobuild build --no-configure
|
|
|
|
installer_path=$(find ./build-*/newview/ | grep '_Setup\.exe')
|
|
installer_name="$(basename $installer_path)"
|
|
echo "::set-output name=installer_path::$installer_path"
|
|
echo "::set-output name=installer_name::$installer_name"
|
|
|
|
- name: Upload installer
|
|
if: runner.os == 'Windows'
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: ${{ steps.build.outputs.installer_name }}
|
|
path: ${{ steps.build.outputs.installer_path }}
|