Skip to content

Commit

Permalink
Install bleeding edge clang
Browse files Browse the repository at this point in the history
  • Loading branch information
dcharkes committed Sep 15, 2023
1 parent 88d185c commit 6eb30ba
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/native_toolchain_c.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: dart
permissions: read-all

on:
pull_request:
branches: [main]
paths:
- ".github/workflows/dart.yaml"
- "pkgs/native_toolchain_c/**"
push:
branches: [main]
paths:
- ".github/workflows/dart.yaml"
- "pkgs/native_toolchain_c/**"
schedule:
- cron: "0 0 * * 0" # weekly

jobs:
clang-bleeding-edge:
strategy:
matrix:
os: [ubuntu]
sdk: [stable]
package: [native_toolchain_c]

runs-on: ${{ matrix.os }}-latest

defaults:
run:
working-directory: pkgs/${{ matrix.package }}

steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744

- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f
with:
sdk: ${{ matrix.sdk }}

- uses: nttld/setup-ndk@dbacc5871a0fac6eef9a09d2ca86bc8bf79432c3
with:
ndk-version: r25b
if: ${{ matrix.sdk == 'stable' }}

- run: dart pub get

- name: Download clang
run: curl https://storage.googleapis.com/chrome-infra-packages/store/SHA256/33c37f2289b1bb64755c8ae27e173a6934d08c86674221bb64f5966ba50a9f2a?Expires=1694770717&GoogleAccessId=chrome-infra-packages%40appspot.gserviceaccount.com&Signature=qOT43Za7fTznfe8SRBRyqBlwnERkIkRMTGXorJxqRgBaiSAuB9Fv%2Fm7ZrNf8thRWYrGDaxoMbWs3RQ%2BxxUtdOVIjpPwN9Zd2SOPqq35M4Pif7ukyU6oiZuHb%2BqZkMDQv8TALT7SsXJYvEOBMvGhUjXIwTsesJANL2pQ6NZ695xzhZG5oxkus4sC4dhSmte3iJanHIWfnLsVYhbuD%2FI4DXuJQTgBYsYj62gVwmigze0tRUG%2B4oubS6FrGDK49AMl3H8oku1pkKxbSt9vRw%2BeDxyWwJrnCsQGR4OyIlZy5FTVZ9PMYLMptMChNA%2F7jGUHa6hCLhmISmLtXvPRANzcQcw%3D%3D&response-content-disposition=attachment%3B+filename%3D%22clang-linux-amd64.zip%22

# TODO: use # https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path
- name: Install native toolchains
run: sudo apt-get update && sudo apt-get install clang-15 gcc-i686-linux-gnu gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf
if: ${{ matrix.sdk == 'stable' && matrix.os == 'ubuntu' }}

- run: dart test
if: ${{ matrix.sdk == 'stable' }}

0 comments on commit 6eb30ba

Please sign in to comment.