Skip to content

Merge branch 'dev' into main #59

Merge branch 'dev' into main

Merge branch 'dev' into main #59

Workflow file for this run

name: hydrun CI
on:
push:
pull_request:
jobs:
check:
runs-on: ubuntu-latest
outputs:
backend: ${{ steps.filter.outputs.backend }}
frontend: ${{ steps.filter.outputs.frontend }}
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
backend:
- 'backend/**'
frontend:
- 'frontend/**'
build-linux-backend:
runs-on: ubuntu-latest
needs: check
if: ${{ needs.check.outputs.backend == 'true' && github.ref == 'refs/heads/main' }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Set up hydrun
run: |
curl -L -o /tmp/hydrun https://github.com/pojntfx/hydrun/releases/latest/download/hydrun.linux-$(uname -m)
sudo install /tmp/hydrun /usr/local/bin
- name: Build with hydrun
working-directory: backend
run: hydrun -a amd64,arm64,arm/v7 ./Hydrunfile
- name: Build for Pi 3 with hydrun
working-directory: backend
run: hydrun -a arm/v7 -o debian:buster ./Hydrunfile pi3
- name: Publish to GitHub releases
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
files: |
backend/out/*