@@ -30,27 +30,61 @@ jobs:
3030 - group : linux-x64-wasm
3131 runner : ubuntu-24.04
3232 targets : linux-x64 linuxmusl-x64 wasm32
33+ target_os : linux emscripten
3334 - group : linux-arm64
34- runner : ubuntu-24.04-arm
35+ runner : ubuntu-24.04
3536 targets : linux-arm64 linuxmusl-arm64
37+ target_os : linux
3638 - group : darwin
3739 runner : macos-14
3840 targets : darwin-arm64 darwin-x64
41+ target_os : mac
3942 - group : win32
4043 runner : windows-2022
4144 targets : win32-x64 win32-arm64
45+ target_os : win
46+ env :
47+ DEPOT_TOOLS_WIN_TOOLCHAIN : 0
48+ EMSDK_VERSION : 3.1.72
49+ MUSL_URL : https://musl.cc
50+ PDF_RUNTIME_TARGET_OS_LIST : ${{ matrix.target_os }}
4251 steps :
4352 - uses : actions/checkout@v6
4453 with :
45- ref : ${{ inputs.ref }}
54+ ref : ${{ inputs.ref || github.ref_name }}
4655 - name : Install depot_tools
4756 shell : bash
4857 run : |
4958 git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git "$RUNNER_TEMP/depot_tools"
5059 echo "$RUNNER_TEMP/depot_tools" >> "$GITHUB_PATH"
5160 - name : Install Linux deps
5261 if : runner.os == 'Linux'
53- run : sudo apt-get update && sudo apt-get install -y cmake g++ pkg-config
62+ shell : bash
63+ run : |
64+ sudo apt-get update
65+ sudo apt-get install -y cmake curl g++ pkg-config tar
66+
67+ if [[ " ${{ matrix.targets }} " == *" linux-arm64 "* ]]; then
68+ sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
69+ fi
70+
71+ if [[ " ${{ matrix.targets }} " == *" linuxmusl-x64 "* ]]; then
72+ curl -L "$MUSL_URL/x86_64-linux-musl-cross.tgz" | tar xz
73+ echo "$PWD/x86_64-linux-musl-cross/bin" >> "$GITHUB_PATH"
74+ fi
75+
76+ if [[ " ${{ matrix.targets }} " == *" linuxmusl-arm64 "* ]]; then
77+ curl -L "$MUSL_URL/aarch64-linux-musl-cross.tgz" | tar xz
78+ echo "$PWD/aarch64-linux-musl-cross/bin" >> "$GITHUB_PATH"
79+ fi
80+
81+ if [[ " ${{ matrix.targets }} " == *" wasm32 "* ]]; then
82+ git clone https://github.com/emscripten-core/emsdk.git "$RUNNER_TEMP/emsdk"
83+ "$RUNNER_TEMP/emsdk/emsdk" install "$EMSDK_VERSION"
84+ "$RUNNER_TEMP/emsdk/emsdk" activate "$EMSDK_VERSION"
85+ echo "$RUNNER_TEMP/emsdk/upstream/emscripten" >> "$GITHUB_PATH"
86+ echo "$RUNNER_TEMP/emsdk/upstream/bin" >> "$GITHUB_PATH"
87+ fi
5488 - name : Build and package targets
5589 shell : bash
5690 run : |
71105 steps :
72106 - uses : actions/checkout@v6
73107 with :
74- ref : ${{ inputs.ref }}
108+ ref : ${{ inputs.ref || github.ref_name }}
75109 - uses : actions/download-artifact@v7
76110 with :
77111 path : artifacts
0 commit comments