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

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme committed Mar 11, 2023
0 parents commit 63015f5
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
106 changes: 106 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
name: build

on:
push:
branches:
- '**'
tags:
- '**'
pull_request:
branches:
- '**'

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

steps:
- uses: actions/checkout@v3
with:
repository: 'sass/dart-sass'
ref: ${{ startsWith(github.ref, 'refs/tags/') && github.ref || '' }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
image: tonistiigi/binfmt:master # need qemu >= 7.0.0

- 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@v3
with:
name: build-${{ matrix.arch }}
path: build/*.tar.gz
if-no-files-found: error

release:
name: Release

if: github.event.repository.fork == false && startsWith(github.ref, 'refs/tags/')

needs: [build]

runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Download Artifact
uses: actions/download-artifact@v3
with:
name: build-x64

- name: Download Artifact
uses: actions/download-artifact@v3
with:
name: build-ia32

- name: Download Artifact
uses: actions/download-artifact@v3
with:
name: build-arm64

- name: Download Artifact
uses: actions/download-artifact@v3
with:
name: build-arm

- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
*.tar.gz
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Dart for musl (unofficial)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# dart-sass

0 comments on commit 63015f5

Please sign in to comment.