try building flatter #1
Workflow file for this run
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: ["flatter"] | ||
permissions: | ||
contents: write | ||
jobs: | ||
build-and-publish: | ||
name: Build and Publish Flatpak (Continuous) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
- name: Set up Haskell | ||
uses: haskell/actions/setup@v1 | ||
with: | ||
ghc-version: '9.6.6' | ||
cabal-version: '3.10.3.0' | ||
- name: Cache Cabal packages | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.cabal/packages | ||
~/.cabal/store | ||
dist-newstyle | ||
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: Update Cabal package list | ||
run: | | ||
cabal update | ||
- name: Install Build Tools | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y autoconf autogen automake libtool | ||
- name: Install Qt5 Dependencies | ||
run: | | ||
sudo apt-get install -y qtdeclarative5-dev libqt5quick5 qt5-image-formats-plugins qttools5-dev-tools qtbase5-dev | ||
- name: Install secp256k1 Library | ||
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: 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: Import GPG Key | ||
if: ${{ secrets.GPG_PRIVATE_KEY != '' }} | ||
Check failure on line 72 in .github/workflows/continuous.yml
|
||
uses: crazy-max/ghaction-import-gpg@v5 | ||
with: | ||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
passphrase: ${{ secrets.GPG_PASSPHRASE }} | ||
- name: Build with Flatter | ||
uses: andyholmes/flatter@v0 | ||
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 |