Fix Windows GHA Tests
The Windows tests job in Github Actions was incorrectly reporting 'success' on failed runs. This change ensures a single command is run in each test 'step' to help remove any guesswork w.r.t. the shell behavior on each platform. This change also takes the oppportunity to make the formatting more consistent in continuous_integration.yml.
This commit is contained in:
parent
e6fbb65699
commit
ffac211098
1 changed files with 283 additions and 288 deletions
571
.github/workflows/continuous_integration.yml
vendored
571
.github/workflows/continuous_integration.yml
vendored
|
|
@ -7,301 +7,296 @@
|
||||||
name: Continuous Integration
|
name: Continuous Integration
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
permissions: read-all
|
permissions: read-all
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linux:
|
linux:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
compiler: [{cc: clang, cxx: clang++}, {cc: gcc, cxx: g++}]
|
compiler: [{cc: clang, cxx: clang++}, {cc: gcc, cxx: g++}]
|
||||||
cmake_build_type: [Debug, Release]
|
cmake_build_type: [Debug, Release]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
- uses: lukka/get-cmake@8be6cca406b575906541e8e3b885d46f416bba39 # v3.27.7
|
- uses: lukka/get-cmake@8be6cca406b575906541e8e3b885d46f416bba39 # v3.27.7
|
||||||
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
|
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
|
||||||
with:
|
with:
|
||||||
python-version: '3.7'
|
python-version: '3.7'
|
||||||
- name: Setup ccache
|
- name: Setup ccache
|
||||||
uses: hendrikmuhs/ccache-action@6d1841ec156c39a52b1b23a810da917ab98da1f4 # v1.2.10
|
uses: hendrikmuhs/ccache-action@6d1841ec156c39a52b1b23a810da917ab98da1f4 # v1.2.10
|
||||||
with:
|
with:
|
||||||
key: ubuntu-22-${{ matrix.cmake_build_type }}-${{ matrix.compiler.cc }}-${{matrix.compiler.cxx}}
|
key: ubuntu-22-${{ matrix.cmake_build_type }}-${{ matrix.compiler.cc }}-${{matrix.compiler.cxx}}
|
||||||
- name: Install GoogleTest
|
- name: Install GoogleTest
|
||||||
run: |
|
run: |
|
||||||
# check out pre-breakage version of googletest; can be deleted when
|
# check out pre-breakage version of googletest; can be deleted when
|
||||||
# issue 3128 is fixed
|
# issue 3128 is fixed
|
||||||
# git clone --depth=1 https://github.com/google/googletest.git External/googletest
|
# git clone --depth=1 https://github.com/google/googletest.git External/googletest
|
||||||
mkdir -p External/googletest
|
mkdir -p External/googletest
|
||||||
cd External/googletest
|
cd External/googletest
|
||||||
git init
|
git init
|
||||||
git remote add origin https://github.com/google/googletest.git
|
git remote add origin https://github.com/google/googletest.git
|
||||||
git fetch --depth 1 origin 0c400f67fcf305869c5fb113dd296eca266c9725
|
git fetch --depth 1 origin 0c400f67fcf305869c5fb113dd296eca266c9725
|
||||||
git reset --hard FETCH_HEAD
|
git reset --hard FETCH_HEAD
|
||||||
cd ../..
|
cd ../..
|
||||||
- name: Update Glslang Sources
|
- name: Update Glslang Sources
|
||||||
run: ./update_glslang_sources.py
|
run: ./update_glslang_sources.py
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }}
|
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }}
|
||||||
env:
|
env:
|
||||||
CC: ${{matrix.compiler.cc}}
|
CC: ${{matrix.compiler.cc}}
|
||||||
CXX: ${{matrix.compiler.cxx}}
|
CXX: ${{matrix.compiler.cxx}}
|
||||||
CMAKE_GENERATOR: Ninja
|
CMAKE_GENERATOR: Ninja
|
||||||
CMAKE_C_COMPILER_LAUNCHER: ccache
|
CMAKE_C_COMPILER_LAUNCHER: ccache
|
||||||
CMAKE_CXX_COMPILER_LAUNCHER: ccache
|
CMAKE_CXX_COMPILER_LAUNCHER: ccache
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build build
|
run: cmake --build build
|
||||||
- name: Install
|
- name: Install
|
||||||
run: cmake --install build --prefix build/install
|
run: cmake --install build --prefix build/install
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: ctest --output-on-failure --test-dir build
|
||||||
cd build
|
- name: Test (standalone)
|
||||||
ctest --output-on-failure &&
|
run: cd Test && ./runtests
|
||||||
cd ../Test && ./runtests
|
|
||||||
|
|
||||||
linux-asan:
|
linux-asan:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
compiler: [{cc: gcc, cxx: g++}]
|
compiler: [{cc: gcc, cxx: g++}]
|
||||||
cmake_build_type: [Debug]
|
cmake_build_type: [Debug]
|
||||||
flags: ['-fsanitize=address', '-fsanitize=thread']
|
flags: ['-fsanitize=address', '-fsanitize=thread']
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
- uses: lukka/get-cmake@8be6cca406b575906541e8e3b885d46f416bba39 # v3.27.7
|
- uses: lukka/get-cmake@8be6cca406b575906541e8e3b885d46f416bba39 # v3.27.7
|
||||||
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
|
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
|
||||||
with:
|
with:
|
||||||
python-version: '3.7'
|
python-version: '3.7'
|
||||||
- name: Setup ccache
|
- name: Setup ccache
|
||||||
uses: hendrikmuhs/ccache-action@6d1841ec156c39a52b1b23a810da917ab98da1f4 # v1.2.10
|
uses: hendrikmuhs/ccache-action@6d1841ec156c39a52b1b23a810da917ab98da1f4 # v1.2.10
|
||||||
with:
|
with:
|
||||||
key: ubuntu-22-${{ matrix.cmake_build_type }}-${{ matrix.compiler.cc }}-${{matrix.compiler.cxx}}-${{matrix.flags}}
|
key: ubuntu-22-${{ matrix.cmake_build_type }}-${{ matrix.compiler.cc }}-${{matrix.compiler.cxx}}-${{matrix.flags}}
|
||||||
- name: Install GoogleTest
|
- name: Install GoogleTest
|
||||||
run: |
|
run: |
|
||||||
# check out pre-breakage version of googletest; can be deleted when
|
# check out pre-breakage version of googletest; can be deleted when
|
||||||
# issue 3128 is fixed
|
# issue 3128 is fixed
|
||||||
# git clone --depth=1 https://github.com/google/googletest.git External/googletest
|
# git clone --depth=1 https://github.com/google/googletest.git External/googletest
|
||||||
mkdir -p External/googletest
|
mkdir -p External/googletest
|
||||||
cd External/googletest
|
cd External/googletest
|
||||||
git init
|
git init
|
||||||
git remote add origin https://github.com/google/googletest.git
|
git remote add origin https://github.com/google/googletest.git
|
||||||
git fetch --depth 1 origin 0c400f67fcf305869c5fb113dd296eca266c9725
|
git fetch --depth 1 origin 0c400f67fcf305869c5fb113dd296eca266c9725
|
||||||
git reset --hard FETCH_HEAD
|
git reset --hard FETCH_HEAD
|
||||||
cd ../..
|
cd ../..
|
||||||
- name: Update Glslang Sources
|
- name: Update Glslang Sources
|
||||||
run: ./update_glslang_sources.py
|
run: ./update_glslang_sources.py
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }}
|
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }}
|
||||||
env:
|
env:
|
||||||
CC: ${{matrix.compiler.cc}}
|
CC: ${{matrix.compiler.cc}}
|
||||||
CXX: ${{matrix.compiler.cxx}}
|
CXX: ${{matrix.compiler.cxx}}
|
||||||
CMAKE_GENERATOR: Ninja
|
CMAKE_GENERATOR: Ninja
|
||||||
CMAKE_C_COMPILER_LAUNCHER: ccache
|
CMAKE_C_COMPILER_LAUNCHER: ccache
|
||||||
CMAKE_CXX_COMPILER_LAUNCHER: ccache
|
CMAKE_CXX_COMPILER_LAUNCHER: ccache
|
||||||
CFLAGS: ${{matrix.flags}}
|
CFLAGS: ${{matrix.flags}}
|
||||||
CXXFLAGS: ${{matrix.flags}}
|
CXXFLAGS: ${{matrix.flags}}
|
||||||
LDFLAGS: ${{matrix.flags}}
|
LDFLAGS: ${{matrix.flags}}
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build build
|
run: cmake --build build
|
||||||
- name: Install
|
- name: Install
|
||||||
run: cmake --install build --prefix build/install
|
run: cmake --install build --prefix build/install
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: ctest --output-on-failure --test-dir build
|
||||||
cd build
|
- name: Test (standalone)
|
||||||
ctest --output-on-failure &&
|
run: cd Test && ./runtests
|
||||||
cd ../Test && ./runtests
|
|
||||||
|
|
||||||
# Ensure we can compile/run on an older distro
|
# Ensure we can compile/run on an older distro
|
||||||
linux_min:
|
linux_min:
|
||||||
name: Linux Backcompat
|
name: Linux Backcompat
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
|
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
|
||||||
with:
|
with:
|
||||||
python-version: '3.7'
|
python-version: '3.7'
|
||||||
- uses: lukka/get-cmake@8be6cca406b575906541e8e3b885d46f416bba39 # v3.27.7
|
- uses: lukka/get-cmake@8be6cca406b575906541e8e3b885d46f416bba39 # v3.27.7
|
||||||
with:
|
with:
|
||||||
cmakeVersion: 3.17.2
|
cmakeVersion: 3.17.2
|
||||||
- name: Setup ccache
|
- name: Setup ccache
|
||||||
uses: hendrikmuhs/ccache-action@6d1841ec156c39a52b1b23a810da917ab98da1f4 # v1.2.10
|
uses: hendrikmuhs/ccache-action@6d1841ec156c39a52b1b23a810da917ab98da1f4 # v1.2.10
|
||||||
with:
|
with:
|
||||||
key: linux_backcompat
|
key: linux_backcompat
|
||||||
- name: Install GoogleTest
|
- name: Install GoogleTest
|
||||||
run: |
|
run: |
|
||||||
# check out pre-breakage version of googletest; can be deleted when
|
# check out pre-breakage version of googletest; can be deleted when
|
||||||
# issue 3128 is fixed
|
# issue 3128 is fixed
|
||||||
# git clone --depth=1 https://github.com/google/googletest.git External/googletest
|
# git clone --depth=1 https://github.com/google/googletest.git External/googletest
|
||||||
mkdir -p External/googletest
|
mkdir -p External/googletest
|
||||||
cd External/googletest
|
cd External/googletest
|
||||||
git init
|
git init
|
||||||
git remote add origin https://github.com/google/googletest.git
|
git remote add origin https://github.com/google/googletest.git
|
||||||
git fetch --depth 1 origin 0c400f67fcf305869c5fb113dd296eca266c9725
|
git fetch --depth 1 origin 0c400f67fcf305869c5fb113dd296eca266c9725
|
||||||
git reset --hard FETCH_HEAD
|
git reset --hard FETCH_HEAD
|
||||||
cd ../..
|
cd ../..
|
||||||
- name: Update Glslang Sources
|
- name: Update Glslang Sources
|
||||||
run: ./update_glslang_sources.py
|
run: ./update_glslang_sources.py
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Release
|
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Release
|
||||||
env:
|
env:
|
||||||
CMAKE_C_COMPILER_LAUNCHER: ccache
|
CMAKE_C_COMPILER_LAUNCHER: ccache
|
||||||
CMAKE_CXX_COMPILER_LAUNCHER: ccache
|
CMAKE_CXX_COMPILER_LAUNCHER: ccache
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build build
|
run: cmake --build build
|
||||||
- name: Install
|
- name: Install
|
||||||
run: cmake --install build --prefix build/install
|
run: cmake --install build --prefix build/install
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: ctest --output-on-failure --test-dir build
|
||||||
cd build
|
- name: Test (standalone)
|
||||||
ctest --output-on-failure &&
|
run: cd Test && ./runtests
|
||||||
cd ../Test && ./runtests
|
|
||||||
|
|
||||||
macos:
|
macos:
|
||||||
runs-on: ${{matrix.os}}
|
runs-on: ${{matrix.os}}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-11, macos-12]
|
os: [macos-11, macos-12]
|
||||||
compiler: [{cc: clang, cxx: clang++}, {cc: gcc, cxx: g++}]
|
compiler: [{cc: clang, cxx: clang++}, {cc: gcc, cxx: g++}]
|
||||||
cmake_build_type: [Debug, Release]
|
cmake_build_type: [Debug, Release]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
|
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
|
||||||
with:
|
with:
|
||||||
python-version: '3.7'
|
python-version: '3.7'
|
||||||
- uses: lukka/get-cmake@8be6cca406b575906541e8e3b885d46f416bba39 # v3.27.7
|
- uses: lukka/get-cmake@8be6cca406b575906541e8e3b885d46f416bba39 # v3.27.7
|
||||||
- name: Install GoogleTest
|
- name: Install GoogleTest
|
||||||
run: |
|
run: |
|
||||||
# check out pre-breakage version of googletest; can be deleted when
|
# check out pre-breakage version of googletest; can be deleted when
|
||||||
# issue 3128 is fixed
|
# issue 3128 is fixed
|
||||||
# git clone --depth=1 https://github.com/google/googletest.git External/googletest
|
# git clone --depth=1 https://github.com/google/googletest.git External/googletest
|
||||||
mkdir -p External/googletest
|
mkdir -p External/googletest
|
||||||
cd External/googletest
|
cd External/googletest
|
||||||
git init
|
git init
|
||||||
git remote add origin https://github.com/google/googletest.git
|
git remote add origin https://github.com/google/googletest.git
|
||||||
git fetch --depth 1 origin 0c400f67fcf305869c5fb113dd296eca266c9725
|
git fetch --depth 1 origin 0c400f67fcf305869c5fb113dd296eca266c9725
|
||||||
git reset --hard FETCH_HEAD
|
git reset --hard FETCH_HEAD
|
||||||
cd ../..
|
cd ../..
|
||||||
- name: Update Glslang Sources
|
- name: Update Glslang Sources
|
||||||
run: ./update_glslang_sources.py
|
run: ./update_glslang_sources.py
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=${{matrix.cmake_build_type}} -G "Ninja"
|
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=${{matrix.cmake_build_type}} -G "Ninja"
|
||||||
env:
|
env:
|
||||||
CC: ${{matrix.compiler.cc}}
|
CC: ${{matrix.compiler.cc}}
|
||||||
CXX: ${{matrix.compiler.cxx}}
|
CXX: ${{matrix.compiler.cxx}}
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build build
|
run: cmake --build build
|
||||||
- name: Install
|
- name: Install
|
||||||
run: cmake --install build --prefix build/install
|
run: cmake --install build --prefix build/install
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: ctest --output-on-failure --test-dir build
|
||||||
cd build
|
- name: Test (standalone)
|
||||||
ctest --output-on-failure &&
|
run: cd Test && ./runtests
|
||||||
cd ../Test && ./runtests
|
|
||||||
|
|
||||||
windows:
|
windows:
|
||||||
runs-on: ${{matrix.os.genus}}
|
runs-on: ${{matrix.os.genus}}
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [{genus: windows-2019, family: windows}]
|
os: [{genus: windows-2019, family: windows}]
|
||||||
cmake_build_type: [Debug, Release]
|
cmake_build_type: [Debug, Release]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
- uses: lukka/get-cmake@8be6cca406b575906541e8e3b885d46f416bba39 # v3.27.7
|
- uses: lukka/get-cmake@8be6cca406b575906541e8e3b885d46f416bba39 # v3.27.7
|
||||||
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
|
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
|
||||||
with:
|
with:
|
||||||
python-version: '3.7'
|
python-version: '3.7'
|
||||||
- name: Install GoogleTest
|
- name: Install GoogleTest
|
||||||
run: |
|
run: |
|
||||||
# check out pre-breakage version of googletest; can be deleted when
|
# check out pre-breakage version of googletest; can be deleted when
|
||||||
# issue 3128 is fixed
|
# issue 3128 is fixed
|
||||||
# git clone --depth=1 https://github.com/google/googletest.git External/googletest
|
# git clone --depth=1 https://github.com/google/googletest.git External/googletest
|
||||||
mkdir -p External/googletest
|
mkdir -p External/googletest
|
||||||
cd External/googletest
|
cd External/googletest
|
||||||
git init
|
git init
|
||||||
git remote add origin https://github.com/google/googletest.git
|
git remote add origin https://github.com/google/googletest.git
|
||||||
git fetch --depth 1 origin 0c400f67fcf305869c5fb113dd296eca266c9725
|
git fetch --depth 1 origin 0c400f67fcf305869c5fb113dd296eca266c9725
|
||||||
git reset --hard FETCH_HEAD
|
git reset --hard FETCH_HEAD
|
||||||
cd ../..
|
cd ../..
|
||||||
- name: Update Glslang Sources
|
- name: Update Glslang Sources
|
||||||
run: |
|
run: |
|
||||||
python update_glslang_sources.py
|
python update_glslang_sources.py
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cmake -S. -Bbuild -G "Visual Studio 16 2019" -A x64 -DCMAKE_INSTALL_PREFIX="$PWD/build/install"
|
cmake -S. -Bbuild -G "Visual Studio 16 2019" -A x64 -DCMAKE_INSTALL_PREFIX="$PWD/build/install"
|
||||||
cmake --build build --config ${{matrix.cmake_build_type}} --target install
|
cmake --build build --config ${{matrix.cmake_build_type}} --target install
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: ctest -C ${{matrix.cmake_build_type}} --output-on-failure --test-dir build
|
||||||
cd build
|
- name: Test (standalone)
|
||||||
ctest -C ${{matrix.cmake_build_type}} --output-on-failure
|
run: bash -c 'cd ./Test && ./runtests'
|
||||||
cd ../Test && bash runtests
|
|
||||||
|
|
||||||
android:
|
android:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
# Android NDK currently offers 2 different toolchains.
|
# Android NDK currently offers 2 different toolchains.
|
||||||
# Test both to ensure we are compatible with either approach.
|
# Test both to ensure we are compatible with either approach.
|
||||||
LEGACY: [ON, OFF]
|
LEGACY: [ON, OFF]
|
||||||
# Oldest/newest NDK currently provided by GitHub runners
|
# Oldest/newest NDK currently provided by GitHub runners
|
||||||
# https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md#android
|
# https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md#android
|
||||||
NDK: [23.2.8568313, 25.2.9519653]
|
NDK: [23.2.8568313, 25.2.9519653]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
|
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
|
||||||
with:
|
with:
|
||||||
python-version: '3.7'
|
python-version: '3.7'
|
||||||
- uses: lukka/get-cmake@8be6cca406b575906541e8e3b885d46f416bba39 # v3.27.7
|
- uses: lukka/get-cmake@8be6cca406b575906541e8e3b885d46f416bba39 # v3.27.7
|
||||||
- name: Setup ccache
|
- name: Setup ccache
|
||||||
uses: hendrikmuhs/ccache-action@6d1841ec156c39a52b1b23a810da917ab98da1f4 # v1.2.10
|
uses: hendrikmuhs/ccache-action@6d1841ec156c39a52b1b23a810da917ab98da1f4 # v1.2.10
|
||||||
with:
|
with:
|
||||||
key: android-${{ matrix.LEGACY }}-${{ matrix.NDK }}
|
key: android-${{ matrix.LEGACY }}-${{ matrix.NDK }}
|
||||||
- name: Update Glslang Sources
|
- name: Update Glslang Sources
|
||||||
run: ./update_glslang_sources.py
|
run: ./update_glslang_sources.py
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: |
|
run: |
|
||||||
cmake -S . -B build/ \
|
cmake -S . -B build/ \
|
||||||
--toolchain $ANDROID_HOME/ndk/${{ matrix.NDK }}/build/cmake/android.toolchain.cmake \
|
--toolchain $ANDROID_HOME/ndk/${{ matrix.NDK }}/build/cmake/android.toolchain.cmake \
|
||||||
-D CMAKE_BUILD_TYPE=Release \
|
-D CMAKE_BUILD_TYPE=Release \
|
||||||
-D ANDROID_ABI=armeabi-v7a \
|
-D ANDROID_ABI=armeabi-v7a \
|
||||||
-D ANDROID_USE_LEGACY_TOOLCHAIN_FILE=${{ matrix.LEGACY }} \
|
-D ANDROID_USE_LEGACY_TOOLCHAIN_FILE=${{ matrix.LEGACY }} \
|
||||||
-D BUILD_TESTING=OFF
|
-D BUILD_TESTING=OFF
|
||||||
env:
|
env:
|
||||||
CMAKE_GENERATOR: Ninja
|
CMAKE_GENERATOR: Ninja
|
||||||
CMAKE_C_COMPILER_LAUNCHER: ccache
|
CMAKE_C_COMPILER_LAUNCHER: ccache
|
||||||
CMAKE_CXX_COMPILER_LAUNCHER: ccache
|
CMAKE_CXX_COMPILER_LAUNCHER: ccache
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build build/
|
run: cmake --build build/
|
||||||
|
|
||||||
emscripten:
|
emscripten:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
|
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
|
||||||
with:
|
with:
|
||||||
python-version: '3.7'
|
python-version: '3.7'
|
||||||
- uses: lukka/get-cmake@8be6cca406b575906541e8e3b885d46f416bba39 # v3.27.7
|
- uses: lukka/get-cmake@8be6cca406b575906541e8e3b885d46f416bba39 # v3.27.7
|
||||||
- name: Setup ccache
|
- name: Setup ccache
|
||||||
uses: hendrikmuhs/ccache-action@6d1841ec156c39a52b1b23a810da917ab98da1f4 # v1.2.10
|
uses: hendrikmuhs/ccache-action@6d1841ec156c39a52b1b23a810da917ab98da1f4 # v1.2.10
|
||||||
with:
|
with:
|
||||||
key: ubuntu-emscripten
|
key: ubuntu-emscripten
|
||||||
- uses: mymindstorm/setup-emsdk@ab889da2abbcbb280f91ec4c215d3bb4f3a8f775 # v12
|
- uses: mymindstorm/setup-emsdk@ab889da2abbcbb280f91ec4c215d3bb4f3a8f775 # v12
|
||||||
- name: Update Glslang Sources
|
- name: Update Glslang Sources
|
||||||
run: ./update_glslang_sources.py
|
run: ./update_glslang_sources.py
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: emcmake cmake -GNinja -Bbuild/web -DCMAKE_BUILD_TYPE=Release -DENABLE_GLSLANG_JS=ON -DBUILD_TESTING=OFF -DENABLE_OPT=OFF
|
run: emcmake cmake -GNinja -Bbuild/web -DCMAKE_BUILD_TYPE=Release -DENABLE_GLSLANG_JS=ON -DBUILD_TESTING=OFF -DENABLE_OPT=OFF
|
||||||
env:
|
env:
|
||||||
CMAKE_GENERATOR: Ninja
|
CMAKE_GENERATOR: Ninja
|
||||||
CMAKE_C_COMPILER_LAUNCHER: ccache
|
CMAKE_C_COMPILER_LAUNCHER: ccache
|
||||||
CMAKE_CXX_COMPILER_LAUNCHER: ccache
|
CMAKE_CXX_COMPILER_LAUNCHER: ccache
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build build/web
|
run: cmake --build build/web
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue