mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 16:35:07 +03:00
2nd try: remove llvm/libunwind from deno
This commit is contained in:
parent
e88583fb65
commit
6e3c96625a
3 changed files with 22 additions and 22 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -65,12 +65,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
PKGX_DIR: /opt
|
PKGX_DIR: /opt
|
||||||
|
|
||||||
- uses: pkgxdev/brewkit/build@v1
|
- uses: pkgxdev/brewkit/build@8af9fe5a1c1ccd2c7aa9210bf42f4b02f04b64e4 # TODO: revert to v1
|
||||||
id: build
|
id: build
|
||||||
with:
|
with:
|
||||||
pkg: ${{ matrix.pkg }}
|
pkg: ${{ matrix.pkg }}
|
||||||
|
|
||||||
- uses: pkgxdev/brewkit/audit@v1
|
- uses: pkgxdev/brewkit/audit@8af9fe5a1c1ccd2c7aa9210bf42f4b02f04b64e4 # TODO: revert to v1
|
||||||
with:
|
with:
|
||||||
pkg: ${{ steps.build.outputs.pkgspec }}
|
pkg: ${{ steps.build.outputs.pkgspec }}
|
||||||
|
|
||||||
|
@ -83,6 +83,6 @@ jobs:
|
||||||
fi
|
fi
|
||||||
$SUDO rm -rf builds
|
$SUDO rm -rf builds
|
||||||
|
|
||||||
- uses: pkgxdev/brewkit/test@v1
|
- uses: pkgxdev/brewkit/test@8af9fe5a1c1ccd2c7aa9210bf42f4b02f04b64e4 # TODO: revert to v1
|
||||||
with:
|
with:
|
||||||
pkg: ${{ steps.build.outputs.pkgspec }}
|
pkg: ${{ steps.build.outputs.pkgspec }}
|
||||||
|
|
14
.github/workflows/pkg-platform.yml
vendored
14
.github/workflows/pkg-platform.yml
vendored
|
@ -80,7 +80,7 @@ jobs:
|
||||||
p12-password: ${{ secrets.APPLE_CERTIFICATE_P12_PASSWORD }}
|
p12-password: ${{ secrets.APPLE_CERTIFICATE_P12_PASSWORD }}
|
||||||
APPLE_IDENTITY: ${{ secrets.APPLE_IDENTITY }}
|
APPLE_IDENTITY: ${{ secrets.APPLE_IDENTITY }}
|
||||||
|
|
||||||
- uses: pkgxdev/brewkit/build@v1
|
- uses: pkgxdev/brewkit/build@8af9fe5a1c1ccd2c7aa9210bf42f4b02f04b64e4 # TODO: revert to v1
|
||||||
with:
|
with:
|
||||||
pkg: ${{ inputs.pkg }}
|
pkg: ${{ inputs.pkg }}
|
||||||
id: build
|
id: build
|
||||||
|
@ -88,11 +88,11 @@ jobs:
|
||||||
- uses: styfle/cancel-workflow-action@0.12.0
|
- uses: styfle/cancel-workflow-action@0.12.0
|
||||||
if: steps.build.outputs.noop
|
if: steps.build.outputs.noop
|
||||||
|
|
||||||
- uses: pkgxdev/brewkit/audit@v1
|
- uses: pkgxdev/brewkit/audit@8af9fe5a1c1ccd2c7aa9210bf42f4b02f04b64e4 # TODO: revert to v1
|
||||||
with:
|
with:
|
||||||
pkg: ${{ inputs.pkg }}
|
pkg: ${{ inputs.pkg }}
|
||||||
|
|
||||||
- uses: pkgxdev/brewkit/upload-build-artifact@v1
|
- uses: pkgxdev/brewkit/upload-build-artifact@8af9fe5a1c1ccd2c7aa9210bf42f4b02f04b64e4 # TODO: revert to v1
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: test ${{inputs.tinyname}} ${{ matrix.container || ''}} ${{ matrix.container || '' }} ${{ join(matrix.os, '+') }}
|
name: test ${{inputs.tinyname}} ${{ matrix.container || ''}} ${{ matrix.container || '' }} ${{ join(matrix.os, '+') }}
|
||||||
|
@ -109,10 +109,10 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: pkgxdev/setup@v2
|
- uses: pkgxdev/setup@v2
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: pkgxdev/brewkit/download-build-artifact@v1
|
- uses: pkgxdev/brewkit/download-build-artifact@8af9fe5a1c1ccd2c7aa9210bf42f4b02f04b64e4 # TODO: revert to v1
|
||||||
with:
|
with:
|
||||||
pkg: ${{ inputs.pkg }}
|
pkg: ${{ inputs.pkg }}
|
||||||
- uses: pkgxdev/brewkit/test@v1
|
- uses: pkgxdev/brewkit/test@8af9fe5a1c1ccd2c7aa9210bf42f4b02f04b64e4 # TODO: revert to v1
|
||||||
with:
|
with:
|
||||||
pkg: ${{ inputs.pkg }}
|
pkg: ${{ inputs.pkg }}
|
||||||
|
|
||||||
|
@ -143,14 +143,14 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
|
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||||
|
|
||||||
- uses: pkgxdev/brewkit/download-build-artifact@v1
|
- uses: pkgxdev/brewkit/download-build-artifact@8af9fe5a1c1ccd2c7aa9210bf42f4b02f04b64e4 # TODO: revert to v1
|
||||||
id: dl
|
id: dl
|
||||||
with:
|
with:
|
||||||
pkg: ${{ inputs.pkg }}
|
pkg: ${{ inputs.pkg }}
|
||||||
platform: ${{ inputs.name }}
|
platform: ${{ inputs.name }}
|
||||||
extract: false
|
extract: false
|
||||||
|
|
||||||
- uses: pkgxdev/brewkit/bottle@v1
|
- uses: pkgxdev/brewkit/bottle@8af9fe5a1c1ccd2c7aa9210bf42f4b02f04b64e4 # TODO: revert to v1
|
||||||
id: bottle
|
id: bottle
|
||||||
with:
|
with:
|
||||||
file: ${{ steps.dl.outputs.filename }}
|
file: ${{ steps.dl.outputs.filename }}
|
||||||
|
|
|
@ -18,13 +18,18 @@ runtime:
|
||||||
DENO_NO_UPDATE_CHECK: 'true'
|
DENO_NO_UPDATE_CHECK: 'true'
|
||||||
DENORT_BIN: '{{prefix}}/bin/denort'
|
DENORT_BIN: '{{prefix}}/bin/denort'
|
||||||
|
|
||||||
dependencies:
|
|
||||||
darwin/x86-64:
|
|
||||||
# FIXME try removing this after new builds are available
|
|
||||||
llvm.org: 17 # libunwind
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
script:
|
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)
|
rust_version=$(yq -er .toolchain.channel rust-toolchain.toml)
|
||||||
if semverator lt "$rust_version" 1.67.0; then
|
if semverator lt "$rust_version" 1.67.0; then
|
||||||
|
@ -34,7 +39,7 @@ build:
|
||||||
rust_version=1.67.0
|
rust_version=1.67.0
|
||||||
fi
|
fi
|
||||||
set -o allexport
|
set -o allexport
|
||||||
source <(pkgx "+rust-lang.org~${rust_version}" +rust-lang.org/cargo^0 +llvm.org^17)
|
source <(pkgx "+rust-lang.org~${rust_version}" +rust-lang.org/cargo^0)
|
||||||
set +o allexport
|
set +o allexport
|
||||||
unset rust_version
|
unset rust_version
|
||||||
|
|
||||||
|
@ -78,10 +83,5 @@ test:
|
||||||
if: '>=1.40.5'
|
if: '>=1.40.5'
|
||||||
# tests download of dependencies
|
# 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$
|
- 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: |
|
fixture: |
|
||||||
console.log("Hello, world!");
|
console.log("Hello, world!");
|
||||||
|
|
Loading…
Reference in a new issue