mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 04:25:08 +03:00
5e35d79d0a
* fix(dart) let's see what the deal is here. closes #4878 closes #4976 * ok, what about half measures?
48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
distributable:
|
|
url: https://github.com/dart-lang/sdk/archive/{{version}}.tar.gz
|
|
strip-components: 1
|
|
versions:
|
|
github: dart-lang/sdk/tags
|
|
build:
|
|
dependencies:
|
|
ninja-build.org: '*'
|
|
rust-lang.org: '*'
|
|
curl.se: '*'
|
|
python.org: '>=3<3.12'
|
|
tukaani.org/xz: '*'
|
|
git-scm.org: '*'
|
|
script:
|
|
- run: git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
|
|
working-directory: $SRCROOT/resources
|
|
|
|
- gclient config --name sdk https://dart.googlesource.com/sdk.git@{{version}}
|
|
- gclient sync --no-history
|
|
|
|
- run: ./tools/build.py --no-goma --mode=release --arch=$ARCH create_sdk
|
|
working-directory: sdk
|
|
- mkdir -p {{prefix}}/libexec
|
|
- run: cp -r ./sdk/out/Release*/dart-sdk/* {{prefix}}/libexec/
|
|
if: linux
|
|
- run: cp -r ./sdk/xcodebuild/Release*/dart-sdk/* {{prefix}}/libexec/
|
|
if: darwin
|
|
- run: |
|
|
ln -s ./../libexec/bin/dart dart
|
|
ln -s ./../libexec/bin/dartaotruntime dartaotruntime
|
|
working-directory: '{{prefix}}/bin'
|
|
env:
|
|
DEPOT_TOOLS_UPDATE: 0
|
|
PATH: $SRCROOT/resources/depot_tools:$PATH
|
|
aarch64:
|
|
ARCH: arm64
|
|
x86-64:
|
|
ARCH: x64
|
|
provides:
|
|
- bin/dart
|
|
- bin/dartaotruntime
|
|
test:
|
|
script:
|
|
- dart create dart-test
|
|
- run: dart run
|
|
working-directory: dart-test
|
|
- run: dart run | grep "Hello world"
|
|
working-directory: dart-test
|