Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy linux arm64 release to github #1643

Merged
merged 3 commits into from
Mar 26, 2022
Merged
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
69 changes: 50 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
working-directory: sass-spec

- name: Build JS
run: dart pub run grinder pkg-npm-dev
run: dart run grinder pkg-npm-dev

- name: Check out Sass specification
uses: sass/clone-linked-repo@v1
Expand Down Expand Up @@ -119,9 +119,9 @@ jobs:
- uses: dart-lang/setup-dart@v1
with: {sdk: "${{ matrix.dart_channel }}"}
- run: dart pub get
- run: dart pub run grinder pkg-standalone-dev
- run: dart run grinder pkg-standalone-dev
- name: Run tests
run: dart pub run test -p vm -x node -r expanded
run: dart run test -p vm -x node -r expanded

# Unit tests that use Node.js, defined in test/.
#
Expand Down Expand Up @@ -159,9 +159,9 @@ jobs:
- uses: actions/setup-node@v2
with: {node-version: "${{ matrix.node_version }}"}
- run: npm install
- run: dart pub run grinder before-test
- run: dart run grinder before-test
- name: Run tests
run: dart pub run test -j 2 -t node -r expanded
run: dart run test -j 2 -t node -r expanded

static_analysis:
name: Static analysis
Expand Down Expand Up @@ -208,7 +208,7 @@ jobs:
- uses: dart-lang/setup-dart@v1
- run: dart pub get
- name: Run checks
run: dart pub run grinder double-check-before-release
run: dart run grinder double-check-before-release

bootstrap:
name: "Bootstrap ${{ matrix.bootstrap_version }}"
Expand All @@ -224,7 +224,7 @@ jobs:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1
- run: dart pub get
- run: dart pub run grinder fetch-bootstrap${{matrix.bootstrap_version}}
- run: dart run grinder fetch-bootstrap${{matrix.bootstrap_version}}
env: {GITHUB_BEARER_TOKEN: "${{ secrets.GITHUB_TOKEN }}"}
- name: Build
run: dart bin/sass.dart --quiet build/bootstrap/scss:build/bootstrap-output
Expand All @@ -238,7 +238,7 @@ jobs:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1
- run: dart pub get
- run: dart pub run grinder fetch-bourbon
- run: dart run grinder fetch-bourbon
env: {GITHUB_BEARER_TOKEN: "${{ secrets.GITHUB_TOKEN }}"}
- name: Test
run: |
Expand All @@ -254,7 +254,7 @@ jobs:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1
- run: dart pub get
- run: dart pub run grinder fetch-foundation
- run: dart run grinder fetch-foundation
env: {GITHUB_BEARER_TOKEN: "${{ secrets.GITHUB_TOKEN }}"}
# TODO(nweiz): Foundation has proper Sass tests, but they're currently not
# compatible with Dart Sass. Once they are, we should run those rather
Expand All @@ -271,7 +271,7 @@ jobs:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1
- run: dart pub get
- run: dart pub run grinder fetch-bulma
- run: dart run grinder fetch-bulma
env: {GITHUB_BEARER_TOKEN: "${{ secrets.GITHUB_TOKEN }}"}
- name: Build
run: dart bin/sass.dart --quiet build/bulma/bulma.sass build/bulma-output.css
Expand All @@ -287,7 +287,38 @@ jobs:
- uses: dart-lang/setup-dart@v1
- run: dart pub get
- name: Deploy
run: dart pub run grinder pkg-github-release pkg-github-linux
run: dart run grinder pkg-github-release pkg-github-linux-ia32 pkg-github-linux-x64
env:
GH_TOKEN: "${{ secrets.GH_TOKEN }}"
GH_USER: sassbot

deploy_github_linux_qemu:
name: "Deploy Github: Linux"
runs-on: ubuntu-latest
strategy:
matrix:
include:
# https://github.com/dart-lang/sdk/pull/48665
# - arch: arm
# platform: linux/arm/v7
- arch: arm64
platform: linux/arm64
needs: [deploy_github_linux]
if: "startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/dart-sass'"

steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
- name: Deploy
run: |
docker run --rm \
--env "GH_TOKEN=$GH_TOKEN" \
--env "GH_USER=$GH_USER" \
--platform ${{ matrix.platform }} \
--volume "$PWD:$PWD" \
--workdir "$PWD" \
docker.io/library/dart:latest \
/bin/sh -c "dart pub get && dart run grinder pkg-github-linux-${{ matrix.arch }}"
env:
GH_TOKEN: "${{ secrets.GH_TOKEN }}"
GH_USER: sassbot
Expand All @@ -303,7 +334,7 @@ jobs:
- uses: dart-lang/setup-dart@v1
- run: dart pub get
- name: Deploy
run: dart pub run grinder pkg-github-macos
run: dart run grinder pkg-github-macos
env:
GH_TOKEN: "${{ secrets.GH_TOKEN }}"
GH_USER: sassbot
Expand All @@ -319,7 +350,7 @@ jobs:
- uses: dart-lang/setup-dart@v1
- run: dart pub get
- name: Deploy
run: dart pub run grinder pkg-github-windows
run: dart run grinder pkg-github-windows
env:
GH_TOKEN: "${{ secrets.GH_TOKEN }}"
GH_USER: sassbot
Expand All @@ -337,7 +368,7 @@ jobs:
- uses: actions/setup-node@v2
with: {node-version: "${{ env.DEFAULT_NODE_VERSION }}"}
- name: Deploy
run: dart pub run grinder pkg-npm-deploy
run: dart run grinder pkg-npm-deploy
env:
NPM_TOKEN: "${{ secrets.NPM_TOKEN }}"

Expand All @@ -354,7 +385,7 @@ jobs:
- uses: actions/setup-node@v2
with: {node-version: "${{ env.DEFAULT_NODE_VERSION }}"}
- name: Deploy
run: dart pub run grinder update-bazel
run: dart run grinder update-bazel
env:
GH_TOKEN: "${{ secrets.GH_TOKEN }}"
GH_USER: sassbot
Expand All @@ -372,7 +403,7 @@ jobs:
- uses: actions/setup-node@v2
with: {node-version: "${{ env.DEFAULT_NODE_VERSION }}"}
- name: Deploy
run: dart pub run grinder pkg-pub-deploy
run: dart run grinder pkg-pub-deploy
env: {PUB_CREDENTIALS: "${{ secrets.PUB_CREDENTIALS }}"}

deploy_sub_packages:
Expand All @@ -386,7 +417,7 @@ jobs:
- uses: dart-lang/setup-dart@v1
- run: dart pub get
- name: Deploy
run: dart pub run grinder deploy-sub-packages
run: dart run grinder deploy-sub-packages
env:
PUB_CREDENTIALS: "${{ secrets.PUB_CREDENTIALS }}"
GH_TOKEN: "${{ secrets.GH_TOKEN }}"
Expand All @@ -403,7 +434,7 @@ jobs:
- uses: dart-lang/setup-dart@v1
- run: dart pub get
- name: Deploy
run: dart pub run grinder pkg-homebrew-update
run: dart run grinder pkg-homebrew-update
env:
GH_TOKEN: "${{ secrets.GH_TOKEN }}"
GH_USER: sassbot
Expand All @@ -419,7 +450,7 @@ jobs:
- uses: dart-lang/setup-dart@v1
- run: dart pub get
- name: Deploy
run: dart pub run grinder pkg-chocolatey-deploy
run: dart run grinder pkg-chocolatey-deploy
env: {CHOCOLATEY_TOKEN: "${{ secrets.CHOCOLATEY_TOKEN }}"}

deploy_website:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dependencies:
dev_dependencies:
analyzer: ^2.4.0
archive: ^3.1.2
cli_pkg: ^2.0.0
cli_pkg: ^2.1.0
crypto: ^3.0.0
dart_style: ^2.0.0
grinder: ^0.9.0
Expand Down