Skip to content

Github Actions

Github Actions #376

Workflow file for this run

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/*