-
Notifications
You must be signed in to change notification settings - Fork 48
60 lines (48 loc) · 1.69 KB
/
native_toolchain_c.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Workflow that runs relevant tests with the clang from the Dart SDK.
name: native_toolchain_c
permissions: read-all
on:
pull_request:
branches: [main]
paths:
- ".github/workflows/native_toolchain_c.yaml"
- "pkgs/native_toolchain_c/**"
push:
branches: [main]
paths:
- ".github/workflows/native_toolchain_c.yaml"
- "pkgs/native_toolchain_c/**"
schedule:
- cron: "0 0 * * 0" # weekly
jobs:
dart-sdk-clang:
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@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{ matrix.sdk }}
- uses: nttld/setup-ndk@afb4c9964b521afb97c864b7d40b11e6911bd410
with:
ndk-version: r27
if: ${{ matrix.sdk == 'stable' }}
- run: dart pub get
- name: Install native toolchains
run: sudo apt-get update && sudo apt-get install gcc-i686-linux-gnu gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf gcc-riscv64-linux-gnu
if: ${{ matrix.sdk == 'stable' && matrix.os == 'ubuntu' }}
- run: git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
- run: echo "$PWD/depot_tools" >> $GITHUB_PATH
- run: mkdir dart-sdk
- run: cd dart-sdk && fetch --no-history dart
- run: echo "./dart-sdk/sdk/buildtools/linux-x64/clang/bin" >> $GITHUB_PATH
- run: clang --version
- run: dart test
if: ${{ matrix.sdk == 'stable' }}