10 { cc: gcc-13, cxx: g++-13, type: Debug },
11 { cc: clang, cxx: clang++, type: Debug },
12 { cc: gcc-13, cxx: g++-13, type: Release },
13 { cc: clang, cxx: clang++, type: Release },
17 - uses: mymindstorm/setup-emsdk@v13
18 - uses: actions/checkout@v4
25 CXX: ${{ matrix.cxx }}
28 source venv/bin/activate
29 python3 -m pip install -r requirements.txt
30 curl https://bellard.org/quickjs/quickjs-2024-01-13.tar.xz | tar -xJf -
31 pushd quickjs-2024-01-13
32 make && sudo make install
38 CXX: ${{ matrix.cxx }}
39 LIBA_OPENMP: ${{ startsWith(matrix.cc, 'gcc') }}
41 source venv/bin/activate
43 cmake -S . -B build.${{ matrix.cc }} -DCMAKE_BUILD_TYPE=${{ matrix.type }} \
48 -DLIBA_JAVASCRIPT_BIGINT=1 \
49 -DLIBA_JAVASCRIPT_DEBUG=1 \
50 -DLIBA_JAVASCRIPT_TSGEN=1 \
58 cmake --build build.${{ matrix.cc }} --config ${{ matrix.type }} --target package
60 if: ${{ matrix.type == 'Release' }}
63 CXX: ${{ matrix.cxx }}
66 cp -r build.${{ matrix.cc }}/vcpkg/* $VCPKG_INSTALLATION_ROOT
67 vcpkg install liba[ipo,pkgconfig]
70 CTEST_OUTPUT_ON_FAILURE: 1
73 cmake --build build.${{ matrix.cc }} --target test