mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
88e92d4738
commit
82608c1a67
1 changed files with 50 additions and 0 deletions
50
projects/github.com/awslabs/llrt/package.yml
Normal file
50
projects/github.com/awslabs/llrt/package.yml
Normal file
|
@ -0,0 +1,50 @@
|
|||
distributable:
|
||||
url: git+https://github.com/awslabs/llrt
|
||||
ref: ${{version.tag}}
|
||||
|
||||
provides:
|
||||
- bin/llrt
|
||||
|
||||
versions:
|
||||
github: awslabs/llrt
|
||||
strip:
|
||||
- /v/
|
||||
- /-beta/ # not great practice, but it's all they have atm
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
rust-lang.org/rustup: '*' # manages its own rust :/
|
||||
facebook.com/zstd: '*' # builds its own, still needs our cli
|
||||
ziglang.org: '*'
|
||||
nodejs.org: '*'
|
||||
yarnpkg.com: '*'
|
||||
cmake.org: '*'
|
||||
git-scm.org: '*'
|
||||
linux:
|
||||
info-zip.org/zip: '*'
|
||||
script:
|
||||
- mkdir -p $HOME/.cargo/bin
|
||||
- ln -sf {{deps.rust-lang.org/rustup.prefix}}/bin/rustup $HOME/.cargo/bin/rustup
|
||||
- git submodule update --init
|
||||
- yarn
|
||||
- rustup default nightly
|
||||
- make stdlib
|
||||
- make libs
|
||||
|
||||
# the mapping from x86_64 > x64 exists for linux, but not darwin, oddly
|
||||
# https://github.com/awslabs/llrt/pull/336
|
||||
- run: |
|
||||
sed -i '/^llrt-linux-x86_64.zip/a\
|
||||
llrt-darwin-x86_64.zip: llrt-darwin-x64.zip' Makefile
|
||||
|
||||
- make release
|
||||
- install -D target/*/release/llrt {{prefix}}/bin/llrt
|
||||
env:
|
||||
PATH: $HOME/.cargo/bin:$PATH # rustup
|
||||
|
||||
test:
|
||||
- llrt --version | grep {{version}}
|
||||
- run: test "$(llrt $FIXTURE)" = "Hello, world!"
|
||||
fixture:
|
||||
extname: js
|
||||
content: console.log("Hello, world!")
|
Loading…
Reference in a new issue