MIRROR: javascript for ๐Ÿœ's, a tiny runtime with big ambitions
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

add caching to the slowest runners

+41 -15
+17 -8
.github/workflows/build-macos-x64-mbedtls.yml
··· 19 19 with: 20 20 node-version: '22' 21 21 - run: brew install meson ninja llvm 22 + - name: Cache native dependencies 23 + id: cache-deps 24 + uses: actions/cache@v4 25 + with: 26 + path: ~/deps-cache 27 + key: deps-macos-x64-mbedtls-libsodium-1.0.20-mbedtls-3.6.5-llhttp-9.2.1-v1 22 28 - name: Build libsodium 29 + if: steps.cache-deps.outputs.cache-hit != 'true' 23 30 run: | 24 31 export LLVM_PREFIX=$(brew --prefix llvm) 25 32 git clone --depth 1 --branch 1.0.20-RELEASE https://github.com/jedisct1/libsodium.git /tmp/libsodium 26 33 cd /tmp/libsodium 27 - ./configure CC=$LLVM_PREFIX/bin/clang --prefix=/usr/local --disable-shared --enable-static 34 + ./configure CC=$LLVM_PREFIX/bin/clang --prefix=$HOME/deps-cache --disable-shared --enable-static 28 35 make -j$(sysctl -n hw.ncpu) 29 - sudo make install 36 + make install 30 37 - name: Build mbedTLS 38 + if: steps.cache-deps.outputs.cache-hit != 'true' 31 39 run: | 32 40 export LLVM_PREFIX=$(brew --prefix llvm) 33 41 git clone --depth 1 --branch mbedtls-3.6.5 --recurse-submodules https://github.com/Mbed-TLS/mbedtls.git /tmp/mbedtls 34 42 cd /tmp/mbedtls 35 43 CC=$LLVM_PREFIX/bin/clang cmake -B build \ 36 - -DCMAKE_INSTALL_PREFIX=/usr/local \ 44 + -DCMAKE_INSTALL_PREFIX=$HOME/deps-cache \ 37 45 -DENABLE_PROGRAMS=OFF \ 38 46 -DENABLE_TESTING=OFF \ 39 47 -DCMAKE_BUILD_TYPE=Release \ 40 48 -DUSE_STATIC_MBEDTLS_LIBRARY=ON \ 41 49 -DUSE_SHARED_MBEDTLS_LIBRARY=OFF 42 50 cmake --build build -j$(sysctl -n hw.ncpu) 43 - sudo cmake --install build 51 + cmake --install build 44 52 - name: Build llhttp 53 + if: steps.cache-deps.outputs.cache-hit != 'true' 45 54 run: | 46 55 export LLVM_PREFIX=$(brew --prefix llvm) 47 56 git clone --depth 1 --branch release/v9.2.1 https://github.com/nodejs/llhttp.git /tmp/llhttp 48 57 cd /tmp/llhttp 49 - CC=$LLVM_PREFIX/bin/clang cmake -B build -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON -DCMAKE_BUILD_TYPE=Release 58 + CC=$LLVM_PREFIX/bin/clang cmake -B build -DCMAKE_INSTALL_PREFIX=$HOME/deps-cache -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON -DCMAKE_BUILD_TYPE=Release 50 59 cmake --build build 51 - sudo cmake --install build 60 + cmake --install build 52 61 - run: npm ci 53 62 working-directory: src/tools 54 63 - uses: dtolnay/rust-toolchain@stable ··· 56 65 with: 57 66 workspaces: src/strip 58 67 - run: | 59 - export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH" 60 - export CMAKE_PREFIX_PATH="/usr/local:$CMAKE_PREFIX_PATH" 68 + export PKG_CONFIG_PATH="$HOME/deps-cache/lib/pkgconfig:$PKG_CONFIG_PATH" 69 + export CMAKE_PREFIX_PATH="$HOME/deps-cache:$CMAKE_PREFIX_PATH" 61 70 export LLVM_PREFIX=$(brew --prefix llvm) 62 71 CC=$LLVM_PREFIX/bin/clang AR=$LLVM_PREFIX/bin/llvm-ar RANLIB=$LLVM_PREFIX/bin/llvm-ranlib meson setup build -Db_lto=true --buildtype=release -Dbuild_timestamp=${{ inputs.build_timestamp }} -Dtls_library=mbedtls && meson compile -C build 63 72 - run: strip build/ant
+14 -6
.github/workflows/build-macos-x64.yml
··· 19 19 with: 20 20 node-version: '22' 21 21 - run: brew install meson ninja openssl@3 llvm 22 + - name: Cache native dependencies 23 + id: cache-deps 24 + uses: actions/cache@v4 25 + with: 26 + path: ~/deps-cache 27 + key: deps-macos-x64-libsodium-1.0.20-llhttp-9.2.1-v1 22 28 - name: Build libsodium 29 + if: steps.cache-deps.outputs.cache-hit != 'true' 23 30 run: | 24 31 export LLVM_PREFIX=$(brew --prefix llvm) 25 32 git clone --depth 1 --branch 1.0.20-RELEASE https://github.com/jedisct1/libsodium.git /tmp/libsodium 26 33 cd /tmp/libsodium 27 - ./configure CC=$LLVM_PREFIX/bin/clang --prefix=/usr/local --disable-shared --enable-static 34 + ./configure CC=$LLVM_PREFIX/bin/clang --prefix=$HOME/deps-cache --disable-shared --enable-static 28 35 make -j$(sysctl -n hw.ncpu) 29 - sudo make install 36 + make install 30 37 - name: Build llhttp 38 + if: steps.cache-deps.outputs.cache-hit != 'true' 31 39 run: | 32 40 export LLVM_PREFIX=$(brew --prefix llvm) 33 41 git clone --depth 1 --branch release/v9.2.1 https://github.com/nodejs/llhttp.git /tmp/llhttp 34 42 cd /tmp/llhttp 35 - CC=$LLVM_PREFIX/bin/clang cmake -B build -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON -DCMAKE_BUILD_TYPE=Release 43 + CC=$LLVM_PREFIX/bin/clang cmake -B build -DCMAKE_INSTALL_PREFIX=$HOME/deps-cache -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON -DCMAKE_BUILD_TYPE=Release 36 44 cmake --build build 37 - sudo cmake --install build 45 + cmake --install build 38 46 - run: npm ci 39 47 working-directory: src/tools 40 48 - uses: dtolnay/rust-toolchain@stable ··· 42 50 with: 43 51 workspaces: src/strip 44 52 - run: | 45 - export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH" 46 - export CMAKE_PREFIX_PATH="/usr/local:$CMAKE_PREFIX_PATH" 53 + export PKG_CONFIG_PATH="$HOME/deps-cache/lib/pkgconfig:$PKG_CONFIG_PATH" 54 + export CMAKE_PREFIX_PATH="$HOME/deps-cache:$CMAKE_PREFIX_PATH" 47 55 export LLVM_PREFIX=$(brew --prefix llvm) 48 56 CC=$LLVM_PREFIX/bin/clang AR=$LLVM_PREFIX/bin/llvm-ar RANLIB=$LLVM_PREFIX/bin/llvm-ranlib meson setup build -Db_lto=true --buildtype=release -Dbuild_timestamp=${{ inputs.build_timestamp }} && meson compile -C build 49 57 - run: strip build/ant
+10 -1
.github/workflows/build-windows-x64.yml
··· 30 30 mingw-w64-x86_64-libsodium 31 31 mingw-w64-x86_64-nodejs 32 32 git 33 + - name: Cache llhttp 34 + id: cache-llhttp 35 + uses: actions/cache@v4 36 + with: 37 + path: C:/deps-cache 38 + key: deps-windows-x64-llhttp-9.2.1-v1 33 39 - name: Build llhttp 40 + if: steps.cache-llhttp.outputs.cache-hit != 'true' 34 41 run: | 35 42 git clone --depth 1 --branch release/v9.2.1 https://github.com/nodejs/llhttp.git /tmp/llhttp 36 43 cd /tmp/llhttp 37 - cmake -G "MinGW Makefiles" -B build -DCMAKE_INSTALL_PREFIX=$MINGW_PREFIX -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON 44 + cmake -G "MinGW Makefiles" -B build -DCMAKE_INSTALL_PREFIX=/c/deps-cache -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON 38 45 cmake --build build 39 46 cmake --install build 40 47 - run: npm ci ··· 47 54 workspaces: src/strip 48 55 - run: | 49 56 export PATH="/c/Users/$USER/.cargo/bin:$PATH" 57 + export PKG_CONFIG_PATH="/c/deps-cache/lib/pkgconfig:$PKG_CONFIG_PATH" 58 + export CMAKE_PREFIX_PATH="/c/deps-cache:$CMAKE_PREFIX_PATH" 50 59 meson setup build -Dc_std=gnu2x -Dbuild_timestamp=${{ inputs.build_timestamp }} && meson compile -C build 51 60 - uses: actions/upload-artifact@v4 52 61 with: