Skip to content
This repository was archived by the owner on Dec 16, 2023. It is now read-only.

Commit bf8a537

Browse files
committed
Initial commit
0 parents  commit bf8a537

File tree

4 files changed

+147
-0
lines changed

4 files changed

+147
-0
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"

.github/workflows/build.yml

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
tags:
8+
- '**'
9+
pull_request:
10+
branches:
11+
- '**'
12+
13+
jobs:
14+
build:
15+
name: Build
16+
17+
runs-on: ubuntu-latest
18+
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
include:
23+
- arch: x64
24+
lib: lib64
25+
platform: linux/amd64
26+
- arch: ia32
27+
lib: lib
28+
platform: linux/amd64
29+
- arch: arm64
30+
lib: lib64
31+
platform: linux/arm64
32+
- arch: arm
33+
lib: lib
34+
platform: linux/arm64
35+
36+
steps:
37+
- uses: actions/checkout@v3
38+
with:
39+
repository: 'sass/dart-sass-embedded'
40+
ref: ${{ startsWith(github.ref, 'refs/tags/') && github.ref || '' }}
41+
42+
- name: Set up QEMU
43+
uses: docker/setup-qemu-action@v2
44+
with:
45+
image: tonistiigi/binfmt:master # need qemu >= 7.0.0
46+
47+
- name: Compile Protobuf
48+
run: |
49+
docker run --rm -i \
50+
--volume $PWD:$PWD \
51+
--workdir $PWD \
52+
docker.io/library/dart <<'EOF'
53+
set -e
54+
curl -fsSL "https://github.com/bufbuild/buf/releases/latest/download/buf-$(uname -s)-$(uname -m).tar.gz" | tar -xzC /usr/local --strip-components 1
55+
dart pub remove sass_analysis
56+
dart pub upgrade
57+
dart run grinder protobuf
58+
EOF
59+
60+
- name: Build
61+
run: |
62+
docker run --rm -i \
63+
--platform ${{ matrix.platform }} \
64+
--privileged \
65+
--volume $PWD:$PWD \
66+
--workdir $PWD \
67+
ghcr.io/dart-android/dart <<'EOF'
68+
set -e
69+
export DART_SDK=/system/${{ matrix.lib }}/dart
70+
export PATH=$DART_SDK/bin:$PATH
71+
dart pub get
72+
dart run grinder pkg-standalone-android-${{ matrix.arch }}
73+
EOF
74+
75+
- name: Upload Artifact
76+
uses: actions/upload-artifact@v3
77+
with:
78+
name: build-${{ matrix.arch }}
79+
path: build/*.tar.gz
80+
if-no-files-found: error
81+
82+
release:
83+
name: Release
84+
85+
if: github.event.repository.fork == false && startsWith(github.ref, 'refs/tags/')
86+
87+
needs: [build]
88+
89+
runs-on: ubuntu-latest
90+
91+
permissions:
92+
contents: write
93+
94+
steps:
95+
- name: Download Artifact
96+
uses: actions/download-artifact@v3
97+
with:
98+
name: build-x64
99+
100+
- name: Download Artifact
101+
uses: actions/download-artifact@v3
102+
with:
103+
name: build-ia32
104+
105+
- name: Download Artifact
106+
uses: actions/download-artifact@v3
107+
with:
108+
name: build-arm64
109+
110+
- name: Download Artifact
111+
uses: actions/download-artifact@v3
112+
with:
113+
name: build-arm
114+
115+
- name: Release
116+
uses: softprops/action-gh-release@v1
117+
with:
118+
files: |
119+
*.tar.gz

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Dart for musl (unofficial)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# dart-sass-embedded

0 commit comments

Comments
 (0)