Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ jobs:
4486a3f45dc40aa8ab1357db38da465c5899631f
EOF

- name: Patch Dart SDK riscv64
run: |
cd dart-sdk/sdk
xargs -n 1 -- sh -xc 'curl -fsSL "https://github.com/dart-lang/sdk/commit/$1.diff" | git apply -' -- <<'EOF'
0f549e2069ff78fedf43a9781ce5b80625b9d470
EOF

- name: Remove build tools
run: |
cd dart-sdk/sdk
Expand Down Expand Up @@ -145,7 +152,8 @@ jobs:
runs-on: ubuntu-latest

container:
image: docker.io/library/alpine
# riscv64 is currently alpine edge only
image: docker.io/library/alpine:${{ matrix.target-arch == 'riscv64' && 'edge' || 'latest' }}

strategy:
fail-fast: false
Expand All @@ -159,6 +167,8 @@ jobs:
target-arch: arm64
- host-arch: x64
target-arch: arm
- host-arch: x64
target-arch: riscv64

steps:
- name: Download Artifact
Expand Down Expand Up @@ -192,11 +202,17 @@ jobs:
run: |
apk add --no-cache alpine-sdk bash clang curl gn lld llvm python3

- name: Install sysroot
- name: Install default sysroots
run: |
cd dart-sdk/sdk
./build/linux/alpine_sysroot_scripts/install-sysroot.sh

- name: Install riscv64 sysroot
if: matrix.target-arch == 'riscv64'
run: |
cd dart-sdk/sdk
./build/linux/alpine_sysroot_scripts/install-sysroot.sh riscv64

- name: Setup multiarch musl
run: |
cd dart-sdk/sdk
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ jobs:
with:
name: dartsdk-linux-arm-${{ github.ref_name }}

- name: Download Artifact
uses: actions/download-artifact@v3
with:
name: dartsdk-linux-riscv64-${{ github.ref_name }}

- name: Release
uses: softprops/action-gh-release@v1
with:
Expand All @@ -49,6 +54,7 @@ jobs:
dartsdk-linux-ia32-release.tar.gz
dartsdk-linux-arm64-release.tar.gz
dartsdk-linux-arm-release.tar.gz
dartsdk-linux-riscv64-release.tar.gz

container:
needs: [release]
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ RUN apk add --no-cache \
SDK_ARCH=arm64;; \
armv7) \
SDK_ARCH=arm;; \
riscv64) \
SDK_ARCH=riscv64;; \
esac \
&& wget -O- "$BASEURL/dartsdk-linux-$SDK_ARCH-release.tar.gz" \
| tar -xz \
Expand Down