This repository has been archived by the owner on Apr 6, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
92 lines (92 loc) · 2.52 KB
/
dart.yml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Dart
on:
push:
branches:
- main
paths:
- lib/**.dart
- test/**.dart
- pubspec.yaml
- .github/workflows/dart.yml
jobs:
build_linux:
name: HSON test (Linux)
strategy:
fail-fast: false
matrix:
sdk:
- stable
- beta
- dev
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.5
- name: Download library
run: curl -L -o hson.zip https://github.com/rk0cc/hson/releases/download/1.0.0-action/hson_linux_amd64.zip
- name: Run unzip
run: 7z x hson.zip
- name: Rename library and delete unused file
run: mv hson_linux_amd64.so hson.so && rm hson.zip && rm hson_linux_amd64.h
- name: Setup Dart
uses: dart-lang/setup-dart@v1.3
with:
sdk: ${{ matrix.sdk }}
- name: Get dependencies
run: dart pub get
- name: Do test
run: dart test
build_windows:
name: HSON test (Windows)
defaults:
run:
shell: cmd
strategy:
fail-fast: false
matrix:
sdk:
- stable
- beta
- dev
runs-on: windows-latest
steps:
- uses: actions/checkout@v2.3.5
- name: Download library
run: C:\msys64\usr\bin\wget.exe -O hson.zip https://github.com/rk0cc/hson/releases/download/1.0.0-action/hson_win_amd64.zip
- name: Run unzip
run: 7z x hson.zip
- name: Rename library and delete unused file
run: ren hson_win_amd64.dll hson.dll && del hson.zip && del hson_win_amd64.h
- name: Setup Dart
uses: dart-lang/setup-dart@v1.3
with:
sdk: ${{ matrix.sdk }}
- name: Get dependencies
run: dart pub get
- name: Do test
run: dart test
build_macos:
name: HSON test (macOS)
strategy:
fail-fast: false
matrix:
sdk:
- stable
- beta
- dev
runs-on: macos-latest
steps:
- uses: actions/checkout@v2.3.5
- name: Download library
run: curl -L -o hson.zip https://github.com/rk0cc/hson/releases/download/1.0.0-action/hson_macos_amd64.zip
- name: Run unzip
run: 7z x hson.zip
- name: Rename library and delete unused file
run: mv hson_macos_amd64.dylib hson.dylib && rm hson.zip && rm hson_macos_amd64.h
- name: Setup Dart
uses: dart-lang/setup-dart@v1.3
with:
sdk: ${{ matrix.sdk }}
- name: Get dependencies
run: dart pub get
- name: Do test
run: dart test