- Added an extra README file detailing what the scripts are for - The scripts now display a warning and a prompt before requiring user confirmation to continue - The system install commands are only executed in CI environments (ninja and cmake being installed as root without checking for the environment was a leftover from a previous non-GitHub based CI setup)
67 lines
1.5 KiB
YAML
67 lines
1.5 KiB
YAML
name: Presubmit
|
|
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
build-desktop:
|
|
name: build-desktop
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
matrix:
|
|
os: [macos-latest, ubuntu-latest]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2.0.0
|
|
- name: Run build script
|
|
run: |
|
|
WORKFLOW_OS=`echo \`uname\` | sed "s/Darwin/mac/" | tr [:upper:] [:lower:]`
|
|
cd build/$WORKFLOW_OS && printf "y" | ./build.sh presubmit
|
|
- name: Test material parser
|
|
run: |
|
|
out/cmake-release/filament/test/test_material_parser
|
|
|
|
build-windows:
|
|
name: build-windows
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2.0.0
|
|
- name: Run build script
|
|
run: |
|
|
build\windows\build-github.bat presubmit
|
|
shell: cmd
|
|
|
|
build-android:
|
|
name: build-android
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2.0.0
|
|
- name: Run build script
|
|
run: |
|
|
cd build/android && printf "y" | ./build.sh presubmit
|
|
|
|
build-ios:
|
|
name: build-iOS
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2.0.0
|
|
- name: Run build script
|
|
run: |
|
|
cd build/ios && printf "y" | ./build.sh presubmit
|
|
- name: Build iOS samples
|
|
run: |
|
|
cd build/ios && ./build-samples.sh presubmit
|
|
|
|
build-web:
|
|
name: build-web
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2.0.0
|
|
- name: Run build script
|
|
run: |
|
|
cd build/web && printf "y" | ./build.sh presubmit
|