-
Notifications
You must be signed in to change notification settings - Fork 24
49 lines (41 loc) · 1.24 KB
/
build-linux.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
49
name: Build and Release Linux AppImage/Flatpak
on:
workflow_dispatch:
push:
tags:
- "v*"
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: env
run: |
cat build.env >> $GITHUB_ENV
echo $PWD/flutter/bin >> $GITHUB_PATH
- name: Build
run: ./build-scripts/build-linux.sh "${{ env.FLUTTER_VERSION }}"
- name: appimage
run: ./build-scripts/build-appimage.sh
- name: Flatpak
run: |
docker build -f docker/Dockerfile-flatpak -t zwallet_flatpak_sh .
docker run --privileged --name zwallet_flatpak_bin zwallet_flatpak_sh
docker cp zwallet_flatpak_bin:/root/misc/ywallet.flatpak .
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
files: |
./misc/Ywallet-latest-x86_64.AppImage
./ywallet.flatpak
./zwallet.tgz
./libwarp_api_ffi.so
- uses: actions/upload-artifact@v3
with:
name: AppImage
path: ./misc/Ywallet-latest-x86_64.AppImage
retention-days: 3