Attempt to fix flatpak ci build
This commit is contained in:
parent
b55feeff86
commit
8226f85e04
|
@ -7,36 +7,39 @@ on:
|
||||||
env:
|
env:
|
||||||
GO_VERSION: '1.20'
|
GO_VERSION: '1.20'
|
||||||
jobs:
|
jobs:
|
||||||
flatpak:
|
build_daemon:
|
||||||
name: "Flatpak"
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: bilelmoussaoui/flatpak-github-actions:gnome-45
|
|
||||||
options: --privileged
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
arch: [x86_64, aarch64]
|
|
||||||
fail-fast: false
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v3
|
||||||
- name: Install deps
|
|
||||||
if: ${{ matrix.arch != 'x86_64' }}
|
|
||||||
run: |
|
|
||||||
dnf -y install docker
|
|
||||||
- name: Set up QEMU
|
|
||||||
if: ${{ matrix.arch != 'x86_64' }}
|
|
||||||
id: qemu
|
|
||||||
uses: docker/setup-qemu-action@v2
|
|
||||||
with:
|
|
||||||
platforms: arm64
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: ${{ env.GO_VERSION }}
|
go-version: ${{ env.GO_VERSION }}
|
||||||
- name: Install libfido2-dev
|
- name: Install libfido2-dev
|
||||||
run: sudo dnf install -y libfido2-devel
|
run: sudo apt-get install -y libfido2-dev
|
||||||
- name: Build
|
- name: Build
|
||||||
run: go build -o goldwarden -v .
|
run: go build -o goldwarden -v .
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: goldwarden_linux
|
||||||
|
path: ./goldwarden_linux
|
||||||
|
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_linux
|
||||||
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
|
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
|
||||||
with:
|
with:
|
||||||
bundle: goldwarden.flatpak
|
bundle: goldwarden.flatpak
|
||||||
|
|
Loading…
Reference in New Issue