-
Notifications
You must be signed in to change notification settings - Fork 35
40 lines (37 loc) · 1.19 KB
/
main.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
name: Github Actions
on:
schedule:
- cron: "0 0 * * 1"
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
format: [darwin-dmg, darwin-pkg, darwin, linux-appimage, linux-deb, linux-pkg, linux-rpm, linux-snap, linux, windows-msi, windows]
container:
image: goflutter/hover:v0.47.2
steps:
- name: Update flutter
run: |
apt-get update
apt-get install -y unzip
flutter upgrade
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Run `hover build ${{ matrix.format }}`
run: |
cd $GITHUB_WORKSPACE
export VERSION_NAME=$(git describe --tags $(git rev-list --tags --max-count=1))
cd stocks && hover build ${{ matrix.format }} --version-number ${VERSION_NAME} --debug
ls -lah ./go/build/outputs/${{ matrix.format }}-debug_unopt/*
- uses: actions/upload-artifact@v2
with:
name: ${{ matrix.format }}
path: stocks/go/build/outputs/${{ matrix.format }}-debug_unopt/*