mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
9bfc9cd789
commit
c2e3b21562
1 changed files with 26 additions and 34 deletions
|
@ -15,54 +15,46 @@ interprets:
|
||||||
|
|
||||||
runtime:
|
runtime:
|
||||||
env:
|
env:
|
||||||
DENO_NO_UPDATE_CHECK: "true"
|
DENO_NO_UPDATE_CHECK: 'true'
|
||||||
|
|
||||||
build:
|
build:
|
||||||
script: |
|
script:
|
||||||
# https://github.com/denoland/deno/issues/15596 -- reported fixed in 1.25.3
|
# https://github.com/denoland/deno/issues/15596 -- reported fixed in 1.25.3
|
||||||
if semverator satisfies '>=1.25.0<1.25.4' {{ version }}; then
|
- run: |
|
||||||
find ext/ffi/tinycc -maxdepth 0 -empty -exec \
|
find ext/ffi/tinycc -maxdepth 0 -empty -exec \
|
||||||
git clone https://github.com/TinyCC/tinycc.git {} \;
|
git clone https://github.com/TinyCC/tinycc.git {} \;
|
||||||
|
|
||||||
if test {{ hw.target }} = x86_64-apple-darwin; then
|
if test {{ hw.target }} = x86_64-apple-darwin; then
|
||||||
# our LLVM cannot build with deployment target set to 10.6
|
# our LLVM cannot build with deployment target set to 10.6
|
||||||
sed -i.bak s/MACOSX_DEPLOYMENT_TARGET/\#/ ext/ffi/tinycc/Makefile
|
sed -i.bak s/MACOSX_DEPLOYMENT_TARGET/\#/ ext/ffi/tinycc/Makefile
|
||||||
fi
|
fi
|
||||||
fi
|
if: '>=1.25.0<1.25.4'
|
||||||
|
|
||||||
# FIXME: until we unblock rust-lang.org>1.65.0, we need a feature flag
|
|
||||||
# to compile deno.land
|
|
||||||
if semverator satisfies '<1.66.0' {{ deps.rust-lang.org.version }}; then
|
|
||||||
git apply props/unzip_option_feature.diff
|
|
||||||
fi
|
|
||||||
|
|
||||||
# change default bindir to ~/.local/bin per our conventions
|
# change default bindir to ~/.local/bin per our conventions
|
||||||
sed -i.bak -e 's/home_path.push(".deno")/home_path.push(".local")/' cli/tools/installer.rs
|
- sed -i'' -e 's/home_path.push(".deno")/home_path.push(".local")/' cli/tools/installer.rs
|
||||||
rm cli/tools/installer.rs.bak
|
|
||||||
grep home_path cli/tools/installer.rs
|
|
||||||
|
|
||||||
cargo build --release
|
- grep home_path cli/tools/installer.rs
|
||||||
mkdir -p "{{ prefix }}"/bin
|
|
||||||
mv target/release/deno "{{ prefix }}"/bin
|
- cargo build --release
|
||||||
|
- mkdir -p "{{ prefix }}"/bin
|
||||||
|
- mv target/release/deno "{{ prefix }}"/bin
|
||||||
dependencies:
|
dependencies:
|
||||||
git-scm.org: 2 # to build tinycc
|
git-scm.org: 2 # to build tinycc
|
||||||
rust-lang.org: ^1.70
|
rust-lang.org: ^1.70
|
||||||
rust-lang.org/cargo: ^0.65
|
rust-lang.org/cargo: ^0.65
|
||||||
llvm.org: '>=13' # macOS/aarch64 requires this (FIXME only dep where needed)
|
llvm.org: '>=13' # macOS/aarch64 requires this (FIXME only dep where needed)
|
||||||
curl.se: '*' # required to download v8 (python is another option)
|
curl.se: '*' # required to download v8 (python is another option)
|
||||||
crates.io/semverator: '*'
|
cmake.org: ^3 # deno.land>=1.36.1 requires cmake
|
||||||
cmake.org: ^3 # deno.land>=1.36.1 requires cmake
|
protobuf.dev: '*' # deno.land>=1.36.4 requires protoc
|
||||||
protobuf.dev: '*' # deno.land>=1.36.4 requires protoc
|
|
||||||
env:
|
env:
|
||||||
linux:
|
linux:
|
||||||
LD: clang
|
LD: clang
|
||||||
|
|
||||||
test:
|
test:
|
||||||
script: |
|
script:
|
||||||
deno --version | grep {{version}}
|
- deno --version | grep {{version}}
|
||||||
mv $FIXTURE test.ts
|
- mv $FIXTURE test.ts
|
||||||
deno install test.ts
|
- deno install test.ts
|
||||||
test "$(.local/bin/test)" = "Hello, world!"
|
- test "$($HOME/.local/bin/test)" = "Hello, world!"
|
||||||
fixture: |
|
fixture: |
|
||||||
console.log("Hello, world!");
|
console.log("Hello, world!");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue