Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4503744
build-macos-aarch64.yml
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
build-macos-aarch64.yml
View Options
name
:
Build macOS aarch64
on
:
workflow_dispatch
:
workflow_call
:
inputs
:
build_timestamp
:
required
:
true
type
:
string
jobs
:
macos-aarch64
:
runs-on
:
macos-15
steps
:
-
uses
:
actions/checkout@v4
with
:
submodules
:
recursive
-
uses
:
actions/setup-node@v4
with
:
node-version
:
'22'
-
run
:
brew install meson ninja openssl@3 llvm
-
name
:
Cache native dependencies
id
:
cache-deps
uses
:
actions/cache@v4
with
:
path
:
~/deps-cache
key
:
deps-macos-aarch64-libsodium-1.0.20-llhttp-9.2.1-v1
-
name
:
Build libsodium
if
:
steps.cache-deps.outputs.cache-hit != 'true'
run
:
|
export LLVM_PREFIX=$(brew --prefix llvm)
git clone --depth 1 --branch 1.0.20-RELEASE https://github.com/jedisct1/libsodium.git /tmp/libsodium
cd /tmp/libsodium
./configure CC=$LLVM_PREFIX/bin/clang --prefix=$HOME/deps-cache --disable-shared --enable-static
make -j$(sysctl -n hw.ncpu)
make install
-
name
:
Build llhttp
if
:
steps.cache-deps.outputs.cache-hit != 'true'
run
:
|
export LLVM_PREFIX=$(brew --prefix llvm)
git clone --depth 1 --branch release/v9.2.1 https://github.com/nodejs/llhttp.git /tmp/llhttp
cd /tmp/llhttp
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
cmake --build build
cmake --install build
-
run
:
npm ci
working-directory
:
src/tools
-
uses
:
dtolnay/rust-toolchain@stable
-
uses
:
Swatinem/rust-cache@v2
with
:
workspaces
:
src/strip
-
name
:
Cache oxc build
uses
:
actions/cache@v4
with
:
path
:
build/oxc-target
key
:
oxc-macos-aarch64-${{ hashFiles('src/strip/Cargo.lock') }}
restore-keys
:
oxc-macos-aarch64-
-
name
:
Cache meson build
uses
:
actions/cache@v4
with
:
path
:
|
vendor/*/
build/
!build/oxc-target
key
:
meson-macos-aarch64-openssl-${{ hashFiles('vendor/*.wrap', 'meson.build', 'src/**/*.c', 'src/**/*.h') }}
restore-keys
:
meson-macos-aarch64-openssl-
-
run
:
|
export PKG_CONFIG_PATH="$HOME/deps-cache/lib/pkgconfig:$PKG_CONFIG_PATH"
export CMAKE_PREFIX_PATH="$HOME/deps-cache:$CMAKE_PREFIX_PATH"
export LLVM_PREFIX=$(brew --prefix llvm)
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
-
run
:
strip build/ant
-
uses
:
actions/upload-artifact@v4
with
:
name
:
ant-darwin-aarch64
path
:
build/ant
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, May 3, 9:34 AM (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
539793
Default Alt Text
build-macos-aarch64.yml (2 KB)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment