2023-12-23 17:28:55 +01:00
|
|
|
name: Flatpak
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [main]
|
|
|
|
pull_request:
|
|
|
|
branches: [main]
|
2024-01-19 05:23:55 +01:00
|
|
|
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:
|
2023-12-30 04:46:49 +01:00
|
|
|
name: "Flatpak"
|
|
|
|
runs-on: ubuntu-latest
|
2024-01-19 06:12:59 +01:00
|
|
|
needs: build_daemon
|
2023-12-30 04:46:49 +01:00
|
|
|
container:
|
|
|
|
image: bilelmoussaoui/flatpak-github-actions:gnome-45
|
|
|
|
options: --privileged
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-01-19 06:12:59 +01:00
|
|
|
arch: [x86_64]
|
2023-12-30 04:46:49 +01:00
|
|
|
fail-fast: false
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
2024-01-19 06:12:59 +01:00
|
|
|
- name: Download daemon
|
|
|
|
uses: actions/download-artifact@v2
|
2024-01-19 05:23:55 +01:00
|
|
|
with:
|
2024-01-19 06:19:52 +01:00
|
|
|
name: goldwarden
|
2023-12-30 04:46:49 +01:00
|
|
|
- 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 }}
|