-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:sass/dart-sass into feature.color-4
- Loading branch information
Showing
82 changed files
with
2,296 additions
and
998 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: Build for android | ||
|
||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- arch: x64 | ||
lib: lib64 | ||
platform: linux/amd64 | ||
- arch: ia32 | ||
lib: lib | ||
platform: linux/amd64 | ||
- arch: arm64 | ||
lib: lib64 | ||
platform: linux/arm64 | ||
- arch: arm | ||
lib: lib | ||
platform: linux/arm64 | ||
# There is no docker image for riscv64 dart-sdk, build kernel snapshot instead. | ||
- arch: riscv64 | ||
lib: lib64 | ||
platform: linux/amd64 # linux/riscv64 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
with: | ||
image: tonistiigi/binfmt:master # need qemu >= 7.0.0 | ||
|
||
- name: Compile Protobuf | ||
run: | | ||
docker run --rm -i \ | ||
--volume "$PWD:$PWD" \ | ||
--workdir "$PWD" \ | ||
docker.io/library/dart <<'EOF' | ||
set -e | ||
curl -fsSL -H "Authorization: Bearer ${{ github.token }}" "https://github.com/bufbuild/buf/releases/latest/download/buf-$(uname -s)-$(uname -m).tar.gz" | tar -xzC /usr/local --strip-components 1 | ||
dart pub get | ||
dart run grinder protobuf | ||
EOF | ||
- name: Build | ||
run: | | ||
docker run --rm -i \ | ||
--platform ${{ matrix.platform }} \ | ||
--privileged \ | ||
--volume "$PWD:$PWD" \ | ||
--workdir "$PWD" \ | ||
ghcr.io/dart-android/dart <<'EOF' | ||
set -e | ||
export DART_SDK=/system/${{ matrix.lib }}/dart | ||
export PATH=$DART_SDK/bin:$PATH | ||
dart pub get | ||
dart run grinder pkg-standalone-android-${{ matrix.arch }} | ||
EOF | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: build-android-${{ matrix.arch }} | ||
path: build/*.tar.gz | ||
if-no-files-found: error | ||
compression-level: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Build for linux-musl | ||
|
||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- arch: x64 | ||
platform: linux/amd64 | ||
- arch: ia32 | ||
platform: linux/386 | ||
- arch: arm64 | ||
platform: linux/arm64 | ||
# There is a bug in qemu's mremap causing pthread_getattr_np in musl to stuck in a loop on arm. | ||
# Unless qemu fixes the bug or we get a real linux-arm runner, we cannot build aot-snapshot | ||
# for arm on CI. So, we create a kernel snapshot for arm build in amd64 container instead. | ||
# https://gitlab.com/qemu-project/qemu/-/issues/1729 | ||
- arch: arm | ||
platform: linux/amd64 # linux/arm/v7 | ||
# There is no docker image for riscv64 dart-sdk, build kernel snapshot instead. | ||
- arch: riscv64 | ||
platform: linux/amd64 # linux/riscv64 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Compile Protobuf | ||
run: | | ||
docker run --rm -i \ | ||
--volume "$PWD:$PWD" \ | ||
--workdir "$PWD" \ | ||
docker.io/library/dart <<'EOF' | ||
set -e | ||
curl -fsSL -H "Authorization: Bearer ${{ github.token }}" "https://github.com/bufbuild/buf/releases/latest/download/buf-$(uname -s)-$(uname -m).tar.gz" | tar -xzC /usr/local --strip-components 1 | ||
dart pub get | ||
dart run grinder protobuf | ||
EOF | ||
- name: Build | ||
run: | | ||
docker run --rm -i \ | ||
--platform ${{ matrix.arch == 'arm' && 'linux/amd64' || matrix.platform }} \ | ||
--volume "$PWD:$PWD" \ | ||
--workdir "$PWD" \ | ||
ghcr.io/dart-musl/dart <<'EOF' | ||
set -e | ||
dart pub get | ||
dart run grinder pkg-standalone-linux-${{ matrix.arch }}-musl | ||
EOF | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: build-linux-musl-${{ matrix.arch }} | ||
path: build/*.tar.gz | ||
if-no-files-found: error | ||
compression-level: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Build for linux | ||
|
||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- arch: x64 | ||
platform: linux/amd64 | ||
- arch: ia32 | ||
platform: linux/amd64 | ||
- arch: arm | ||
platform: linux/arm/v7 | ||
- arch: arm64 | ||
platform: linux/arm64 | ||
# There is no docker image for riscv64 dart-sdk, build kernel snapshot instead. | ||
# https://github.com/dart-lang/dart-docker/issues/96#issuecomment-1669860829 | ||
- arch: riscv64 | ||
platform: linux/amd64 # linux/riscv64 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Compile Protobuf | ||
run: | | ||
docker run --rm -i \ | ||
--volume "$PWD:$PWD" \ | ||
--workdir "$PWD" \ | ||
docker.io/library/dart <<'EOF' | ||
set -e | ||
curl -fsSL -H "Authorization: Bearer ${{ github.token }}" "https://github.com/bufbuild/buf/releases/latest/download/buf-$(uname -s)-$(uname -m).tar.gz" | tar -xzC /usr/local --strip-components 1 | ||
dart pub get | ||
dart run grinder protobuf | ||
EOF | ||
- name: Build | ||
run: | | ||
docker run --rm -i \ | ||
--platform ${{ matrix.platform }} \ | ||
--volume "$PWD:$PWD" \ | ||
--workdir "$PWD" \ | ||
docker.io/library/dart:latest <<'EOF' | ||
set -e | ||
dart pub get | ||
dart run grinder pkg-standalone-linux-${{ matrix.arch }} | ||
EOF | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: build-linux-${{ matrix.arch }} | ||
path: build/*.tar.gz | ||
if-no-files-found: error | ||
compression-level: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Build for macos | ||
|
||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
|
||
runs-on: ${{ matrix.runner }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- arch: x64 | ||
runner: macos-13 | ||
- arch: arm64 | ||
runner: macos-14 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: ./.github/util/initialize | ||
with: {github-token: "${{ github.token }}"} | ||
|
||
- name: Build | ||
run: dart run grinder pkg-standalone-macos-${{ matrix.arch }} | ||
|
||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: build-macos-${{ matrix.arch }} | ||
path: build/*.tar.gz | ||
if-no-files-found: error | ||
compression-level: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Build for windows | ||
|
||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
|
||
runs-on: ${{ matrix.runner }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- arch: x64 | ||
runner: windows-latest | ||
- arch: ia32 | ||
runner: windows-latest | ||
- arch: arm64 | ||
runner: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: ./.github/util/initialize | ||
with: {github-token: "${{ github.token }}"} | ||
|
||
- name: Build | ||
run: dart run grinder pkg-standalone-windows-${{ matrix.arch }} | ||
|
||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: build-windows-${{ matrix.arch }} | ||
path: build/*.zip | ||
if-no-files-found: error | ||
compression-level: 0 |
Oops, something went wrong.