-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (61 loc) · 1.59 KB
/
compile.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
name: Dart build
on:
push:
branches:
- '**'
tags:
- 'v*.*.*'
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest, ARM]
include:
- os: ubuntu-latest
output-name: ov-linux
arch: x64
- os: ARM
output-name: ov-linux-arm
arch: arm
- os: macOS-latest
output-name: ov-mac
arch: x64
- os: windows-latest
output-name: ov-windows.exe
arch: x64
steps:
- name: Checkout repository
uses: actions/checkout@v2
- uses: dart-lang/setup-dart@7e4ec4f1811e09ce8f339b4d3044220ca799e6c6
with:
architecture: ${{ matrix.arch }}
- name: Install dependencies
run: dart pub get
- name: Create build directory
run: mkdir executables
- name: Compile exe
run: dart compile exe bin/ov_epaper.dart -o executables/${{ matrix.output-name }}
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: executables
path: executables
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with:
name: executables
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
ov-linux
ov-linux-arm
ov-mac
ov-windows.exe