Skip to content

Commit 6f81ed8

Browse files
authored
Update main.yml
1 parent 1eb7310 commit 6f81ed8

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,14 @@ on:
1313

1414
jobs:
1515
build-dart-sdk:
16-
runs-on: ubuntu-20.04
17-
container:
18-
image: python:2.7.18-buster
16+
runs-on: ubuntu-latest
1917
steps:
2018
- name: Checkout
2119
uses: actions/checkout@v2
22-
- name: Echo Free space
23-
run: |
24-
echo "Free space:"
25-
df -h
2620
- name: Prepare
2721
run: |
28-
apt-get update
29-
apt-get install -y g++-aarch64-linux-gnu g++-arm-linux-gnueabihf g++-multilib zip
22+
sudo apt-get update
23+
sudo apt-get install -y git python3 curl xz-utils g++-aarch64-linux-gnu
3024
- name: Get Resource
3125
run: |
3226
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
@@ -36,25 +30,19 @@ jobs:
3630
fetch dart
3731
cd sdk
3832
git checkout ${{ github.event.inputs.TAG }}
39-
ls
40-
sed -i "s#/data/local/tmp#/data/data/com.termux/files/home/tmp#g" runtime/bin/directory_android.cc
41-
sed -n '431,433p' runtime/bin/directory_android.cc
4233
cd ../
43-
echo "target_os = ['android','linux']" >> .gclient
34+
echo "download_android_deps = True" >> .gclient
4435
gclient sync
4536
- name: Build SDK
4637
run: |
4738
export PATH="$PATH:$PWD/depot_tools"
4839
cd dart-sdk/sdk
49-
ls tools/bots
5040
./tools/build.py --no-goma -m release --arch=arm64 --os=android create_sdk
51-
./tools/build.py --no-goma -m release --arch=arm64 create_sdk
5241
- name: Zip SDK
5342
run: |
5443
cd dart-sdk/sdk/out
5544
ls
5645
zip -q -r dart-sdk-android-arm64.zip ReleaseAndroidARM64/dart-sdk
57-
zip -q -r dart-sdk-linux-arm64.zip ReleaseXARM64/dart-sdk
5846
- name: Release SDK
5947
uses: ncipollo/release-action@v1
6048
with:

0 commit comments

Comments
 (0)