goldwarden-vaultwarden-bitw.../.github/workflows/flatpak.yml

49 lines
1.2 KiB
YAML
Raw Normal View History

2023-12-23 17:28:55 +01:00
name: Flatpak
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
2024-04-28 16:42:16 +02:00
GO_VERSION: '1.22'
2023-12-23 17:28:55 +01:00
jobs:
2024-01-19 06:12:59 +01:00
build_daemon:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Install libfido2-dev
run: sudo apt-get install -y libfido2-dev
- name: Build
run: go build -o goldwarden -v .
- uses: actions/upload-artifact@v3
with:
2024-01-19 06:19:52 +01:00
name: goldwarden
path: ./goldwarden
2023-12-27 03:50:39 +01:00
flatpak:
name: "Flatpak"
runs-on: ubuntu-latest
2024-01-19 06:12:59 +01:00
needs: build_daemon
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-45
options: --privileged
strategy:
matrix:
2024-01-19 06:12:59 +01:00
arch: [x86_64]
fail-fast: false
steps:
- uses: actions/checkout@v4
2024-01-19 06:12:59 +01:00
- name: Download daemon
uses: actions/download-artifact@v2
with:
2024-01-19 06:19:52 +01:00
name: goldwarden
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: goldwarden.flatpak
manifest-path: com.quexten.Goldwarden.yml
cache-key: flatpak-builder-${{ github.sha }}
2024-04-28 16:42:16 +02:00
arch: ${{ matrix.arch }}