@@ -484,6 +484,134 @@ jobs:
484484 name : stack_wallet-ios-aarch64-${{ steps.ver.outputs.version }}
485485 path : stack_wallet-ios-aarch64-${{ steps.ver.outputs.version }}.ipa
486486
487+ build-campfire-linux :
488+ runs-on : ubuntu-24.04
489+ permissions :
490+ contents : read
491+ packages : read
492+ container :
493+ image : ghcr.io/${{ github.repository_owner }}/stackwallet-ci:latest
494+ credentials :
495+ username : ${{ github.actor }}
496+ password : ${{ github.token }}
497+ steps :
498+ - uses : actions/checkout@v6
499+ with :
500+ fetch-depth : 0
501+ submodules : recursive
502+
503+ - name : Set version
504+ id : ver
505+ run : |
506+ if [ "${{ github.ref_type }}" = "tag" ]; then
507+ VERSION="${{ github.ref_name }}"
508+ VERSION="${VERSION#v}"
509+ BUILD_NUMBER="${{ github.run_number }}"
510+ elif [ -n "${{ inputs.version }}" ]; then
511+ VERSION="${{ inputs.version }}"
512+ BUILD_NUMBER="${{ inputs.build_number }}"
513+ else
514+ VERSION="0.0.0-staging.${{ github.run_number }}"
515+ BUILD_NUMBER="${{ github.run_number }}"
516+ fi
517+ echo "version=${VERSION}" >> $GITHUB_OUTPUT
518+ echo "build_number=${BUILD_NUMBER}" >> $GITHUB_OUTPUT
519+
520+ - name : Configure app
521+ run : |
522+ cd scripts
523+ echo "yes" | ./build_app.sh \
524+ -v "${{ steps.ver.outputs.version }}" \
525+ -b "${{ steps.ver.outputs.build_number }}" \
526+ -p linux -a campfire -d -s
527+
528+ - name : Get dependencies
529+ run : flutter pub get
530+
531+ - name : Decode secrets
532+ env :
533+ CHANGE_NOW : ${{ secrets.CHANGE_NOW }}
534+ run : echo "$CHANGE_NOW" | base64 --decode > lib/external_api_keys.dart
535+
536+ - name : Build
537+ env :
538+ USE_SYSTEM_SECURE_STORAGE_DEPS : " 1"
539+ run : flutter build linux --release --verbose
540+
541+ - name : Package
542+ run : |
543+ tar -czf "campfire-linux-x86_64-${{ steps.ver.outputs.version }}.tar.gz" \
544+ -C build/linux/x64/release bundle
545+
546+ - uses : actions/upload-artifact@v4
547+ with :
548+ name : campfire-linux-x86_64-${{ steps.ver.outputs.version }}
549+ path : campfire-linux-x86_64-${{ steps.ver.outputs.version }}.tar.gz
550+
551+ build-stack-duo-linux :
552+ runs-on : ubuntu-24.04
553+ permissions :
554+ contents : read
555+ packages : read
556+ container :
557+ image : ghcr.io/${{ github.repository_owner }}/stackwallet-ci:latest
558+ credentials :
559+ username : ${{ github.actor }}
560+ password : ${{ github.token }}
561+ steps :
562+ - uses : actions/checkout@v6
563+ with :
564+ fetch-depth : 0
565+ submodules : recursive
566+
567+ - name : Set version
568+ id : ver
569+ run : |
570+ if [ "${{ github.ref_type }}" = "tag" ]; then
571+ VERSION="${{ github.ref_name }}"
572+ VERSION="${VERSION#v}"
573+ BUILD_NUMBER="${{ github.run_number }}"
574+ elif [ -n "${{ inputs.version }}" ]; then
575+ VERSION="${{ inputs.version }}"
576+ BUILD_NUMBER="${{ inputs.build_number }}"
577+ else
578+ VERSION="0.0.0-staging.${{ github.run_number }}"
579+ BUILD_NUMBER="${{ github.run_number }}"
580+ fi
581+ echo "version=${VERSION}" >> $GITHUB_OUTPUT
582+ echo "build_number=${BUILD_NUMBER}" >> $GITHUB_OUTPUT
583+
584+ - name : Configure app
585+ run : |
586+ cd scripts
587+ echo "yes" | ./build_app.sh \
588+ -v "${{ steps.ver.outputs.version }}" \
589+ -b "${{ steps.ver.outputs.build_number }}" \
590+ -p linux -a stack_duo -d -s
591+
592+ - name : Get dependencies
593+ run : flutter pub get
594+
595+ - name : Decode secrets
596+ env :
597+ CHANGE_NOW : ${{ secrets.CHANGE_NOW }}
598+ run : echo "$CHANGE_NOW" | base64 --decode > lib/external_api_keys.dart
599+
600+ - name : Build
601+ env :
602+ USE_SYSTEM_SECURE_STORAGE_DEPS : " 1"
603+ run : flutter build linux --release --verbose
604+
605+ - name : Package
606+ run : |
607+ tar -czf "stack_duo-linux-x86_64-${{ steps.ver.outputs.version }}.tar.gz" \
608+ -C build/linux/x64/release bundle
609+
610+ - uses : actions/upload-artifact@v4
611+ with :
612+ name : stack_duo-linux-x86_64-${{ steps.ver.outputs.version }}
613+ path : stack_duo-linux-x86_64-${{ steps.ver.outputs.version }}.tar.gz
614+
487615 build-flatpak :
488616 runs-on : ubuntu-24.04
489617 needs : build-linux
@@ -553,7 +681,7 @@ jobs:
553681
554682 release :
555683 if : github.ref_type == 'tag'
556- needs : [build-linux, build-android, build-windows, build-macos, build-ios, build-flatpak]
684+ needs : [build-linux, build-android, build-windows, build-macos, build-ios, build-flatpak, build-campfire-linux, build-stack-duo-linux ]
557685 runs-on : ubuntu-latest
558686 permissions :
559687 contents : write
0 commit comments