2023-12-23 19:28:55 +03:00
|
|
|
name: Flatpak
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [main]
|
|
|
|
pull_request:
|
|
|
|
branches: [main]
|
2024-01-19 07:23:55 +03:00
|
|
|
env:
|
2024-04-28 17:42:16 +03:00
|
|
|
GO_VERSION: '1.22'
|
2023-12-23 19:28:55 +03:00
|
|
|
jobs:
|
2024-01-19 08:12:59 +03: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 08:19:52 +03:00
|
|
|
name: goldwarden
|
|
|
|
path: ./goldwarden
|
2023-12-27 05:50:39 +03:00
|
|
|
flatpak:
|
2023-12-30 06:46:49 +03:00
|
|
|
name: "Flatpak"
|
|
|
|
runs-on: ubuntu-latest
|
2024-01-19 08:12:59 +03:00
|
|
|
needs: build_daemon
|
2023-12-30 06:46:49 +03:00
|
|
|
container:
|
|
|
|
image: bilelmoussaoui/flatpak-github-actions:gnome-45
|
|
|
|
options: --privileged
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-01-19 08:12:59 +03:00
|
|
|
arch: [x86_64]
|
2023-12-30 06:46:49 +03:00
|
|
|
fail-fast: false
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
2024-01-19 08:12:59 +03:00
|
|
|
- name: Download daemon
|
|
|
|
uses: actions/download-artifact@v2
|
2024-01-19 07:23:55 +03:00
|
|
|
with:
|
2024-01-19 08:19:52 +03:00
|
|
|
name: goldwarden
|
2023-12-30 06:46:49 +03:00
|
|
|
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
|
|
|
|
with:
|
|
|
|
bundle: goldwarden.flatpak
|
2024-05-04 03:46:04 +03:00
|
|
|
manifest-path: .github/com.quexten.Goldwarden.yml
|
2023-12-30 06:46:49 +03:00
|
|
|
cache-key: flatpak-builder-${{ github.sha }}
|
2024-04-28 17:42:16 +03:00
|
|
|
arch: ${{ matrix.arch }}
|