-
Notifications
You must be signed in to change notification settings - Fork 28
48 lines (48 loc) · 1.18 KB
/
flatpak.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Flatpak
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
GO_VERSION: '1.22'
jobs:
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:
name: goldwarden
path: ./goldwarden
flatpak:
name: "Flatpak"
runs-on: ubuntu-latest
needs: build_daemon
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-45
options: --privileged
strategy:
matrix:
arch: [x86_64]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Download daemon
uses: actions/download-artifact@v2
with:
name: goldwarden
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: goldwarden.flatpak
manifest-path: .github/com.quexten.Goldwarden.yml
cache-key: flatpak-builder-${{ github.sha }}
arch: ${{ matrix.arch }}