runs:
  using: "composite"
  steps:
    - run: |
        su forgejo -c 'make deps-backend'
    - uses: https://data.forgejo.org/actions/cache@v4
      id: cache-backend
      with:
        path: ${{github.workspace}}/gitea
        key: backend-build-${{ github.sha }}
    - if: steps.cache-backend.outputs.cache-hit != 'true'
      run: |
        su forgejo -c 'make backend'
      env:
        TAGS: bindata
