Skip to content

Commit

Permalink
fix(deno2)
Browse files Browse the repository at this point in the history
 closes #7575
  • Loading branch information
jhheider committed Oct 9, 2024
1 parent c127b59 commit defa648
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion projects/deno.land/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ runtime:
companions:
info-zip.org/unzip: '*' # needed to download the compilation runtime

dependencies:
sourceware.org/libffi: '>=3.2.1' # v2

build:
script:
# requires specific rust versions
Expand All @@ -33,6 +36,11 @@ build:
- ln -sf $HOME/.rustup/toolchains/*/bin/* .
working-directory: $HOME/.cargo/bin

# deno v2 uses libffi-sys
- run: sed -i 's/libffi-sys = "\(.*\)"/libffi-sys = { version = "\1", features = ["system"] }/' Cargo.toml
working-directory: ext/ffi
if: '>=2'

# https://github.com/denoland/deno/issues/15596 -- reported fixed in 1.25.3
- run: |
find ext/ffi/tinycc -maxdepth 0 -empty -exec \
Expand Down Expand Up @@ -71,6 +79,9 @@ build:
github.com/mikefarah/yq: ^4
crates.io/semverator: ^0
env:
linux:
CC: clang
LD: clang
PATH: $HOME/.cargo/bin:$PATH

test:
Expand All @@ -80,7 +91,10 @@ test:
script:
- deno --version | grep {{version}}
- mv $FIXTURE test.ts
- deno install -f test.ts
- run: deno install -f test.ts
if: ^1
- run: deno install --global -f test.ts
if: ^2
- test "$($HOME/.local/bin/test)" = "Hello, world!"
- deno compile test.ts
- test "$(./test)" = "Hello, world!"
Expand Down

0 comments on commit defa648

Please sign in to comment.