mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 16:35:07 +03:00
Revert "Remove llvm.org as deno dependency on darwin+x86-64 (#5765)"
This reverts commit 00da27137e
.
This commit is contained in:
parent
00da27137e
commit
e88583fb65
2 changed files with 15 additions and 15 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -65,12 +65,12 @@ jobs:
|
|||
with:
|
||||
PKGX_DIR: /opt
|
||||
|
||||
- uses: pkgxdev/brewkit/build@8af9fe5a1c1ccd2c7aa9210bf42f4b02f04b64e4 # TODO: revert to v1
|
||||
- uses: pkgxdev/brewkit/build@v1
|
||||
id: build
|
||||
with:
|
||||
pkg: ${{ matrix.pkg }}
|
||||
|
||||
- uses: pkgxdev/brewkit/audit@8af9fe5a1c1ccd2c7aa9210bf42f4b02f04b64e4 # TODO: revert to v1
|
||||
- uses: pkgxdev/brewkit/audit@v1
|
||||
with:
|
||||
pkg: ${{ steps.build.outputs.pkgspec }}
|
||||
|
||||
|
@ -83,6 +83,6 @@ jobs:
|
|||
fi
|
||||
$SUDO rm -rf builds
|
||||
|
||||
- uses: pkgxdev/brewkit/test@8af9fe5a1c1ccd2c7aa9210bf42f4b02f04b64e4 # TODO: revert to v1
|
||||
- uses: pkgxdev/brewkit/test@v1
|
||||
with:
|
||||
pkg: ${{ steps.build.outputs.pkgspec }}
|
||||
|
|
|
@ -18,18 +18,13 @@ runtime:
|
|||
DENO_NO_UPDATE_CHECK: 'true'
|
||||
DENORT_BIN: '{{prefix}}/bin/denort'
|
||||
|
||||
dependencies:
|
||||
darwin/x86-64:
|
||||
# FIXME try removing this after new builds are available
|
||||
llvm.org: 17 # libunwind
|
||||
|
||||
build:
|
||||
script:
|
||||
# deno does not need llvm to build on darwin+x86-64, and if it is present,
|
||||
# deno will be linked to its libunwind, which then causes deno to need llvm
|
||||
# in runtime.
|
||||
- |
|
||||
if test "{{hw.platform}}+{{ hw.arch }}" != "darwin+x86-64"; then
|
||||
set -o allexport
|
||||
source <(pkgx +llvm.org^17)
|
||||
set +o allexport
|
||||
fi
|
||||
|
||||
- |
|
||||
rust_version=$(yq -er .toolchain.channel rust-toolchain.toml)
|
||||
if semverator lt "$rust_version" 1.67.0; then
|
||||
|
@ -39,7 +34,7 @@ build:
|
|||
rust_version=1.67.0
|
||||
fi
|
||||
set -o allexport
|
||||
source <(pkgx "+rust-lang.org~${rust_version}" +rust-lang.org/cargo^0)
|
||||
source <(pkgx "+rust-lang.org~${rust_version}" +rust-lang.org/cargo^0 +llvm.org^17)
|
||||
set +o allexport
|
||||
unset rust_version
|
||||
|
||||
|
@ -83,5 +78,10 @@ test:
|
|||
if: '>=1.40.5'
|
||||
# tests download of dependencies
|
||||
- deno eval 'import { VERSION } from "https://deno.land/std@0.221.0/version.ts"; console.log(VERSION);' | tee /dev/stderr | grep -q ^0.221.0$
|
||||
# ensures deno is not linked to libunwind
|
||||
- run: otool -l {{prefix}}/bin/deno | grep -v libunwind
|
||||
if: darwin
|
||||
- run: ldd {{prefix}}/bin/deno | grep -v libunwind
|
||||
if: linux
|
||||
fixture: |
|
||||
console.log("Hello, world!");
|
||||
|
|
Loading…
Reference in a new issue