Merge pull request #287 from FeignClaims/feat/conan_system_package_by… #376
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci-cross-emscripten | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- master | |
jobs: | |
Test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-22.04 | |
cmake: | |
- true | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/vcpkg | |
./build/vcpkg_installed | |
${{ env.HOME }}/.cache/vcpkg/archives | |
${{ env.XDG_CACHE_HOME }}/vcpkg/archives | |
${{ env.LOCALAPPDATA }}\vcpkg\archives | |
${{ env.APPDATA }}\vcpkg\archives | |
key: ${{ runner.os }}-emscripten-${{ env.BUILD_TYPE }}-${{ hashFiles('**/CMakeLists.txt') }}-${{ hashFiles('./vcpkg.json')}}-${{ matrix.cmake }} | |
restore-keys: | | |
${{ runner.os }}-${{ env.BUILD_TYPE }}- | |
- name: Setup Cpp | |
uses: aminya/setup-cpp@v1 | |
with: | |
cmake: ${{ matrix.cmake }} | |
ninja: true | |
vcpkg: true | |
conan: true | |
cppcheck: true | |
clangtidy: true | |
task: true | |
doxygen: true | |
- name: Setup emscripten | |
uses: mymindstorm/setup-emsdk@v11 | |
- name: Build | |
run: | | |
task emscripten:build | |
env: | |
CMAKE_GENERATOR: ${{ matrix.cmake_generator }} |