Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
- name: Build-Library
if: ${{ steps.cache-spidermonkey.outputs.cache-hit != 'true' }}
run: |
# Get number of CPU cores
CPUS=$(getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null || echo 1)
echo "Building SpiderMonkey"
#install rust compiler
curl --proto '=https' --tlsv1.3 https://sh.rustup.rs -sSf | sh -s -- -y
Expand All @@ -48,14 +50,14 @@ jobs:
mkdir _build
cd _build
../configure --disable-jemalloc --with-system-zlib --with-intl-api --enable-optimize
make
make -j$CPUS
sudo make install
cd ../../../..
echo "Building the library"
mkdir build
cd build
cmake ..
cmake --build .
cmake --build . -j$CPUS
echo "Build complete"
- name: google-tests
run: |
Expand Down
5 changes: 4 additions & 1 deletion build_script.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Get number of CPU cores
CPUS=$(getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null || echo 1)

DIR="build"
if [ ! -d "$DIR" ]; then
### Take action if $DIR exists ###
Expand All @@ -6,4 +9,4 @@ fi

cd build
cmake ..
cmake --build .
cmake --build . -j$CPUS
5 changes: 4 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Get number of CPU cores
CPUS=$(getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null || echo 1)

apt-get update --yes
apt-get upgrade --yes
apt-get install cmake python3-dev python3-pytest doxygen graphviz gcovr llvm g++ pkg-config m4 --yes
Expand All @@ -13,5 +16,5 @@ chmod +x ./configure
mkdir _build
cd _build
../configure --disable-jemalloc --with-system-zlib --with-intl-api --enable-optimize
make
make -j$CPUS
make install