remove gpg signing of flatpak #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Flatpak Build and Release (Continuous) | |
on: | |
push: | |
branches: ["master"] | |
permissions: | |
contents: read | |
pages: write # Required for GitHub Pages deployment | |
id-token: write # Required for GitHub Pages deployment | |
jobs: | |
build: | |
name: Build and Publish Flatpak (Continuous) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Cache Haskell Build | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cabal/packages | |
~/.cabal/store | |
dist-newstyle | |
~/.ghc | |
~/.stack | |
key: ${{ runner.os }}-ghc-9.6.6-cabal-${{ hashFiles('**/*.cabal', '**/cabal.project', '**/cabal.project.freeze') }} | |
restore-keys: | | |
${{ runner.os }}-ghc-9.6.6-cabal- | |
- name: Set up Haskell | |
uses: haskell/actions/setup@v1 | |
with: | |
ghc-version: '9.6.6' | |
cabal-version: '3.10.3.0' | |
enable-stack: false | |
stack-no-global: true | |
- name: Update Cabal package list | |
run: | | |
cabal update | |
- name: Cache Dependencies | |
uses: actions/cache@v4 | |
id: deps-cache | |
with: | |
path: | | |
/usr/local/lib/libsecp256k1* | |
/usr/local/include/secp256k1* | |
key: ${{ runner.os }}-deps-secp256k1-v0.5.1 | |
- name: Install Build Tools | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y autoconf autogen automake libtool | |
- name: Cache Qt5 Dependencies | |
uses: actions/cache@v4 | |
id: qt5-cache | |
with: | |
path: | | |
/var/cache/apt/archives | |
/var/lib/apt/lists | |
key: ${{ runner.os }}-qt5-deps-${{ hashFiles('.github/workflows/release.yml') }} | |
- name: Install Qt5 Dependencies | |
if: steps.qt5-cache.outputs.cache-hit != 'true' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y qtdeclarative5-dev libqt5quick5 qt5-image-formats-plugins qttools5-dev-tools qtbase5-dev | |
- name: Install secp256k1 Library | |
if: steps.deps-cache.outputs.cache-hit != 'true' | |
run: | | |
git clone https://github.com/bitcoin-core/secp256k1 && \ | |
cd secp256k1 && \ | |
git checkout v0.5.1 && \ | |
./autogen.sh && \ | |
./configure --enable-module-schnorrsig --enable-module-extrakeys --enable-module-ecdh --enable-experimental --enable-module-recovery && \ | |
make && \ | |
sudo make install && \ | |
cd .. | |
- name: Restore secp256k1 from cache | |
if: steps.deps-cache.outputs.cache-hit == 'true' | |
run: | | |
sudo cp -r /usr/local/lib/libsecp256k1* /usr/local/lib/ | |
sudo cp -r /usr/local/include/secp256k1* /usr/local/include/ | |
- name: Set Library Path | |
run: | | |
echo "/usr/local/lib" | sudo tee /etc/ld.so.conf.d/local.conf && sudo ldconfig | |
- name: Build with Cabal | |
run: | | |
cabal build | |
- name: Prepare Flatpak Build Files | |
run: | | |
cp $(cabal list-bin futr) flatpak/futr | |
- name: Build with Flatter | |
uses: andyholmes/flatter@main | |
with: | |
files: | | |
flatpak/com.futrnostr.futr.yml | |
arch: x86_64 | |
gpg-sign: ${{ secrets.GPG_FINGERPRINT }} | |
upload-bundles: true | |
upload-pages-artifact: true | |
upload-pages-prefix: continuous | |
upload-pages-includes: | | |
flatpak/index.html | |
flatpak/futr-continuous.flatpakrepo | |
flatpak-builder-args: | | |
--default-branch=continuous | |
- name: Upload Flatpak Bundle | |
uses: actions/upload-artifact@v3 | |
with: | |
name: futr-flatpak-continuous | |
path: com.futrnostr.futr-x86_64 | |
retention-days: 7 | |
deploy: | |
name: Deploy to GitHub Pages | |
needs: build | |
runs-on: ubuntu-latest | |
if: ${{ success() }} | |
steps: | |
- name: Deploy to GitHub Pages | |
uses: actions/deploy-pages@v1 |