diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 17faa1a3..87f0bd42 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -69,11 +69,7 @@ jobs: run: echo "BUILD_CMD=cross" >> $GITHUB_ENV - name: Build shell: bash - run: | - case ${{ matrix.target }} in - aarch64-*) export JEMALLOC_SYS_WITH_LG_PAGE=16 ;; - esac; - $BUILD_CMD build --profile release-ci --target ${{ matrix.target }} --locked --no-default-features --features rustls ${{ matrix.additional_args }} + run: $BUILD_CMD build --profile release-ci --target ${{ matrix.target }} --locked --no-default-features --features rustls ${{ matrix.additional_args }} - name: Upload uses: actions/upload-artifact@v4 with: diff --git a/Cross.toml b/Cross.toml new file mode 100644 index 00000000..9cd94c64 --- /dev/null +++ b/Cross.toml @@ -0,0 +1,6 @@ +# For Asahi linux +[target.aarch64-unknown-linux-gnu.env] +passthrough = ["JEMALLOC_SYS_WITH_LG_PAGE=16"] + +[target.aarch64-unknown-linux-musl.env] +passthrough = ["JEMALLOC_SYS_WITH_LG_PAGE=16"]