@@ -78,20 +78,24 @@ jobs:
7878 - host : ubuntu-latest
7979 target : aarch64-linux-android
8080 build : |
81- export CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER="${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang"
82- export CC="${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang"
83- export CXX="${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang++"
84- export PATH="${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin:${PATH}"
81+ export CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER="${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang"
82+ export CC="${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang"
83+ export CXX="${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang++"
84+ export AR="${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar"
85+ export PATH="${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin:${PATH}"
8586 yarn lerna exec "yarn build --target aarch64-linux-android" --concurrency 1 --stream --no-prefix
87+ ${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip packages/*/*.node
8688 - host : ubuntu-latest
8789 architecture : x64
8890 target : armv7-linux-androideabi
8991 build : |
90- export CARGO_TARGET_ARMV7_LINUX_ANDROIDEABI_LINKER="${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi24-clang"
91- export CC="${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi24-clang"
92- export CXX="${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi24-clang++"
93- export PATH="${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin:${PATH}"
92+ export CARGO_TARGET_ARMV7_LINUX_ANDROIDEABI_LINKER="${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi24-clang"
93+ export CC="${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi24-clang"
94+ export CXX="${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi24-clang++"
95+ export PATH="${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin:${PATH}"
96+ export AR="${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar"
9497 yarn lerna exec "yarn build --target armv7-linux-androideabi" --concurrency 1 --stream --no-prefix
98+ ${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip packages/*/*.node
9599 - host : ubuntu-latest
96100 target : ' aarch64-unknown-linux-musl'
97101 downloadTarget : ' aarch64-unknown-linux-musl'
@@ -140,8 +144,7 @@ jobs:
140144 ~/.cargo/registry
141145 ~/.cargo/git
142146 target
143- ${{ env.RUNNER_TEMP }}/.cargo/registry
144- ${{ env.RUNNER_TEMP }}/.cargo/git
147+ .cargo-cache
145148 key : ${{ matrix.settings.target }}-cargo-registry
146149
147150 - name : Cache NPM dependencies
@@ -171,7 +174,7 @@ jobs:
171174 if : ${{ matrix.settings.docker }}
172175 with :
173176 image : ${{ matrix.settings.docker }}
174- options : --user 0:0 -v ${{ env.RUNNER_TEMP }}/.cargo/ git:/root/. cargo/git -v ${{ env.RUNNER_TEMP }}/.cargo/ registry:/root/. cargo/registry -v ${{ github.workspace }}:/build -w /build
177+ options : --user 0:0 -v ${{ github.workspace }}/.cargo-cache/.cargo/ git:/usr/local/ cargo/git -v ${{ github.workspace }}/.cargo-cache/.cargo/ registry:/usr/local/ cargo/registry -v ${{ github.workspace }}:/build -w /build
175178 run : ${{ matrix.settings.build }}
176179
177180 - name : Setup node x86
@@ -196,13 +199,13 @@ jobs:
196199 if-no-files-found : error
197200
198201 build-freebsd :
199- runs-on : macos-10.15
202+ runs-on : macos-12
200203 name : Build FreeBSD
201204 steps :
202205 - uses : actions/checkout@v3
203206 - name : Build
204207 id : build
205- uses : vmactions/freebsd-vm@v0.1.6
208+ uses : vmactions/freebsd-vm@v0.2.3
206209 env :
207210 DEBUG : ' napi:*'
208211 RUSTUP_HOME : /usr/local/rustup
0 commit comments