Skip to content

Commit f2ec69f

Browse files
Merge pull request #1353 from cypherstack/add-campfire-stack-duo-builds
Add campfire stack duo builds
2 parents ea92006 + 5605749 commit f2ec69f

1 file changed

Lines changed: 129 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,135 @@ jobs:
490490
name: stack_wallet-ios-aarch64-${{ steps.ver.outputs.version }}
491491
path: stack_wallet-ios-aarch64-${{ steps.ver.outputs.version }}.ipa
492492

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

0 commit comments

Comments
 (0)