-
-
Notifications
You must be signed in to change notification settings - Fork 8
28 lines (24 loc) · 697 Bytes
/
main.yml
File metadata and controls
28 lines (24 loc) · 697 Bytes
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
name: Build on Push
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
include:
- os: ubuntu-latest
output-name: hello-linux
- os: macOS-latest
output-name: hello-mac
- os: windows-latest
output-name: hello-windows.exe
steps:
- uses: actions/checkout@v1
- uses: DanTup/gh-actions/setup-dart@master
- run: mkdir build
- run: dart2native bin/main.dart -v -o build/${{ matrix.output-name }}
- uses: actions/upload-artifact@v1
with:
name: native-executables
path: build